Difference between revisions of "Template:Enemy"

From Stoneshard wiki
Jump to navigation Jump to search
(new 3 column layout with colors)
(flexbox for off and def stats, fixes misalinged columns)
Line 125: Line 125:
--><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><!--
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!--
--><div style="width: 142px; float: left; padding-right: 5px; min-height: 1px;"><!--
--><div style="width: 142px; float: left; padding-right: 5px; min-height: 1px;"><!--
-->Block Chance <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|20}} | |0|{{#explode: {{#var:Datastring}}|;|20}}}}%</span><br><!--
-->Block Chance <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|20}} | |0|{{#explode: {{#var:Datastring}}|;|20}}}}%</span><br><!--
Line 134: 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;"><!--
-->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><!--
-->Move Res. <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|33}} | |0|{{#explode: {{#var:Datastring}}|;|33}}}}%</span></div>{{Clear}}<!--
-->Move Res. <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|33}} | |0|{{#explode: {{#var:Datastring}}|;|33}}}}%</span></div></div><!--
--><div style="text-align:center;">{{Tooltip rule}}'''Offensive stats'''</div><!--
--><div style="text-align:center;">{{Tooltip rule}}'''Offensive stats'''</div><!--
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!--
--><div style="width: 142px; float: left; padding-right: 5px; min-height: 1px;"><!--
--><div style="width: 142px; float: left; padding-right: 5px; min-height: 1px;"><!--
-->Crit Chance <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|23}} | |0|{{#explode: {{#var:Datastring}}|;|23}}}}%</span><br><!--
-->Crit Chance <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|23}} | |0|{{#explode: {{#var:Datastring}}|;|23}}}}%</span><br><!--
Line 155: Line 157:
-->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>{{Clear}}<!--
-->Armor Pen. <span style="float:right;color:#d5b292;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|66}} | |0|{{#explode: {{#var:Datastring}}|;|66}}}}%</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. ---

Revision as of 19:26, 13 March 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


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%
Pain Res. 0%
Block Power 0
Control Res. 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 0
Crit Efficiency ×1
Bleed Chance 0%
Daze Chance 0%
Immob. Chance 0%
Energy Leech 0%
Bonus Range 0
Accuracy 0%
Fumble Chance 0%
Stagger Chance 0%
Magic Power 100%
Armor Pen. 0%

Attributes
STR:
AGL:
PRC:
VIT:
WIL:

Miscellaneous
Faction:
Size:
XP:

Show moreShow less
Data does not exist.