Difference between revisions of "Template:Enemy"

From Stoneshard wiki
Jump to navigation Jump to search
(add parameter support)
 
(4 intermediate revisions by the same user not shown)
Line 76: Line 76:
--><span style="color:#d5b292;">{{ucfirst:{{#explode: {{#var:Datastring}}|;|3}}}}</span>{{Clear}}<!--
--><span style="color:#d5b292;">{{ucfirst:{{#explode: {{#var:Datastring}}|;|3}}}}</span>{{Clear}}<!--
--- Enemy Image + Second Enemy Image for Necromancer (Dagger) only---
--- Enemy Image + Second Enemy Image for Necromancer (Dagger) only---
-->[[File:{{#var:Page}}.png|link=|class=image2x|alt={{#var:Page}}|{{#var:Page}}]]{{#ifeq:{{#var:Page}}|Necromancer (Dagger)|[[File:Necromancer (Cowl and dagger).png|link=|class=image2x|alt={{#var:Page}}|{{#var:Page}}]]|}}{{Clear}}<!--
-->[[File:{{#var:Page}}.png|link=|class=image2x|alt={{#var:Page}}|{{#var:Page}}]]{{#ifeq:{{#var:Page}}|Occultist|[[File:Occultist (Cowl and dagger).png|link=|class=image2x|alt={{#var:Page}}|{{#var:Page}}]]|}}{{Clear}}<!--
--><div style="margin-left:5px;margin-right:5px;display:inline-block;">Health: <span style="color:#c75c5d;">{{#explode: {{#var:Datastring}}|;|12}}</span></div><!--
--><div style="margin-left:5px;margin-right:5px;display:inline-block;">Health: <span style="color:#c75c5d;">{{#explode: {{#var:Datastring}}|;|12}}</span></div><!--
--><div style="margin-left:5px;margin-right:5px;display:inline-block;">Energy: <span style="color:#4c7fff;">{{#explode: {{#var:Datastring}}|;|13}}</span></div><!--
--><div style="margin-left:5px;margin-right:5px;display:inline-block;">Energy: <span style="color:#4c7fff;">{{#explode: {{#var:Datastring}}|;|13}}</span></div><!--
Line 135: Line 135:
--><div style="width: 142px; float: left; padding-left: 5px;  min-height: 1px;"><!--
--><div style="width: 142px; float: left; padding-left: 5px;  min-height: 1px;"><!--
-->Block Power <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|21}} | |0|{{#explode: {{#var:Datastring}}|;|21}}}}</span><br><!--
-->Block Power <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|21}} | |0|{{#explode: {{#var:Datastring}}|;|21}}}}</span><br><!--
-->Control Res. <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|34}} | |0|{{#explode: {{#var:Datastring}}|;|34}}}}%</span></div><!--
-->Control Res. <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|34}} | |0|{{#explode: {{#var:Datastring}}|;|34}}}}%</span><br><!--
-->Fortitude <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|28}} | |0|{{#explode: {{#var:Datastring}}|;|28}}}}%</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;"><!--
-->Dodge Chance <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|19}} | |0|{{#explode: {{#var:Datastring}}|;|19}}}}%</span><br><!--
-->Dodge Chance <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|19}} | |0|{{#explode: {{#var:Datastring}}|;|19}}}}%</span><br><!--
Line 160: Line 161:
-->Stagger Chance <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|41}} | |0|{{#explode: {{#var:Datastring}}|;|41}}}}%</span><br><!--
-->Stagger Chance <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|41}} | |0|{{#explode: {{#var:Datastring}}|;|41}}}}%</span><br><!--
-->Magic Power <span style="float:right;color:#d5b292;">{{#expr: {{#ifeq: {{#explode: {{#var:Datastring}}|;|65}} | |0|{{#explode: {{#var:Datastring}}|;|65}}}} + 100}}%</span><br><!--
-->Magic Power <span style="float:right;color:#d5b292;">{{#expr: {{#ifeq: {{#explode: {{#var:Datastring}}|;|65}} | |0|{{#explode: {{#var:Datastring}}|;|65}}}} + 100}}%</span><br><!--
-->Armor Pen. <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|66}} | |0|{{#explode: {{#var:Datastring}}|;|66}}}}%</span></div></div><!--
-->Armor Pen. <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|66}} | |0|{{#explode: {{#var:Datastring}}|;|66}}}}%</span><br><!--
-->Bodypart Dmg <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|64}} | |0|{{#explode: {{#var:Datastring}}|;|64}}}}%</span></div></div><!--
--><div style="text-align:center;">{{Tooltip rule}}<!--
--><div style="text-align:center;">{{Tooltip rule}}<!--
--- Attributes are displayed in a row. ---
--- Attributes are displayed in a row. ---
Line 177: Line 179:
-->{{Tooltip rule}}<!--
-->{{Tooltip rule}}<!--
--- BUTTONS START ---
--- 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><!--
--><div style="margin: 1.2em 0; text-align:center;"><span class="spoilerShow mw-collapsible mw-customtoggle-statistics1 mw-customtoggle-statistics2" id="mw-customcollapsible-statistics2" style="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="spoilerHide mw-collapsible mw-collapsed mw-customtoggle-statistics1 mw-customtoggle-statistics2" id="mw-customcollapsible-statistics2" style="font-size: 16px;">Show less</span></div><!--
--- BUTTONS END ---
--- BUTTONS END ---
--- Enemy Description ---
--- Enemy Description ---

Latest revision as of 12:20, 22 October 2023

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


Skeleton Swordsman
Level 4 Undead
Skeleton Swordsman
Health: 65
Energy: 40

Damage
13 Slashing
2 Unholy

Protection
Head 0
Body 2
Arms 1
Legs 1

Resistances
Physical 25%
Slashing 25%
Piercing 35%
Crushing 10%
Rending 25%
Nature 40%
Fire 40%
Frost 40%
Shock 40%
Poison 240%
Caustic 40%
Unholy 99%
Sacred -50%

Defensive stats
Block Chance 10%
Bleed Res. 200%
Pain Res. 100%
Block Power 10
Control Res. 20%
Fortitude 0%
Dodge Chance 0%
Move Res. 0%

Offensive stats
Crit Chance 0%
Counter Chance 0%
Stun Chance 0%
Knockb. Chance 0%
Life Leech 0%
Vision 6
Crit Efficiency ×1
Bleed Chance 10%
Daze Chance 0%
Immob. Chance 0%
Energy Leech 0%
Bonus Range 0
Accuracy 70%
Fumble Chance 30%
Stagger Chance 0%
Magic Power 100%
Armor Pen. 10%
Bodypart Dmg 5%

Attributes
STR: 14
AGL: 12
PRC: 12
VIT: 10
WIL: 10

Miscellaneous
Faction: Undead
Size: medium
XP: 40

Show moreShow less
Hastily armed under the orders of a necromancer, this skeleton is quite capable of dispatching an inexperienced adversary.