Difference between revisions of "Template:Enemy"

From Stoneshard wiki
Jump to navigation Jump to search
(remove tooltip link from enemy image, add special case for Necromancer (Dagger))
m
Line 50: Line 50:
-->Level {{#var:Level}} <!--
-->Level {{#var:Level}} <!--
-->{{#explode: {{#var:Datastring}}|;|3}}{{Clear}}<!--
-->{{#explode: {{#var:Datastring}}|;|3}}{{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}}<!--
-->[[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><!--

Revision as of 23:19, 15 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.