Difference between revisions of "Template:Enemy"
Jump to navigation
Jump to search
Resistances
Defensive stats
Offensive stats
Attributes
Miscellaneous
(add phys/natur/magic resistance % to resistances from their respective category) |
|||
Line 79: | Line 79: | ||
-->{{#ifeq: {{#expr: {{#var:resnature}} + {{#var:NatureResistance}}}} | 0 | |<div style="width: 145px;">Nature <span style="float:right;">{{#expr: {{#var:resnature}} + {{#var:NatureResistance}}}}%</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:resnature}} + {{#var:NatureResistance}}}} | 0 | |<div style="width: 145px;">Nature <span style="float:right;">{{#expr: {{#var:resnature}} + {{#var:NatureResistance}}}}%</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:resmagic}} + {{#var:MagicResistance}}}} | 0 | |<div style="width: 145px;">Magic <span style="float:right;">{{#expr: {{#var:resmagic}} + {{#var:MagicResistance}}}}%</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:resmagic}} + {{#var:MagicResistance}}}} | 0 | |<div style="width: 145px;">Magic <span style="float:right;">{{#expr: {{#var:resmagic}} + {{#var:MagicResistance}}}}%</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:resslashing}} + {{#var:PhysicalResistance}} + {{#var:SlashingResistance}}}} | 0 | |<div style="width: 145px;">Slashing <span style="float:right;">{{#expr: {{#var:resslashing}} + {{#var:SlashingResistance}}}}%</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:resslashing}} + {{#var:PhysicalResistance}} + {{#var:SlashingResistance}}}} | 0 | |<div style="width: 145px;">Slashing <span style="float:right;">{{#expr: {{#var:resslashing}} + {{#var:PhysicalResistance}} + {{#var:SlashingResistance}}}}%</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:respiercing}} + {{#var:PhysicalResistance}} + {{#var:PiercingResistance}}}} | 0 | |<div style="width: 145px;">Piercing <span style="float:right;">{{#expr: {{#var:respiercing}} + {{#var:PiercingResistance}}}}%</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:respiercing}} + {{#var:PhysicalResistance}} + {{#var:PiercingResistance}}}} | 0 | |<div style="width: 145px;">Piercing <span style="float:right;">{{#expr: {{#var:respiercing}} + {{#var:PhysicalResistance}} + {{#var:PiercingResistance}}}}%</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:rescrushing}} + {{#var:PhysicalResistance}} + {{#var:CrushingResistance}}}} | 0 | |<div style="width: 145px;">Crushing <span style="float:right;">{{#expr: {{#var:rescrushing}} + {{#var:CrushingResistance}}}}%</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:rescrushing}} + {{#var:PhysicalResistance}} + {{#var:CrushingResistance}}}} | 0 | |<div style="width: 145px;">Crushing <span style="float:right;">{{#expr: {{#var:rescrushing}} + {{#var:PhysicalResistance}} + {{#var:CrushingResistance}}}}%</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:PhysicalResistance}} + {{#var:RendingResistance}}}} | 0 | |<div style="width: 145px;">Rending <span style="float:right;">{{#var:RendingResistance}}%</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:PhysicalResistance}} + {{#var:RendingResistance}}}} | 0 | |<div style="width: 145px;">Rending <span style="float:right;">{{#expr: {{#var:PhysicalResistance}} + {{#var:RendingResistance}}}}%</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:resfire}} + {{#var:NatureResistance}} + {{#var:FireResistance}}}} | 0 | |<div style="width: 145px;">{{C|Fire}} <span style="float:right;">{{C|Fire|{{#expr: {{#var:resfire}} + {{#var:FireResistance}}}}%}}</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:resfire}} + {{#var:NatureResistance}} + {{#var:FireResistance}}}} | 0 | |<div style="width: 145px;">{{C|Fire}} <span style="float:right;">{{C|Fire|{{#expr: {{#var:resfire}} + {{#var:NatureResistance}} + {{#var:FireResistance}}}}%}}</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:NatureResistance}} + {{#var:FrostResistance}}}} | 0 | |<div style="width: 145px;">{{C|Frost}} <span style="float:right;">{{C|Frost|{{#var:FrostResistance}}%}}</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:NatureResistance}} + {{#var:FrostResistance}}}} | 0 | |<div style="width: 145px;">{{C|Frost}} <span style="float:right;">{{C|Frost|{{#expr: {{#var:NatureResistance}} + {{#var:FrostResistance}}}}%}}</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:NatureResistance}} + {{#var:ShockResistance}}}} | 0 | |<div style="width: 145px;">{{C|Shock}} <span style="float:right;">{{C|Shock|{{#var:ShockResistance}}%}}</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:NatureResistance}} + {{#var:ShockResistance}}}} | 0 | |<div style="width: 145px;">{{C|Shock}} <span style="float:right;">{{C|Shock|{{#expr: {{#var:NatureResistance}} + {{#var:ShockResistance}}}}%}}</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:respoison}} + {{#var:NatureResistance}} + {{#var:PoisonResistance}}}} | 0 | |<div style="width: 145px;">{{C|Poison}} <span style="float:right;">{{C|Poison|{{#expr: {{#var:respoison}} + {{#var:PoisonResistance}}}}%}}</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:respoison}} + {{#var:NatureResistance}} + {{#var:PoisonResistance}}}} | 0 | |<div style="width: 145px;">{{C|Poison}} <span style="float:right;">{{C|Poison|{{#expr: {{#var:respoison}} + {{#var:NatureResistance}} + {{#var:PoisonResistance}}}}%}}</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:rescaustic}} + {{#var:NatureResistance}} + {{#var:CausticResistance}}}} | 0 | |<div style="width: 145px;">{{C|Caustic}} <span style="float:right;">{{C|Caustic|{{#expr: {{#var:rescaustic}} + {{#var:CausticResistance}}}}%}}</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:rescaustic}} + {{#var:NatureResistance}} + {{#var:CausticResistance}}}} | 0 | |<div style="width: 145px;">{{C|Caustic}} <span style="float:right;">{{C|Caustic|{{#expr: {{#var:rescaustic}} + {{#var:NatureResistance}} + {{#var:CausticResistance}}}}%}}</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:MagicResistance}} + {{#var:UnholyResistance}}}} | 0 | |<div style="width: 145px;">{{C|Unholy}} <span style="float:right;">{{C|Unholy|{{#var:UnholyResistance}}%}}</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:MagicResistance}} + {{#var:UnholyResistance}}}} | 0 | |<div style="width: 145px;">{{C|Unholy}} <span style="float:right;">{{C|Unholy|{{#expr: {{#var:MagicResistance}} + {{#var:UnholyResistance}}}}%}}</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:MagicResistance}} + {{#var:ArcaneResistance}}}} | 0 | |<div style="width: 145px;">{{C|Arcane}} <span style="float:right;">{{C|Arcane|{{#var:ArcaneResistance}}%}}</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:MagicResistance}} + {{#var:ArcaneResistance}}}} | 0 | |<div style="width: 145px;">{{C|Arcane}} <span style="float:right;">{{C|Arcane|{{#expr: {{#var:MagicResistance}} + {{#var:ArcaneResistance}}}}%}}</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:MagicResistance}} + {{#var:SacredResistance}}}} | 0 | |<div style="width: 145px;">{{C|Sacred}} <span style="float:right;">{{C|Sacred|{{#var:SacredResistance}}%}}</span></div>}}<!-- | -->{{#ifeq: {{#expr: {{#var:MagicResistance}} + {{#var:SacredResistance}}}} | 0 | |<div style="width: 145px;">{{C|Sacred}} <span style="float:right;">{{C|Sacred|{{#expr: {{#var:MagicResistance}} + {{#var:SacredResistance}}}}%}}</span></div>}}<!-- | ||
-->{{#ifeq: {{#expr: {{#var:MagicResistance}} + {{#var:PsionicResistance}}}} | 0 | |<div style="width: 145px;">{{C|Psionic}} <span style="float:right;">{{C|Psionic|{{#var:PsionicResistance}}%}}</span></div>}}</div><!-- | -->{{#ifeq: {{#expr: {{#var:MagicResistance}} + {{#var:PsionicResistance}}}} | 0 | |<div style="width: 145px;">{{C|Psionic}} <span style="float:right;">{{C|Psionic|{{#expr: {{#var:MagicResistance}} + {{#var:PsionicResistance}}}}%}}</span></div>}}</div><!-- | ||
--><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-statistics1"><!-- | --><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-statistics1"><!-- | ||
--><div style="text-align:center;">{{Tooltip rule}}'''Defensive stats'''</div><!-- | --><div style="text-align:center;">{{Tooltip rule}}'''Defensive stats'''</div><!-- |
Revision as of 00:22, 16 October 2022
Documentation
[purge]
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
Head 0
Body 0
Arms 0
Legs 0
Resistances
Defensive stats
Block Chance 0%
Bleed Res. 0%
Control Res. 0%
Bleed Res. 0%
Control Res. 0%
Block Power 0
Pain Res. 0%
Move Res. 0%
Dodge Chance 0%
Pain Res. 0%
Move Res. 0%
Dodge Chance 0%
Offensive stats
Crit Chance 0%
Accuracy 0%
Counter Chance 0%
Stun Chance 0%
Knockb. Chance 0%
Life Leech 0%
Vision 0
Magic Power 100%
Accuracy 0%
Counter Chance 0%
Stun Chance 0%
Knockb. Chance 0%
Life Leech 0%
Vision 0
Magic Power 100%
Crit Efficiency ×1
Bleed Chance 0%
Fumble Chance 0%
Daze Chance 0%
Immob. Chance 0%
Energy Leech 0%
Bonus Range 0
Armor Pen. 0%
Bleed Chance 0%
Fumble Chance 0%
Daze Chance 0%
Immob. Chance 0%
Energy Leech 0%
Bonus Range 0
Armor Pen. 0%
Attributes
STR
AGL
PRC
VIT
WIL
Miscellaneous
Faction:
Size:
XP:
Show moreShow less
Data does not exist.