Template:InfoEnemy: Difference between revisions
From IdleOn MMO Wiki
Kiokurashi (talk | contribs) mNo edit summary |
Kiokurashi (talk | contribs) mNo edit summary |
||
Line 60: | Line 60: | ||
<data source="attack"> | <data source="attack"> | ||
<label>{{Icons|Attack Icon|17|text=Attack}}</label> | <label>{{Icons|Attack Icon|17|text=Attack}}</label> | ||
<format>{{Numdisplay|{{{attack}}}}}</format> | <format>{{#ifeq:{{{attack|}}}|Variable|Variable|{{Numdisplay|{{{attack}}}}}}}</format> | ||
</data> | </data> | ||
<data source="health"> | <data source="health"> | ||
<label>{{Icons|HP Icon|18|text=Health}}</label> | <label>{{Icons|HP Icon|18|text=Health}}</label> | ||
<format>{{Numdisplay|{{{health}}}}}</format> | <format>{{#ifeq:{{{health|}}}|Variable|Variable|{{Numdisplay|{{{health}}}}}}}</format> | ||
</data> | </data> | ||
<data source="defence"> | <data source="defence"> | ||
<label>{{Icons|Accuracy Icon|15|text=5% Accuracy}}</label> | <label>{{Icons|Accuracy Icon|15|text=5% Accuracy}}</label> | ||
<format>{{Numdisplay|{{#expr: ceil({{{defence}}}*0.5)}}}}</format> | <format>{{#ifeq:{{{defence|}}}|Variable|Variable|{{Numdisplay|{{#expr: ceil({{{defence}}}*0.5)}}}}}}</format> | ||
</data> | </data> | ||
<data source="defence"> | <data source="defence"> | ||
<label>100% Accuracy</label> | <label>100% Accuracy</label> | ||
<format>{{Numdisplay|{{#expr: ceil({{{defence}}}*1.5)}}}}</format> | <format>{{#ifeq:{{{defence|}}}|Variable|Variable|{{Numdisplay|{{#expr: ceil({{{defence}}}*1.5)}}}}}}</format> | ||
</data> | </data> | ||
<data source="exp"> | <data source="exp"> | ||
<label>Experience</label> | <label>Experience</label> | ||
<format>{{Numdisplay|{{{exp}}}}}</format> | <format>{{#ifeq:{{{defence|}}}|Variable|Variable|{{Numdisplay|{{{exp}}}}}}}</format> | ||
</data> | </data> | ||
<data source="Ndefence0"> | <data source="Ndefence0"> | ||
<label>Def for 0</label> | <label>Def for 0</label> | ||
<default>{{#invoke:NumberFormater|main|{{#var:NDef0}}|formattype=tooltip}}</default> | <default>{{#ifeq:{{{attack|}}}|Variable|Variable|{{#invoke:NumberFormater|main|{{#var:NDef0}}|formattype=tooltip}}}}</default> | ||
</data> | </data> | ||
<data source="respawn" layout="default"> | <data source="respawn" layout="default"> |
Revision as of 04:02, 17 March 2024
This template defines the table "Enemies". View table.
Usage: {{InfoEnemy |attack=example |health=example |defence=example (this defines the accuracy values required) |exp=example |world=example |areas=example |crystalname=example (e.g. Crystal Carrot for blunder hills) |prevenemy=example (previous monster for navigation) |nextenemy=example (next monster for navigation) |notes=example (optional) }}