Difference between revisions of "Template:Enemy"

From Stoneshard wiki
Jump to navigation Jump to search
m
(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: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:SlashingResistance}}}}%</span></div>}}<!--
-->{{#ifeq: {{#expr: {{#var:respiercing}} + {{#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:PiercingResistance}}}}%</span></div>}}<!--
-->{{#ifeq: {{#expr: {{#var:rescrushing}} + {{#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:CrushingResistance}}}}%</span></div>}}<!--
-->{{#ifeq: {{#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;">{{#var:RendingResistance}}%</span></div>}}<!--
-->{{#ifeq: {{#expr: {{#var:resfire}} + {{#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:FireResistance}}}}%}}</span></div>}}<!--
-->{{#ifeq: {{#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|{{#var:FrostResistance}}%}}</span></div>}}<!--
-->{{#ifeq: {{#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|{{#var:ShockResistance}}%}}</span></div>}}<!--
-->{{#ifeq: {{#expr: {{#var:respoison}} + {{#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:PoisonResistance}}}}%}}</span></div>}}<!--
-->{{#ifeq: {{#expr: {{#var:rescaustic}} + {{#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:CausticResistance}}}}%}}</span></div>}}<!--
-->{{#ifeq: {{#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|{{#var:UnholyResistance}}%}}</span></div>}}<!--
-->{{#ifeq: {{#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|{{#var:ArcaneResistance}}%}}</span></div>}}<!--
-->{{#ifeq: {{#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|{{#var:SacredResistance}}%}}</span></div>}}<!--
-->{{#ifeq: {{#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|{{#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:19, 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.