Difference between revisions of "Template:Enemy test"
Jump to navigation
Jump to search
(Updated template to work with datastring) |
m (fix errors) |
||
Line 5: | Line 5: | ||
-->{{#vardefine:Name|{{#explode: {{#var:Datastring}}|;|-2}}}}<!-- | -->{{#vardefine:Name|{{#explode: {{#var:Datastring}}|;|-2}}}}<!-- | ||
-->{{#vardefine:Level|{{#explode: {{#var:Datastring}}|;|0}}}}<!-- | -->{{#vardefine:Level|{{#explode: {{#var:Datastring}}|;|0}}}}<!-- | ||
-->{{#vardefine:Head DEF|{{#explode: {{#var:Datastring}}|;|14}}}}<!-- | -->{{#vardefine:Head DEF|{{#ifeq: {{#explode: {{#var:Datastring}}|;|14}} | |0|{{#explode: {{#var:Datastring}}|;|14}}}}}}<!-- | ||
-->{{#vardefine:Body DEF|{{#explode: {{#var:Datastring}}|;|15}}}}<!-- | -->{{#vardefine:Body DEF|{{#ifeq: {{#explode: {{#var:Datastring}}|;|15}} | |0|{{#explode: {{#var:Datastring}}|;|15}}}}}}<!-- | ||
-->{{#vardefine:Arms DEF|{{#explode: {{#var:Datastring}}|;|16}}}}<!-- | -->{{#vardefine:Arms DEF|{{#ifeq: {{#explode: {{#var:Datastring}}|;|16}} | |0|{{#explode: {{#var:Datastring}}|;|16}}}}}}<!-- | ||
-->{{#vardefine:Legs DEF|{{#explode: {{#var:Datastring}}|;|17}}}}<!-- | -->{{#vardefine:Legs DEF|{{#ifeq: {{#explode: {{#var:Datastring}}|;|17}} | |0|{{#explode: {{#var:Datastring}}|;|17}}}}}}<!-- | ||
-->{{#vardefine:Slashing Damage|{{#explode: {{#var:Datastring}}|;|67}}}}<!-- | -->{{#vardefine:Slashing Damage|{{#explode: {{#var:Datastring}}|;|67}}}}<!-- | ||
-->{{#vardefine:Piercing Damage|{{#explode: {{#var:Datastring}}|;|68}}}}<!-- | -->{{#vardefine:Piercing Damage|{{#explode: {{#var:Datastring}}|;|68}}}}<!-- | ||
Line 22: | Line 22: | ||
-->{{#vardefine:Unholy Damage|{{#explode: {{#var:Datastring}}|;|77}}}}<!-- | -->{{#vardefine:Unholy Damage|{{#explode: {{#var:Datastring}}|;|77}}}}<!-- | ||
-->{{#vardefine:Psionic Damage|{{#explode: {{#var:Datastring}}|;|79}}}}<!-- | -->{{#vardefine:Psionic Damage|{{#explode: {{#var:Datastring}}|;|79}}}}<!-- | ||
-->{{#vardefine:PhysicalResistance|{{#explode: {{#var:Datastring}}|;|80}}}}<!-- | -->{{#vardefine:PhysicalResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|80}} | |0|{{#explode: {{#var:Datastring}}|;|80}}}}}}<!-- | ||
-->{{#vardefine:NatureResistance|{{#explode: {{#var:Datastring}}|;|81}}}}<!-- | -->{{#vardefine:NatureResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|81}} | |0|{{#explode: {{#var:Datastring}}|;|81}}}}}}<!-- | ||
-->{{#vardefine:MagicResistance|{{#explode: {{#var:Datastring}}|;|82}}}}<!-- | -->{{#vardefine:MagicResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|82}} | |0|{{#explode: {{#var:Datastring}}|;|82}}}}}}<!-- | ||
-->{{#vardefine:SlashingResistance|{{#explode: {{#var:Datastring}}|;|83}}}}<!-- | -->{{#vardefine:SlashingResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|83}} | |0|{{#explode: {{#var:Datastring}}|;|83}}}}}}<!-- | ||
-->{{#vardefine:PiercingResistance|{{#explode: {{#var:Datastring}}|;|84}}}}<!-- | -->{{#vardefine:PiercingResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|84}} | |0|{{#explode: {{#var:Datastring}}|;|84}}}}}}<!-- | ||
-->{{#vardefine:CrushingResistance|{{#explode: {{#var:Datastring}}|;|85}}}}<!-- | -->{{#vardefine:CrushingResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|85}} | |0|{{#explode: {{#var:Datastring}}|;|85}}}}}}<!-- | ||
-->{{#vardefine:RendingResistance|{{#explode: {{#var:Datastring}}|;|86}}}}<!-- | -->{{#vardefine:RendingResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|86}} | |0|{{#explode: {{#var:Datastring}}|;|86}}}}}}<!-- | ||
-->{{#vardefine:FireResistance|{{#explode: {{#var:Datastring}}|;|87}}}}<!-- | -->{{#vardefine:FireResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|87}} | |0|{{#explode: {{#var:Datastring}}|;|87}}}}}}<!-- | ||
-->{{#vardefine:FrostResistance|{{#explode: {{#var:Datastring}}|;|91}}}}<!-- | -->{{#vardefine:FrostResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|91}} | |0|{{#explode: {{#var:Datastring}}|;|91}}}}}}<!-- | ||
-->{{#vardefine:ShockResistance|{{#explode: {{#var:Datastring}}|;|88}}}}<!-- | -->{{#vardefine:ShockResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|88}} | |0|{{#explode: {{#var:Datastring}}|;|88}}}}}}<!-- | ||
-->{{#vardefine:PoisonResistance|{{#explode: {{#var:Datastring}}|;|89}}}}<!-- | -->{{#vardefine:PoisonResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|89}} | |0|{{#explode: {{#var:Datastring}}|;|89}}}}}}<!-- | ||
-->{{#vardefine:CausticResistance|{{#explode: {{#var:Datastring}}|;|90}}}}<!-- | -->{{#vardefine:CausticResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|90}} | |0|{{#explode: {{#var:Datastring}}|;|90}}}}}}<!-- | ||
-->{{#vardefine:UnholyResistance|{{#explode: {{#var:Datastring}}|;|93}}}}<!-- | -->{{#vardefine:UnholyResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|93}} | |0|{{#explode: {{#var:Datastring}}|;|93}}}}}}<!-- | ||
-->{{#vardefine:ArcaneResistance|{{#explode: {{#var:Datastring}}|;|92}}}}<!-- | -->{{#vardefine:ArcaneResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|92}} | |0|{{#explode: {{#var:Datastring}}|;|92}}}}}}<!-- | ||
-->{{#vardefine:SacredResistance|{{#explode: {{#var:Datastring}}|;|94}}}}<!-- | -->{{#vardefine:SacredResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|94}} | |0|{{#explode: {{#var:Datastring}}|;|94}}}}}}<!-- | ||
-->{{#vardefine:PsionicResistance|{{#explode: {{#var:Datastring}}|;|95}}}}<!-- | -->{{#vardefine:PsionicResistance|{{#ifeq: {{#explode: {{#var:Datastring}}|;|95}} | |0|{{#explode: {{#var:Datastring}}|;|95}}}}}}<!-- | ||
<!-- DEFINE ENEMY BODY TYPE BONUSES | <!-- DEFINE ENEMY BODY TYPE BONUSES | ||
-->{{#if: {{#var:Matter}} | {{#switch: {{#var:Matter}} | -->{{#if: {{#var:Matter}} | {{#switch: {{#var:Matter}} | ||
Line 70: | Line 70: | ||
-->{{Tooltip rule}}'''Protection'''</div><!-- | -->{{Tooltip rule}}'''Protection'''</div><!-- | ||
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!-- | --><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!-- | ||
--> | --><div style="width: 145px;">Head <span style="float:right;">{{#var:Head DEF}}</span></div><!-- | ||
--> | --><div style="width: 145px;">Body <span style="float:right;">{{#var:Body DEF}}</span></div><!-- | ||
--> | --><div style="width: 145px;">Arms <span style="float:right;">{{#var:Arms DEF}}</span></div><!-- | ||
--> | --><div style="width: 145px;">Legs <span style="float:right;">{{#var:Legs DEF}}</span></div></div><!-- | ||
--><div style="text-align:center;">'''Resistances'''</div><!-- | --><div style="text-align:center;">'''Resistances'''</div><!-- | ||
--><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!-- | --><div style="display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: space-between;"><!-- | ||
Line 97: | Line 97: | ||
-->Block Chance <span style="float:right;">{{#explode: {{#var:Datastring}}|;|20}}%</span><br><!-- | -->Block Chance <span style="float:right;">{{#explode: {{#var:Datastring}}|;|20}}%</span><br><!-- | ||
-->Bleed Res. <span style="float:right;">{{#explode: {{#var:Datastring}}|;|35}}%</span><br><!-- | -->Bleed Res. <span style="float:right;">{{#explode: {{#var:Datastring}}|;|35}}%</span><br><!-- | ||
-->Control Res. <span style="float:right;">{{#explode: {{#var:Datastring}}|;|34}}%</span>< | -->Control Res. <span style="float:right;">{{#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;"><!-- | ||
-->Block Power <span style="float:right;">{{#explode: {{#var:Datastring}}|;|21}}</span><br><!-- | -->Block Power <span style="float:right;">{{#explode: {{#var:Datastring}}|;|21}}</span><br><!-- |
Revision as of 12:12, 11 October 2022
This template has no documentation. If you know how to use this template, please add some.