Template:Boss: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
imported>Kiokurashi
No edit summary
Line 25: Line 25:
|-
|-
! colspan="2" class="SubHeader" | Attacks
! colspan="2" class="SubHeader" | Attacks
{{#vardefine:i|0}}
{{#invoke:Loops|bossAttacks|attackList={{{AttackList|}}}|damageList={{{NormalDamages|}}}}}
{{#while:
| {{#if: {{#explode:{{{AttackList|}}}|,|{{#var:i}}}} | true }}
| <nowiki />
{{!}}-
! {{#explode:{{{AttackList|}}}|,|{{#var:i}}}}
{{!}} {{Numdisplay|{{#explode:{{{NormalDamages|}}}|,|{{#var:i}}}}}} {{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
}}
|-
|-
{{#ifeq: {{{hascard}}} | yes | {{#dpl:  
{{#ifeq: {{{hascard}}} | yes | {{#dpl:  
Line 67: Line 60:
|-
|-
! colspan="2" class="SubHeader" | Attacks
! colspan="2" class="SubHeader" | Attacks
{{#vardefine:i|0}}
{{#invoke:Loops|bossAttacks|attackList={{{AttackList|}}}|damageList={{{ChaoticDamages|}}}}}
{{#while:
| {{#if: {{#explode:{{{AttackList|}}}|,|{{#var:i}}}} | true }}
| <nowiki />
{{!}}-
! {{#explode:{{{AttackList|}}}|,|{{#var:i}}}}
{{!}} {{Numdisplay|{{#explode:{{{ChaoticDamages|}}}|,|{{#var:i}}}}}} {{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
}}
|-
|-
{{#ifeq: {{{hascard}}} | yes | {{#dpl:  
{{#ifeq: {{{hascard}}} | yes | {{#dpl:  
Line 109: Line 95:
|-
|-
! colspan="2" class="SubHeader" | Attacks
! colspan="2" class="SubHeader" | Attacks
{{#vardefine:i|0}}
{{#invoke:Loops|bossAttacks|attackList={{{AttackList|}}}|damageList={{{NightmareDamages|}}}}}
{{#while:
| {{#if: {{#explode:{{{AttackList|}}}|,|{{#var:i}}}} | true }}
| <nowiki />
{{!}}-
! {{#explode:{{{AttackList|}}}|,|{{#var:i}}}}
{{!}} {{Numdisplay|{{#explode:{{{NightmareDamages|}}}|,|{{#var:i}}}}}} {{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
}}
|-
|-
{{#ifeq: {{{hascard}}}|yes|{{#dpl:  
{{#ifeq: {{{hascard}}}|yes|{{#dpl:  

Revision as of 04:39, 27 July 2021

Usage:
Attack1-7 is for the name of the attack. The first number of health, exp, accurary and dmg defined the difficulty. 1 for normal. 2 for chaotic, 3 for nightmare. 
{{boss
|1health=example
|2health=example
|3health=example
|1exp=example
|2exp=example
|3exp=example
|def1=example
|def2=example
|def3=example
|AttackList=<attack name 1>, <attack name 2>, <attack name 3>..etc
|NormalDamages=<attack 1 dmg>, <attack 2 dmg>.. etc for the normal version of the boss
|ChaoticDamages=<attack 1 dmg>, <attack 2 dmg>.. etc for the chaotic version of the boss
|NightmareDamages=<attack 1 dmg>, <attack 2 dmg>.. etc for the nightmare version of the boss
}}