Difference between revisions of "Template:Enemy"
Jump to navigation
Jump to search
Defensive stats
Offensive stats
old>Realpsojed (Undo revision 17614 by Realpsojed (talk)) |
old>Realpsojed (updated MP calc, 100% MP is base value) |
||
Line 50: | Line 50: | ||
-->Life Leech <span style="float:right;">{{:{{ROOTPAGENAME}}|LifeLeech}}%</span><br><!-- | -->Life Leech <span style="float:right;">{{:{{ROOTPAGENAME}}|LifeLeech}}%</span><br><!-- | ||
-->Vision <span style="float:right;">{{:{{ROOTPAGENAME}}|Vision}}</span><br><!-- | -->Vision <span style="float:right;">{{:{{ROOTPAGENAME}}|Vision}}</span><br><!-- | ||
-->Magic Power <span style="float:right;">{{:{{ROOTPAGENAME}}|MagicPower}}%</span></div><!-- | -->Magic Power <span style="float:right;">{{#expr: {{:{{ROOTPAGENAME}}|MagicPower}} + 100}}%</span></div><!-- | ||
--><div style="width: 142px; float: left; padding-left: 5px; min-height: 1px;"><!-- | --><div style="width: 142px; float: left; padding-left: 5px; min-height: 1px;"><!-- | ||
-->Crit Efficiency <span style="float:right;">x{{#expr: ({{:{{ROOTPAGENAME}}|CritEfficiency}} + 100)/100}}</span><br><!-- | -->Crit Efficiency <span style="float:right;">x{{#expr: ({{:{{ROOTPAGENAME}}|CritEfficiency}} + 100)/100}}</span><br><!-- |
Revision as of 00:41, 25 May 2021
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
Physical Enemy%
Nature Enemy%
Magic Enemy%
Slashing Enemy%
Piercing Enemy%
Crushing Enemy%
Rending Enemy%
Fire Enemy%
Frost Enemy%
Shock Enemy%
Poison Enemy%
Caustic Enemy%
Unholy Enemy%
Arcane Enemy%
Sacred Enemy%
Psionic Enemy%
Defensive stats
Offensive stats
Crit Chance Enemy%
Accuracy Enemy%
Counter Chance Enemy%
Stun Chance Enemy%
Knockb. Chance Enemy%
Life Leech Enemy%
Vision Enemy
Magic Power Expression error: Unrecognized punctuation character "[".%
Accuracy Enemy%
Counter Chance Enemy%
Stun Chance Enemy%
Knockb. Chance Enemy%
Life Leech Enemy%
Vision Enemy
Magic Power Expression error: Unrecognized punctuation character "[".%