Difference between revisions of "Template:Enemy"
Jump to navigation
Jump to search
Resistances
Defensive stats
Offensive stats
Attributes
Miscellaneous
(New variables for total resistances, fixed resistance calculation to include phys/natur/magic res from body type, added commentary) |
(updated enemy body type resistances to 0.8.0.17, they now include bleed res, thus added a variable for BleedResistance and TotalBleedResistance) |
||
Line 39: | 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 additional bonuses from enemy body type as individual variables. --- | -->{{#vardefine:BleedResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|35}} | |0|{{#explode: {{#var:Datastring}}|;|35}}}}}}<!-- | ||
--- Define additional resistance bonuses from enemy body type as individual variables (from scr_mob_material_type). --- | |||
-->{{#if: {{#var:Matter}} | {{#switch: {{#var:Matter}} | -->{{#if: {{#var:Matter}} | {{#switch: {{#var:Matter}} | ||
| bones = {{#vardefine:rescrushing|-20}}{{#vardefine:respiercing| | | bones = {{#vardefine:resphysical|20}}{{#vardefine:rescrushing|-20}}{{#vardefine:respiercing|10}}{{#vardefine:respoison|200}}{{#vardefine:resnature|35}}{{#vardefine:resbleed|200}} | ||
| ectoplasm = {{#vardefine:resphysical|80}}{{#vardefine:resnature| | | ectoplasm = {{#vardefine:resphysical|80}}{{#vardefine:resnature|60}}{{#vardefine:resmagic|-50}}{{#vardefine:respoison|200}}{{#vardefine:resbleed|200}}{{#vardefine:resstone|100}} | ||
| ooze = {{#vardefine:rescaustic|100}}{{#vardefine:respoison|75}}{{#vardefine:resfire|-75}} | | ooze = {{#vardefine:rescaustic|100}}{{#vardefine:respoison|75}}{{#vardefine:resfire|-75}} | ||
| chitin = {{#vardefine:resphysical| | | chitin = {{#vardefine:resphysical|30}} | ||
| #default = }} | | #default = }} | ||
| }}<!-- | | }}<!-- | ||
Line 64: | Line 65: | ||
-->{{#vardefine:TotalSacredResistance|{{#expr: {{#var:resmagic}} + {{#var:MagicResistance}} + {{#var:SacredResistance}}}}}}<!-- | -->{{#vardefine:TotalSacredResistance|{{#expr: {{#var:resmagic}} + {{#var:MagicResistance}} + {{#var:SacredResistance}}}}}}<!-- | ||
-->{{#vardefine:TotalPsionicResistance|{{#expr: {{#var:resmagic}} + {{#var:MagicResistance}} + {{#var:PsionicResistance}}}}}}<!-- | -->{{#vardefine:TotalPsionicResistance|{{#expr: {{#var:resmagic}} + {{#var:MagicResistance}} + {{#var:PsionicResistance}}}}}}<!-- | ||
-->{{#vardefine:TotalBleedResistance|{{#expr: {{#var:resbleed}} + {{#var:BleedResistance}}}}}}<!-- | |||
--- TOOLTIP START --- | --- TOOLTIP START --- | ||
--><div style="width: 300px;"> | --><div style="width: 300px;"> | ||
Line 121: | Line 123: | ||
--><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;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|20}} | |0|{{#explode: {{#var:Datastring}}|;|20}}}}%</span><br><!-- | -->Block Chance <span style="float:right;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|20}} | |0|{{#explode: {{#var:Datastring}}|;|20}}}}%</span><br><!-- | ||
-->Bleed Res. <span style="float:right;"> | -->Bleed Res. <span style="float:right;">{{#var:TotalBleedResistance}}%</span><br><!-- | ||
-->Control Res. <span style="float:right;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|34}} | |0|{{#explode: {{#var:Datastring}}|;|34}}}}%</span></div><!-- | -->Control Res. <span style="float:right;">{{#ifeq: {{#explode: {{#var:Datastring}}|;|34}} | |0|{{#explode: {{#var:Datastring}}|;|34}}}}%</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;"><!-- |
Revision as of 02:16, 16 October 2022
Documentation
[purge]
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
Head 0
Body 0
Arms 0
Legs 0
Resistances
Defensive stats
Block Chance 0%
Bleed Res. 0%
Control Res. 0%
Bleed Res. 0%
Control Res. 0%
Block Power 0
Pain Res. 0%
Move Res. 0%
Dodge Chance 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%
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%
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.