Difference between revisions of "Template:Enemy"

From Stoneshard wiki
Jump to navigation Jump to search
(New variables for total resistances, fixed resistance calculation to include phys/natur/magic res from body type, added commentary)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--- Define datastring as variable - to only load from the Enemy data page once. ---
--- Load complete datastring into a variable - to only load from the Enemy data page once. ---
-->{{#vardefine:Datastring|{{:Enemy_data|{{ROOTPAGENAME}}}}}}<!--
-->{{#vardefine:Datastring|{{:Enemy_data|{{ROOTPAGENAME}}}}}}<!--
--- Separate values from datastring into individual variables. ---
-->{{#vardefine:Matter|{{#explode: {{#var:Datastring}}|;|9}}}}<!--
-->{{#vardefine:Matter|{{#explode: {{#var:Datastring}}|;|9}}}}<!--
-->{{#vardefine:Name|{{#explode: {{#var:Datastring}}|;|-2}}}}<!--
-->{{#vardefine:Name|{{#explode: {{#var:Datastring}}|;|-2}}}}<!--
Line 38: Line 39:
-->{{#vardefine:SacredResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|94}} | |0|{{#explode: {{#var:Datastring}}|;|94}}}}}}<!--
-->{{#vardefine:SacredResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|94}} | |0|{{#explode: {{#var:Datastring}}|;|94}}}}}}<!--
-->{{#vardefine:PsionicResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|95}} | |0|{{#explode: {{#var:Datastring}}|;|95}}}}}}<!--
-->{{#vardefine:PsionicResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|95}} | |0|{{#explode: {{#var:Datastring}}|;|95}}}}}}<!--
<!-- DEFINE ENEMY BODY TYPE BONUSES
--- Define additional bonuses from enemy body type as individual variables. ---
-->{{#if: {{#var:Matter}} | {{#switch: {{#var:Matter}}
-->{{#if: {{#var:Matter}} | {{#switch: {{#var: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}}
Line 46: Line 47:
| #default = }}
| #default = }}
| }}<!--
| }}<!--
--- Define Total Resistance variables by adding up resistances from enemy res, body type res and from the respective phys/natur/magic res category. ---
-->{{#vardefine:TotalPhysicalResistance|{{#expr: {{#var:resphysical}} + {{#var:PhysicalResistance}}}}}}<!--
-->{{#vardefine:TotalNatureResistance|{{#expr: {{#var:resnature}} + {{#var:NatureResistance}}}}}}<!--
-->{{#vardefine:TotalMagicResistance|{{#expr: {{#var:resmagic}} + {{#var:MagicResistance}}}}}}<!--
-->{{#vardefine:TotalSlashingResistance|{{#expr: {{#var:resphysical}} + {{#var:resslashing}} + {{#var:PhysicalResistance}} + {{#var:SlashingResistance}}}}}}<!--
-->{{#vardefine:TotalPiercingResistance|{{#expr: {{#var:resphysical}} + {{#var:respiercing}} + {{#var:PhysicalResistance}} + {{#var:PiercingResistance}}}}}}<!--
-->{{#vardefine:TotalCrushingResistance|{{#expr: {{#var:resphysical}} + {{#var:rescrushing}} + {{#var:PhysicalResistance}} + {{#var:CrushingResistance}}}}}}<!--
-->{{#vardefine:TotalRendingResistance|{{#expr: {{#var:resphysical}} + {{#var:PhysicalResistance}} + {{#var:RendingResistance}}}}}}<!--
-->{{#vardefine:TotalFireResistance|{{#expr: {{#var:resnature}} + {{#var:resfire}} + {{#var:NatureResistance}} + {{#var:FireResistance}}}}}}<!--
-->{{#vardefine:TotalFrostResistance|{{#expr: {{#var:resnature}} + {{#var:NatureResistance}} + {{#var:FrostResistance}}}}}}<!--
-->{{#vardefine:TotalShockResistance|{{#expr: {{#var:resnature}} + {{#var:NatureResistance}} + {{#var:ShockResistance}}}}}}<!--
-->{{#vardefine:TotalPoisonResistance|{{#expr: {{#var:resnature}} + {{#var:respoison}} + {{#var:NatureResistance}} + {{#var:PoisonResistance}}}}}}<!--
-->{{#vardefine:TotalCausticResistance|{{#expr: {{#var:resnature}} + {{#var:rescaustic}} + {{#var:NatureResistance}} + {{#var:CausticResistance}}}}}}<!--
-->{{#vardefine:TotalUnholyResistance|{{#expr: {{#var:resmagic}} + {{#var:MagicResistance}} + {{#var:UnholyResistance}}}}}}<!--
-->{{#vardefine:TotalArcaneResistance|{{#expr: {{#var:resmagic}} + {{#var:MagicResistance}} + {{#var:ArcaneResistance}}}}}}<!--
-->{{#vardefine:TotalSacredResistance|{{#expr: {{#var:resmagic}} + {{#var:MagicResistance}} + {{#var:SacredResistance}}}}}}<!--
-->{{#vardefine:TotalPsionicResistance|{{#expr: {{#var:resmagic}} + {{#var:MagicResistance}} + {{#var:PsionicResistance}}}}}}<!--
--- TOOLTIP START ---
--><div style="width: 300px;">
--><div style="width: 300px;">
<div style="text-align:center;"><br><span style="font-size: 20px;">{{#if:{{#var:Name}}|{{#var:Name}}|{{ROOTPAGENAME}}}}</span><br><!--
<div style="text-align:center;"><br><span style="font-size: 20px;">{{#if:{{#var:Name}}|{{#var:Name}}|{{ROOTPAGENAME}}}}</span><br><!--
--- Level X / Enemy Type with capitalized first letter ---
-->Level {{#var:Level}} <!--
-->Level {{#var:Level}} <!--
-->{{#explode: {{#var:Datastring}}|;|3}}{{Clear}}<!--
-->{{ucfirst:{{#explode: {{#var:Datastring}}|;|3}}}}{{Clear}}<!--
--- Enemy Image + Second Enemy Image for Necromancer (Dagger) only---
-->[[File:{{ROOTPAGENAME}}.png|link=|class=image2x|alt={{ROOTPAGENAME}}|{{ROOTPAGENAME}}]]{{#ifeq:{{ROOTPAGENAME}}|Necromancer (Dagger)|[[File:Necromancer (Cowl and dagger).png|link=|class=image2x|alt={{ROOTPAGENAME}}|{{ROOTPAGENAME}}]]|}}{{Clear}}<!--
-->[[File:{{ROOTPAGENAME}}.png|link=|class=image2x|alt={{ROOTPAGENAME}}|{{ROOTPAGENAME}}]]{{#ifeq:{{ROOTPAGENAME}}|Necromancer (Dagger)|[[File:Necromancer (Cowl and dagger).png|link=|class=image2x|alt={{ROOTPAGENAME}}|{{ROOTPAGENAME}}]]|}}{{Clear}}<!--
--><div style="margin-left:5px;margin-right:5px;display:inline-block;">Health: {{#explode: {{#var:Datastring}}|;|12}}</div><!--
--><div style="margin-left:5px;margin-right:5px;display:inline-block;">Health: {{#explode: {{#var:Datastring}}|;|12}}</div><!--
--><div style="margin-left:5px;margin-right:5px;display:inline-block;">Energy: {{#explode: {{#var:Datastring}}|;|13}}</div><!--
--><div style="margin-left:5px;margin-right:5px;display:inline-block;">Energy: {{#explode: {{#var:Datastring}}|;|13}}</div><!--
-->{{Tooltip rule}}'''Damage'''<br><!--
-->{{Tooltip rule}}'''Damage'''<br><!--
--- Only display Damage types that have a value. ---
--- Enemy Damage - only display Damage types that have a value. ---
-->{{#if:{{#var:Slashing Damage}}|<div style="margin-left:5px;margin-right:5px;display:inline-block;">{{#var:Slashing Damage}} {{Translate|Slashing|Properties}}</div>}}<!--
-->{{#if:{{#var:Slashing Damage}}|<div style="margin-left:5px;margin-right:5px;display:inline-block;">{{#var:Slashing Damage}} {{Translate|Slashing|Properties}}</div>}}<!--
-->{{#if:{{#var:Piercing Damage}}|<div style="margin-left:5px;margin-right:5px;display:inline-block;">{{#var:Piercing Damage}} {{Translate|Piercing|Properties}}</div>}}<!--
-->{{#if:{{#var:Piercing Damage}}|<div style="margin-left:5px;margin-right:5px;display:inline-block;">{{#var:Piercing Damage}} {{Translate|Piercing|Properties}}</div>}}<!--
Line 68: Line 89:
-->{{#if:{{#var:Unholy Damage}}|<div style="margin-left:5px;margin-right:5px;display:inline-block;">{{c|Unholy|{{#var:Unholy Damage}} {{Translate|Unholy|Properties}}}}</div>}}<!--
-->{{#if:{{#var:Unholy Damage}}|<div style="margin-left:5px;margin-right:5px;display:inline-block;">{{c|Unholy|{{#var:Unholy Damage}} {{Translate|Unholy|Properties}}}}</div>}}<!--
-->{{#if:{{#var:Psionic Damage}}|<div style="margin-left:5px;margin-right:5px;display:inline-block;">{{c|Psionic|{{#var:Psionic Damage}} {{Translate|Psionic|Properties}}}}</div>}}<!--
-->{{#if:{{#var:Psionic Damage}}|<div style="margin-left:5px;margin-right:5px;display:inline-block;">{{c|Psionic|{{#var:Psionic Damage}} {{Translate|Psionic|Properties}}}}</div>}}<!--
-->{{Tooltip rule}}'''Protection'''</div><!--
-->{{Tooltip rule}}<!--
--- Enemy primary defenses - display both zero and non-zero Protection for all bodyparts, display only non-zero Resistances. ---
-->'''Protection'''</div><!--
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!--
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!--
--><div style="width: 145px;">Head <span style="float:right;">{{#var:Head DEF}}</span></div><!--
--><div style="width: 145px;">Head <span style="float:right;">{{#var:Head DEF}}</span></div><!--
Line 76: Line 99:
--><div style="text-align:center;"><br>'''Resistances'''</div><!--
--><div style="text-align:center;"><br>'''Resistances'''</div><!--
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!--
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!--
-->{{#ifeq: {{#expr: {{#var:resphysical}} + {{#var:PhysicalResistance}}}} | 0 | |<div style="width: 145px;">Physical <span style="float:right;">{{#expr: {{#var:resphysical}} + {{#var:PhysicalResistance}}}}%</span></div>}}<!--
-->{{#ifeq: {{#var:TotalPhysicalResistance}} | 0 | |<div style="width: 145px;">Physical <span style="float:right;">{{#var:TotalPhysicalResistance}}%</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: {{#var:TotalNatureResistance}} | 0 | |<div style="width: 145px;">Nature <span style="float:right;">{{#var:TotalNatureResistance}}%</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: {{#var:TotalMagicResistance}} | 0 | |<div style="width: 145px;">Magic <span style="float:right;">{{#var:TotalMagicResistance}}%</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: {{#var:TotalSlashingResistance}} | 0 | |<div style="width: 145px;">Slashing <span style="float:right;">{{#var:TotalSlashingResistance}}%</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: {{#var:TotalPiercingResistance}} | 0 | |<div style="width: 145px;">Piercing <span style="float:right;">{{#var:TotalPiercingResistance}}%</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: {{#var:TotalCrushingResistance}} | 0 | |<div style="width: 145px;">Crushing <span style="float:right;">{{#var:TotalCrushingResistance}}%</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: {{#var:TotalRendingResistance}} | 0 | |<div style="width: 145px;">Rending <span style="float:right;">{{#var:TotalRendingResistance}}%</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: {{#var:TotalFireResistance}} | 0 | |<div style="width: 145px;">{{C|Fire}} <span style="float:right;">{{C|Fire|{{#var:TotalFireResistance}}%}}</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: {{#var:TotalFrostResistance}} | 0 | |<div style="width: 145px;">{{C|Frost}} <span style="float:right;">{{C|Frost|{{#var:TotalFrostResistance}}%}}</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: {{#var:TotalShockResistance}} | 0 | |<div style="width: 145px;">{{C|Shock}} <span style="float:right;">{{C|Shock|{{#var:TotalShockResistance}}%}}</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: {{#var:TotalPoisonResistance}} | 0 | |<div style="width: 145px;">{{C|Poison}} <span style="float:right;">{{C|Poison|{{#var:TotalPoisonResistance}}%}}</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: {{#var:TotalCausticResistance}} | 0 | |<div style="width: 145px;">{{C|Caustic}} <span style="float:right;">{{C|Caustic|{{#var:TotalCausticResistance}}%}}</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: {{#var:TotalUnholyResistance}} | 0 | |<div style="width: 145px;">{{C|Unholy}} <span style="float:right;">{{C|Unholy|{{#var:TotalUnholyResistance}}%}}</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: {{#var:TotalArcaneResistance}} | 0 | |<div style="width: 145px;">{{C|Arcane}} <span style="float:right;">{{C|Arcane|{{#var:TotalArcaneResistance}}%}}</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: {{#var:TotalSacredResistance}} | 0 | |<div style="width: 145px;">{{C|Sacred}} <span style="float:right;">{{C|Sacred|{{#var:TotalSacredResistance}}%}}</span></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><!--
-->{{#ifeq: {{#var:TotalPsionicResistance}} | 0 | |<div style="width: 145px;">{{C|Psionic}} <span style="float:right;">{{C|Psionic|{{#var:TotalPsionicResistance}}%}}</span></div>}}</div><!--
--- COLLAPSED SECTION START - because these values are not normally visible ingame and there's a ton of them so it clutters the tooltip. ---
--- Stats are displayed in two columns. ---
--><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><!--
Line 122: Line 147:
-->Bonus Range <span style="float:right;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|49}} | |0|{{#explode: {{#var:Datastring}}|;|49}}}}</span><br><!--
-->Bonus Range <span style="float:right;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|49}} | |0|{{#explode: {{#var:Datastring}}|;|49}}}}</span><br><!--
-->Armor Pen. <span style="float:right;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|66}} | |0|{{#explode: {{#var:Datastring}}|;|66}}}}%</span></div>{{Clear}}<!--
-->Armor Pen. <span style="float:right;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|66}} | |0|{{#explode: {{#var:Datastring}}|;|66}}}}%</span></div>{{Clear}}<!--
--><div style="text-align:center;">{{Tooltip rule}}'''Attributes'''<br><!--
--><div style="text-align:center;">{{Tooltip rule}}<!--
--- Attributes are displayed in a row. ---
-->'''Attributes'''<br><!--
--><div style="width:15%;display:inline-block;">STR</div><!--
--><div style="width:15%;display:inline-block;">STR</div><!--
--><div style="width:15%;display:inline-block;">AGL</div><!--
--><div style="width:15%;display:inline-block;">AGL</div><!--
Line 133: Line 160:
--><div style="width:15%;display:inline-block;">{{#explode: {{#var:Datastring}}|;|44}}</div><!--
--><div style="width:15%;display:inline-block;">{{#explode: {{#var:Datastring}}|;|44}}</div><!--
--><div style="width:15%;display:inline-block;">{{#explode: {{#var:Datastring}}|;|46}}</div></div></div><!--
--><div style="width:15%;display:inline-block;">{{#explode: {{#var:Datastring}}|;|46}}</div></div></div><!--
--><div style="text-align:center;">{{Tooltip rule}}'''Miscellaneous'''<br><!--
--- COLLAPSED SECTION END ---
--><div style="text-align:center;">{{Tooltip rule}}<!--
-->'''Miscellaneous'''<br><!--
--><div style="width:30%;display:inline-block;">Faction:<br>{{#explode: {{#var:Datastring}}|;|4}}</div><!--
--><div style="width:30%;display:inline-block;">Faction:<br>{{#explode: {{#var:Datastring}}|;|4}}</div><!--
--><div style="width:30%;display:inline-block;">Size:<br>{{#explode: {{#var:Datastring}}|;|8}}<br></div><!--
--><div style="width:30%;display:inline-block;">Size:<br>{{#explode: {{#var:Datastring}}|;|8}}<br></div><!--
--><div style="width:30%;display:inline-block;">XP:<br>{{#explode: {{#var:Datastring}}|;|11}}<br></div></div><!--
--><div style="width:30%;display:inline-block;">XP:<br>{{#explode: {{#var:Datastring}}|;|11}}<br></div></div><!--
-->{{Tooltip rule}}<div style="text-align:center;"><span class="mw-collapsible mw-customtoggle-statistics1 mw-customtoggle-statistics2" id="mw-customcollapsible-statistics2" style="background-color: #272340; border: 2px solid black; padding: 10px 15px; font-size: 16px;">Show more</span><!--
-->{{Tooltip rule}}<!--
--- BUTTONS START ---
--><div style="text-align:center;"><span class="mw-collapsible mw-customtoggle-statistics1 mw-customtoggle-statistics2" id="mw-customcollapsible-statistics2" style="background-color: #272340; border: 2px solid black; padding: 10px 15px; font-size: 16px;">Show more</span><!--
--><span class="mw-collapsible mw-collapsed mw-customtoggle-statistics1 mw-customtoggle-statistics2" id="mw-customcollapsible-statistics2" style="background-color: #272340; border: 2px solid black; padding: 10px 15px; font-size: 16px;">Show less</span></div><!--
--><span class="mw-collapsible mw-collapsed mw-customtoggle-statistics1 mw-customtoggle-statistics2" id="mw-customcollapsible-statistics2" style="background-color: #272340; border: 2px solid black; padding: 10px 15px; font-size: 16px;">Show less</span></div><!--
--- BUTTONS END ---
--- Enemy Description ---
--><div style="color:#9d7969;text-align:justify;margin-top:10px;">{{#explode: {{#var:Datastring}}|;|-1}}</div></div><!--
--><div style="color:#9d7969;text-align:justify;margin-top:10px;">{{#explode: {{#var:Datastring}}|;|-1}}</div></div><!--
--- TOOLTIP END ---
--></includeonly><noinclude>{{doc}}[[Category:Tooltip templates]]</noinclude>
--></includeonly><noinclude>{{doc}}[[Category:Tooltip templates]]</noinclude>

Revision as of 01:17, 16 October 2022

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 Data does not exist.
Enemy
Health:
Energy:

Damage

Protection
Head 0
Body 0
Arms 0
Legs 0

Resistances

Defensive stats
Block Chance 0%
Bleed Res. 0%
Control Res. 0%
Block Power 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%
Crit Efficiency ×1
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.