Difference between revisions of "Template:Enemy"
Jump to navigation
Jump to search
Defensive stats
Offensive stats
old>Eriktion (updated Bones stats) |
old>Eriktion (updated Bones stats) |
||
Line 1: | Line 1: | ||
<includeonly><!-- DEFINE ENEMY BODY TYPE BONUSES | <includeonly><!-- DEFINE ENEMY BODY TYPE BONUSES | ||
-->{{#if: {{:{{ROOTPAGENAME}}|Matter}} | {{#switch: {{:{{ROOTPAGENAME}}|Matter}} | -->{{#if: {{:{{ROOTPAGENAME}}|Matter}} | {{#switch: {{:{{ROOTPAGENAME}}|Matter}} | ||
| Bones = {{#vardefine:rescrushing|-20}}{{#vardefine:respiercing|30}}{{#vardefine:resslashing|20}}{{#vardefine:respoison|100}} | | Bones = {{#vardefine:rescrushing|-20}}{{#vardefine:respiercing|30}}{{#vardefine:resslashing|20}}{{#vardefine:respoison|100}}{{#vardefine:resbleed|100}} | ||
| Ectoplasm = {{#vardefine:resphysical|80}}{{#vardefine:resnature|90}}{{#vardefine:resmagic|50}}{{#vardefine:respoison|100}} | | Ectoplasm = {{#vardefine:resphysical|80}}{{#vardefine:resnature|90}}{{#vardefine:resmagic|50}}{{#vardefine:respoison|100}} | ||
| Ooze = {{#vardefine:rescaustic|100}}{{#vardefine:respoison|75}}{{#vardefine:resfire|-75}} | | Ooze = {{#vardefine:rescaustic|100}}{{#vardefine:respoison|75}}{{#vardefine:resfire|-75}} |
Revision as of 19:12, 29 December 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 Expression error: Unrecognized punctuation character "[".%
Nature Expression error: Unrecognized punctuation character "[".%
Magic Expression error: Unrecognized punctuation character "[".%
Slashing Expression error: Unrecognized punctuation character "[".%
Piercing Expression error: Unrecognized punctuation character "[".%
Crushing Expression error: Unrecognized punctuation character "[".%
Rending Enemy%
Fire Expression error: Unrecognized punctuation character "[".%
Frost Enemy%
Shock Enemy%
Poison Expression error: Unrecognized punctuation character "[".%
Caustic Expression error: Unrecognized punctuation character "[".%
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 "[".%
Show moreShow less