Template:MonsterStats: Difference between revisions

From Melvor Idle
(Added damage reduction, fixed monster levels)
(Remove dependency on Variables extension)
Line 2: Line 2:


For example, <nowiki>{{User:MonsterStats|Aeris}}</nowiki> becomes {{MonsterStats|Aeris}}
For example, <nowiki>{{User:MonsterStats|Aeris}}</nowiki> becomes {{MonsterStats|Aeris}}
<onlyinclude><includeonly>{{#vardefine:monster|{{{1|{{PAGENAME}}}}}}}{| class="wikitable" style="margin: 0rem 1rem;"
<onlyinclude><includeonly>{| 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" | {{formatnum:{{#invoke:Monsters|getMonsterCombatLevel|{{#var:monster}}}}}}
| colspan=15 style="text-align: right" | {{formatnum:{{#invoke:Monsters|getMonsterCombatLevel|{{{1|{{PAGENAME}}}}}}}}}
|-
|-
| style="font-weight: bold;" | Hitpoints:  
| style="font-weight: bold;" | Hitpoints:  
| colspan=15 style="text-align: right" | {{Skill|Hitpoints|notext=true}} {{formatnum:{{formatnum:{{#invoke:Monsters|getMonsterHP|{{#var:monster}}}}}}}}
| colspan=15 style="text-align: right" | {{Skill|Hitpoints|notext=true}} {{formatnum:{{formatnum:{{#invoke:Monsters|getMonsterHP|{{{1|{{PAGENAME}}}}}}}}}}}
|-
|-
| style="font-weight: bold;" | Attack Speed:  
| style="font-weight: bold;" | Attack Speed:  
| colspan=15 style="text-align: right" | {{formatnum:{{#invoke:Monsters|getMonsterAttackSpeed|{{#var:monster}}}}}} s
| colspan=15 style="text-align: right" | {{formatnum:{{#invoke:Monsters|getMonsterAttackSpeed|{{{1|{{PAGENAME}}}}}}}}} s
|-
|-
| style="font-weight: bold;" | Max Hit:  
| style="font-weight: bold;" | Max Hit:  
| colspan=15 style="text-align: right" | {{#invoke:Monsters|getMonsterStyleIcon|{{#var:monster}}|notext=true}} {{formatnum:{{#invoke:Monsters|getMonsterStat|{{#var:monster}}|maxHit}}}}
| colspan=15 style="text-align: right" | {{#invoke:Monsters|getMonsterStyleIcon|{{{1|{{PAGENAME}}}}}|notext=true}} {{formatnum:{{#invoke:Monsters|getMonsterStat|{{{1|{{PAGENAME}}}}}|maxHit}}}}
|-
|-
| style="font-weight: bold;" | Accuracy Rating:  
| style="font-weight: bold;" | Accuracy Rating:  
| colspan=15 style="text-align: right" | {{formatnum:{{#invoke:Monsters|getMonsterAR|{{#var:monster}}}}}}
| colspan=15 style="text-align: right" | {{formatnum:{{#invoke:Monsters|getMonsterAR|{{{1|{{PAGENAME}}}}}}}}}
|-
|-
| style="font-weight: bold;" | Damage Reduction:  
| style="font-weight: bold;" | Damage Reduction:  
| colspan=15 style="text-align: right" | {{formatnum:{{#invoke:Monsters|getMonsterStat|{{#var:monster}}|damageReduction}}}}%
| colspan=15 style="text-align: right" | {{formatnum:{{#invoke:Monsters|getMonsterStat|{{{1|{{PAGENAME}}}}}|damageReduction}}}}%
|-
|-
| rowspan=2 style="font-weight: bold;" | Evasion Ratings:
| rowspan=2 style="font-weight: bold;" | Evasion Ratings:
Line 29: Line 29:
| 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:{{#invoke:Monsters|getMonsterER|{{#var:monster}}|Melee}}}}
| colspan=5 style="text-align: right;" | {{formatnum:{{#invoke:Monsters|getMonsterER|{{{1|{{PAGENAME}}}}}|Melee}}}}
| colspan=5 style="text-align: right;" | {{formatnum:{{#invoke:Monsters|getMonsterER|{{#var:monster}}|Ranged}}}}
| colspan=5 style="text-align: right;" | {{formatnum:{{#invoke:Monsters|getMonsterER|{{{1|{{PAGENAME}}}}}|Ranged}}}}
| colspan=5 style="text-align: right;" | {{formatnum:{{#invoke:Monsters|getMonsterER|{{#var:monster}}|Magic}}}}
| colspan=5 style="text-align: right;" | {{formatnum:{{#invoke:Monsters|getMonsterER|{{{1|{{PAGENAME}}}}}|Magic}}}}
|-
|-
| rowspan=2 style="font-weight: bold;" | Skill Levels:
| rowspan=2 style="font-weight: bold;" | Skill Levels:
Line 40: Line 40:
| 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;" | {{#invoke:Monsters|getMonsterLevel|{{#var:monster}}|Attack}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterLevel|{{{1|{{PAGENAME}}}}}|Attack}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterLevel|{{#var:monster}}|Strength}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterLevel|{{{1|{{PAGENAME}}}}}|Strength}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterLevel|{{#var:monster}}|Defence}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterLevel|{{{1|{{PAGENAME}}}}}|Defence}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterLevel|{{#var:monster}}|Ranged}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterLevel|{{{1|{{PAGENAME}}}}}|Ranged}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterLevel|{{#var:monster}}|Magic}}
| colspan=3 style="text-align: right;" | {{#invoke:Monsters|getMonsterLevel|{{{1|{{PAGENAME}}}}}|Magic}}
|}
|}


===Attacks===
===Attacks===
{{#invoke:Monsters|getMonsterAttacks|{{#var:monster}}}}
{{#invoke:Monsters|getMonsterAttacks|{{{1|{{PAGENAME}}}}}}}


{{#invoke:Monsters|getMonsterPassives|{{#var:monster}}}}</includeonly></onlyinclude>
{{#invoke:Monsters|getMonsterPassives|{{{1|{{PAGENAME}}}}}}}</includeonly></onlyinclude>

Revision as of 23:00, 7 October 2022

Template for auto-building monster stat blocks.

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

Combat Stats
Combat Level: 752
Hitpoints: 10,000
Attack Speed: 3 s
Max Hit: Ranged 780
Accuracy Rating: 51,776
Damage Reduction: 25%
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
500 500 450 800 500

Attacks

  • 30% Ranged Barrage
    • Perform 6 fast unavoidable attacks that deal 100 damage each.
  • 25% Ranged Wind Blade
    • Launch 3 avoidable slicing winds that deal 350 damage each.
  • 20% Ranged Whirlwind
    • Launch a large avoidable gust of wind that deals 550 damage. On a hit, applies stun for 1 turn
  • 15% Ranged Tornado
    • Create an unavoidable tornado that slowly hits you 3 times for 400 damage each.
  • 10% Ranged Cyclone
    • Surrounds the enemy in wind for 3.6s, while dealing 600 unavoidable damage 7 times. Gives the enemy +10% Global Evasion and +300 Reflect Damage until the end of the attack.