Difference between revisions of "Template:Enemy"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(testing out 300px width)
old>Realpsojed
(fixing, adding percentages to resistances)
Line 1: Line 1:
<includeonly>{| width=300px;
{| width=300px;
|style="text-align:center;"|<span style="font-size: 20px;">{{ROOTPAGENAME}}</span><br>Level {{:{{ROOTPAGENAME}}|Level}} {{:{{ROOTPAGENAME}}|Type}}
|style="text-align:center;"|<span style="font-size: 20px;">{{ROOTPAGENAME}}</span><br>Level {{:{{ROOTPAGENAME}}|Level}} {{:{{ROOTPAGENAME}}|Type}}
|-
|-
Line 11: Line 11:
|-
|-
|style="text-align:center;"|{{:{{ROOTPAGENAME}}|Damage1}} {{:{{ROOTPAGENAME}}|DamageType1}} Damage{{#if: {{:{{ROOTPAGENAME}}|Damage2}} | <br>{{:{{ROOTPAGENAME}}|Damage2}} {{:{{ROOTPAGENAME}}|DamageType2}} Damage| }}{{#if: {{:{{ROOTPAGENAME}}|Damage3}} | <br>{{:{{ROOTPAGENAME}}|Damage3}} {{:{{ROOTPAGENAME}}|DamageType3}} Damage| }}{{#if: {{:{{ROOTPAGENAME}}|Damage4}} | <br>{{:{{ROOTPAGENAME}}|Damage4}} {{:{{ROOTPAGENAME}}|DamageType4}} Damage| }}<br><br>
|style="text-align:center;"|{{:{{ROOTPAGENAME}}|Damage1}} {{:{{ROOTPAGENAME}}|DamageType1}} Damage{{#if: {{:{{ROOTPAGENAME}}|Damage2}} | <br>{{:{{ROOTPAGENAME}}|Damage2}} {{:{{ROOTPAGENAME}}|DamageType2}} Damage| }}{{#if: {{:{{ROOTPAGENAME}}|Damage3}} | <br>{{:{{ROOTPAGENAME}}|Damage3}} {{:{{ROOTPAGENAME}}|DamageType3}} Damage| }}{{#if: {{:{{ROOTPAGENAME}}|Damage4}} | <br>{{:{{ROOTPAGENAME}}|Damage4}} {{:{{ROOTPAGENAME}}|DamageType4}} Damage| }}<br><br>
<div style="width:33%;display:inline-block;">Accuracy: {{:{{ROOTPAGENAME}}|Accuracy}}%<br>Block.C: {{:{{ROOTPAGENAME}}|BlockChance}}%<br>Crit.C: {{:{{ROOTPAGENAME}}|CritChance}}%<br>Armor Piercing: {{:{{ROOTPAGENAME}}|ArmorPiercing}}%<br><br>Bleed.C: {{:{{ROOTPAGENAME}}|BleedChance}}%<br>Stun.C: {{:{{ROOTPAGENAME}}|StunChance}}%<br>Knockback.C: {{:{{ROOTPAGENAME}}|KnockbackChance}}%<br>Bonus Range: {{:{{ROOTPAGENAME}}|BonusRange}}</div><div style="width:33%;display:inline-block;">Protection: {{:{{ROOTPAGENAME}}|Protection}}<br>Block.P: {{:{{ROOTPAGENAME}}|BlockPower}}<br>Crit.E: {{:{{ROOTPAGENAME}}|CritEfficiency}}%<br> <br><br>Bleed.R: {{:{{ROOTPAGENAME}}|BleedResistance}}%<br>Daze.C: {{:{{ROOTPAGENAME}}|DazeChance}}%<br>Immobilize.C: {{:{{ROOTPAGENAME}}|ImmobilizeChance}}%<br>Life Leech: {{:{{ROOTPAGENAME}}|LifeLeech}}%</div><div style="width:33%;display:inline-block;">Dodge.C: {{:{{ROOTPAGENAME}}|DodgeChance}}%<br>Fumble.C: {{:{{ROOTPAGENAME}}|FumbleChance}}%<br>Counter.C: {{:{{ROOTPAGENAME}}|CounterChance}}%<br>Magic Power: {{:{{ROOTPAGENAME}}|MagicPower}}%<br><br>Pain.R: {{:{{ROOTPAGENAME}}|PainResistance}}%<br>Control.R: {{:{{ROOTPAGENAME}}|ControlResistance}}%<br>Move.R: {{:{{ROOTPAGENAME}}|MoveResistance}}%<br>Energy Leech: {{:{{ROOTPAGENAME}}|EnergyLeech}}%</div><hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">
<div style="width:33%;display:inline-block;">Accuracy: {{:{{ROOTPAGENAME}}|Accuracy}}%<br>Block.C: {{:{{ROOTPAGENAME}}|BlockChance}}%<br>Crit.C: {{:{{ROOTPAGENAME}}|CritChance}}%<br>Armor.Pen: {{:{{ROOTPAGENAME}}|ArmorPiercing}}%<br><br>Bleed.C: {{:{{ROOTPAGENAME}}|BleedChance}}%<br>Stun.C: {{:{{ROOTPAGENAME}}|StunChance}}%<br>Knockb.C: {{:{{ROOTPAGENAME}}|KnockbackChance}}%<br>Range: {{:{{ROOTPAGENAME}}|BonusRange}}</div><div style="width:33%;display:inline-block;">Protection: {{:{{ROOTPAGENAME}}|Protection}}<br>Block.P: {{:{{ROOTPAGENAME}}|BlockPower}}<br>Crit.E: {{:{{ROOTPAGENAME}}|CritEfficiency}}%<br> <br><br>Bleed.R: {{:{{ROOTPAGENAME}}|BleedResistance}}%<br>Daze.C: {{:{{ROOTPAGENAME}}|DazeChance}}%<br>Immob.C: {{:{{ROOTPAGENAME}}|ImmobilizeChance}}%<br>Life Leech: {{:{{ROOTPAGENAME}}|LifeLeech}}%</div><div style="width:33%;display:inline-block;">Dodge.C: {{:{{ROOTPAGENAME}}|DodgeChance}}%<br>Fumble.C: {{:{{ROOTPAGENAME}}|FumbleChance}}%<br>Counter.C: {{:{{ROOTPAGENAME}}|CounterChance}}%<br>Magic.Pwr: {{:{{ROOTPAGENAME}}|MagicPower}}%<br><br>Pain.R: {{:{{ROOTPAGENAME}}|PainResistance}}%<br>Control.R: {{:{{ROOTPAGENAME}}|ControlResistance}}%<br>Move.R: {{:{{ROOTPAGENAME}}|MoveResistance}}%<br>Energy Leech: {{:{{ROOTPAGENAME}}|EnergyLeech}}%</div><hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">
|-
|-
|style="text-align:center;"|<div style="width:30%;display:inline-block;">Physical: {{:{{ROOTPAGENAME}}|PhysicalResistance}}<br><br>Slashing: {{:{{ROOTPAGENAME}}|SlashingResistance}}<br>Piercing: {{:{{ROOTPAGENAME}}|PiercingResistance}}<br>Crushing: {{:{{ROOTPAGENAME}}|CrushingResistance}}<br>Rending: {{:{{ROOTPAGENAME}}|RendingResistance}}<br> </div><div style="width:30%;display:inline-block;">Nature: {{:{{ROOTPAGENAME}}|NatureResistance}}<br><br>Fire: {{:{{ROOTPAGENAME}}|FireResistance}}<br>Frost: {{:{{ROOTPAGENAME}}|FrostResistance}}<br>Shock: {{:{{ROOTPAGENAME}}|ShockResistance}}<br>Caustic: {{:{{ROOTPAGENAME}}|CausticResistance}}<br>Poison: {{:{{ROOTPAGENAME}}|PoisonResistance}}</div><div style="width:30%;display:inline-block;">Magic: {{:{{ROOTPAGENAME}}|MagicResistance}}<br><br>Arcane: {{:{{ROOTPAGENAME}}|ArcaneResistance}}<br>Unholy: {{:{{ROOTPAGENAME}}|UnholyResistance}}<br>Sacred: {{:{{ROOTPAGENAME}}|SacredResistance}}<br>Psionic: {{:{{ROOTPAGENAME}}|PsionicResistance}}<br> </div><hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">
|style="text-align:center;"|<div style="width:30%;display:inline-block;">Physical: {{:{{ROOTPAGENAME}}|PhysicalResistance}}%<br><br>Slashing: {{:{{ROOTPAGENAME}}|SlashingResistance}}%<br>Piercing: {{:{{ROOTPAGENAME}}|PiercingResistance}}%<br>Crushing: {{:{{ROOTPAGENAME}}|CrushingResistance}}%<br>Rending: {{:{{ROOTPAGENAME}}|RendingResistance}}%<br> </div><div style="width:30%;display:inline-block;">Nature: {{:{{ROOTPAGENAME}}|NatureResistance}}%<br><br>Fire: {{:{{ROOTPAGENAME}}|FireResistance}}%<br>Frost: {{:{{ROOTPAGENAME}}|FrostResistance}}%<br>Shock: {{:{{ROOTPAGENAME}}|ShockResistance}}%<br>Caustic: {{:{{ROOTPAGENAME}}|CausticResistance}}%<br>Poison: {{:{{ROOTPAGENAME}}|PoisonResistance}}%</div><div style="width:30%;display:inline-block;">Magic: {{:{{ROOTPAGENAME}}|MagicResistance}}%<br><br>Arcane: {{:{{ROOTPAGENAME}}|ArcaneResistance}}%<br>Unholy: {{:{{ROOTPAGENAME}}|UnholyResistance}}%<br>Sacred: {{:{{ROOTPAGENAME}}|SacredResistance}}%<br>Psionic: {{:{{ROOTPAGENAME}}|PsionicResistance}}%<br> </div><hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">
|-
|-
|style="text-align:center;"|<div style="width:30%;display:inline-block;">Faction: {{:{{ROOTPAGENAME}}|Faction}}</div><div style="width:30%;display:inline-block;">Size: {{:{{ROOTPAGENAME}}|Size}}</div><div style="width:30%;display:inline-block;">XP: {{:{{ROOTPAGENAME}}|XP}}</div>
|style="text-align:center;"|<div style="width:30%;display:inline-block;">Faction:<br>{{:{{ROOTPAGENAME}}|Faction}}</div><div style="width:30%;display:inline-block;">Size:<br>{{:{{ROOTPAGENAME}}|Size}}</div><div style="width:30%;display:inline-block;">XP:<br>{{:{{ROOTPAGENAME}}|XP}}</div>
|-
|-
|style="color:#9d7969;text-align:justify"|<hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">{{:{{ROOTPAGENAME}}|Description}}
|style="color:#9d7969;text-align:justify"|<hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">{{:{{ROOTPAGENAME}}|Description}}

Revision as of 12:47, 4 September 2020

Enemy
Level Enemy Enemy
Enemy
Health: Enemy Energy: Enemy
STR
AGL
PRC
VIT
WIL

Enemy Enemy Damage
Enemy Enemy Damage
Enemy Enemy Damage
Enemy Enemy Damage

Accuracy: Enemy%
Block.C: Enemy%
Crit.C: Enemy%
Armor.Pen: Enemy%

Bleed.C: Enemy%
Stun.C: Enemy%
Knockb.C: Enemy%
Range: Enemy
Protection: Enemy
Block.P: Enemy
Crit.E: Enemy%
 

Bleed.R: Enemy%
Daze.C: Enemy%
Immob.C: Enemy%
Life Leech: Enemy%
Dodge.C: Enemy%
Fumble.C: Enemy%
Counter.C: Enemy%
Magic.Pwr: Enemy%

Pain.R: Enemy%
Control.R: Enemy%
Move.R: Enemy%
Energy Leech: Enemy%

Physical: Enemy%

Slashing: Enemy%
Piercing: Enemy%
Crushing: Enemy%
Rending: Enemy%
 
Nature: Enemy%

Fire: Enemy%
Frost: Enemy%
Shock: Enemy%
Caustic: Enemy%
Poison: Enemy%
Magic: Enemy%

Arcane: Enemy%
Unholy: Enemy%
Sacred: Enemy%
Psionic: Enemy%
 

Faction:
Enemy
Size:
Enemy

Enemy

</includeonly>

Template-info.png Documentation

This is template created for use together with the Template:Tooltip hover box template. Copy this code to a specific Enemy page (for example, Skeleton Swordsman):

{{ {{{1|Tooltip hover box}}}|title= {{Enemy}} }}

It will automatically load the attrbutes from Enemy data and fill them into the format you see below.

You can provide the enemy name as first parameter, otherwise the pagename is used.

Enemy body types

Enemies gain certain additional attributes (mainly Resistances) from their body types. These bonuses are hardcoded in the Enemy template as the "Matter" variable and added to each enemy's base attributes.

Example

Enemy
Level Enemy Enemy
Enemy
Health: Enemy Energy: Enemy
STR
AGL
PRC
VIT
WIL

Enemy Enemy Damage
Enemy Enemy Damage
Enemy Enemy Damage
Enemy Enemy Damage

Accuracy: Enemy%
Block.C: Enemy%
Crit.C: Enemy%
Armor.Pen: Enemy%

Bleed.C: Enemy%
Stun.C: Enemy%
Knockb.C: Enemy%
Range: Enemy
Protection: Enemy
Block.P: Enemy
Crit.E: Enemy%
 

Bleed.R: Enemy%
Daze.C: Enemy%
Immob.C: Enemy%
Life Leech: Enemy%
Dodge.C: Enemy%
Fumble.C: Enemy%
Counter.C: Enemy%
Magic.Pwr: Enemy%

Pain.R: Enemy%
Control.R: Enemy%
Move.R: Enemy%
Energy Leech: Enemy%

Physical: Enemy%

Slashing: Enemy%
Piercing: Enemy%
Crushing: Enemy%
Rending: Enemy%
 
Nature: Enemy%

Fire: Enemy%
Frost: Enemy%
Shock: Enemy%
Caustic: Enemy%
Poison: Enemy%
Magic: Enemy%

Arcane: Enemy%
Unholy: Enemy%
Sacred: Enemy%
Psionic: Enemy%
 

Faction:
Enemy
Size:
Enemy

Enemy