Template:MonsterStats: Difference between revisions

From Melvor Idle
(Created MonsterStats template for auto-generating monster pages.)
 
(Now powered by Lua)
Line 1: Line 1:
This template is for the statblock for monsters.
Template for auto-building monster stat blocks.


Content is automatically generated by a bot and thus any modifications could be lost whenever the game is updated.
For example, <nowiki>{{User:Falterfire/MonsterStats|Aeris}}</nowiki> becomes {{MonsterStats|Aeris}}
 
<onlyinclude><includeonly>{{#vardefine:monster|{{{1|{{PAGENAME}}}}}}}{| class="wikitable" style="margin: 0rem 1rem;"
<includeonly><onlyinclude>== Combat ==
 
{| class="wikitable" style="margin: 0rem 1rem;"
|-
|-
! colspan=16 | Combat Stats
! colspan=16 | Combat Stats
|-
|-
| style="font-weight: bold;" | Combat Level:  
| style="font-weight: bold;" | Combat Level:  
| colspan=15 style="text-align: right" | {{{combatLevel}}}
| colspan=15 style="text-align: right" | {{formatnum:{{#invoke:Monsters|getMonsterCombatLevel|{{#var:monster}}}}}}
|-
|-
| style="font-weight: bold;" | Hitpoints:  
| style="font-weight: bold;" | Hitpoints:  
| colspan=15 style="text-align: right" | {{formatnum:{{{hitpoints}}}}}
| colspan=15 style="text-align: right" | {{Skill|Hitpoints|notext=true}} {{formatnum:{{formatnum:{{#invoke:Monsters|getMonsterHP|{{#var:monster}}}}}}}}
|-
|-
| style="font-weight: bold;" | Attack Speed:  
| style="font-weight: bold;" | Attack Speed:  
| colspan=15 style="text-align: right" | {{{attackspeed}}} s
| colspan=15 style="text-align: right" | {{formatnum:{{#invoke:Monsters|getMonsterAttackSpeed|{{#var:monster}}}}}} s
|-
|-
| style="font-weight: bold;" | Accuracy Rating:  
| style="font-weight: bold;" | Accuracy Rating:  
| colspan=15 style="text-align: right" | {{{accuracyRating}}}
| colspan=15 style="text-align: right" | {{formatnum:{{#invoke:Monsters|getMonsterAR|{{#var:monster}}}}}}
|-
|-
| rowspan=2 style="font-weight: bold;" | Evasion Ratings:
| rowspan=2 style="font-weight: bold;" | Evasion Ratings:
Line 26: Line 23:
| colspan=5 style="text-align: center;" | [[File:Magic (skill).svg|25px|middle|link=Magic]]  
| colspan=5 style="text-align: center;" | [[File:Magic (skill).svg|25px|middle|link=Magic]]  
|-
|-
| colspan=5 style="text-align: right;" | {{formatnum:{{{meleeEvasionRating}}}}}
| colspan=5 style="text-align: right;" | {{formatnum:{{#invoke:Monsters|getMonsterER|{{#var:monster}}|Melee}}}}
| colspan=5 style="text-align: right;" | {{formatnum:{{{rangedEvasionRating}}}}}
| colspan=5 style="text-align: right;" | {{formatnum:{{#invoke:Monsters|getMonsterER|{{#var:monster}}|Ranged}}}}
| colspan=5 style="text-align: right;" | {{formatnum:{{{magicEvasionRating}}}}}
| colspan=5 style="text-align: right;" | {{formatnum:{{#invoke:Monsters|getMonsterER|{{#var:monster}}|Magic}}}}
|-
|-
| rowspan=2 style="font-weight: bold;" | Skill Levels:
| rowspan=2 style="font-weight: bold;" | Skill Levels:
Line 37: Line 34:
| colspan=3 style="text-align: center;" | [[File:Magic (skill).svg|25px|middle|link=Magic]]  
| colspan=3 style="text-align: center;" | [[File:Magic (skill).svg|25px|middle|link=Magic]]  
|-
|-
| colspan=3 style="text-align: right;" | {{{attackLevel}}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterStat|{{#var:monster}}|attackLevel}}
| colspan=3 style="text-align: right;" | {{{strengthLevel}}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterStat|{{#var:monster}}|strengthLevel}}
| colspan=3 style="text-align: right;" | {{{defenceLevel}}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterStat|{{#var:monster}}|defenceLevel}}
| colspan=3 style="text-align: right;" | {{{rangedLevel}}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterStat|{{#var:monster}}|rangedLevel}}
| colspan=3 style="text-align: right;" | {{{magicLevel}}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterStat|{{#var:monster}}|magicLevel}}
|}
|}</includeonly></onlyinclude>
 
=== Attacks ===
{{{attacks}}}</onlyinclude></includeonly>

Revision as of 19:12, 18 September 2020

Template for auto-building monster stat blocks.

For example, {{User:Falterfire/MonsterStats|Aeris}} becomes

Combat Stats
Combat Level: 752
Hitpoints:
Error creating thumbnail: File missing
10,000
Attack Speed: 3 s
Accuracy Rating: 51,776
Evasion Ratings: Defence (skill).svg Ranged (skill).svg Magic (skill).svg
23,409 66,096 31,616
Skill Levels: Attack (skill).svg Strength (skill).svg Defence (skill).svg Ranged (skill).svg Magic (skill).svg