Template:InfoEnemy: Difference between revisions

From IdleOn MMO Wiki
imported>Blackwolfe
No edit summary
imported>Kiokurashi
No edit summary
Line 1: Line 1:
<includeonly>
<noinclude><!--
 
### Cargo Declare ###
-->{{#cargo_declare:_table=Enemies
  |Image=File
  |Attack=Float
  |Accuracy5=Integer
  |Accuracy100=Integer
  |Health=Integer
  |Defence=Integer
  |Speed=Integer
  |World=String
  |Areas=List (,) of String
  |SpecialAreas=List (,) of Wikitext
  |EXP=Integer
  |RespawnTime=String
  |Defence0=Integer
  |CrystalName=String
  |hasCard=Boolean
}}</noinclude><!--
 
### Cargo Store ###
--><includeonly>
{{#cargo_store:_table=Enemies
  |Image={{PAGENAME}} Walking.gif
  |Attack={{{attack|}}}
  |Accuracy5={{#iferror: {{#expr: ceil({{{defence|}}}*0.5)}} }}
  |Accuracy100={{#iferror: {{#expr: ceil({{{defence|}}}*1.5)}} }}
  |Health={{{health|}}}
  |Defence={{{defence}}}
  |Speed={{{speed|}}}
  |World={{{world|}}}
  |Areas={{{area|}}}
  |SpecialAreas={{{customarea|}}}
  |EXP={{{exp|}}}
  |RespawnTime={{{respawn|}}}
  |Defence0={{{defence0|}}}
  |CrystalName={{{crystalname|}}}
  |HasCard={{{hascard|}}}
}}
 
{| class="Infobox"
{| class="Infobox"
|-
|-
Line 21: Line 61:
{{#if: {{{defence|}}} |
{{#if: {{{defence|}}} |
! Accuracy 5%
! Accuracy 5%
{{!}} {{#expr: {{{defence}}}*0.5}} }}
{{!}} {{#expr: ceil({{{defence}}}*0.5)}} }}
|-
|-
{{#if: {{{defence|}}} |
{{#if: {{{defence|}}} |
! Accuracy 100%
! Accuracy 100%
{{!}} {{#expr: {{{defence}}}*1.5}} }}
{{!}} {{#expr: ceil({{{defence}}}*1.5)}} }}
|-
|-
! Defence for 0
! Defence for 0
Line 44: Line 84:
|-
|-
!Area
!Area
|{{#if: {{{area|}}}| [[Worlds#{{{area}}}|{{{area}}}]]}}{{#if: {{{area2|}}}|, [[Worlds#{{{area2}}}|{{{area2}}}]]}}
|{{#vardefine:i|0}}
{{#if: {{{area3|}}}|, [[Worlds#{{{area3}}}|{{{area3}}}]]}}{{#if: {{{customarea|}}} | {{#if:{{{area|}}}|<br>}}{{{customarea}}}}}
{{#while:
| {{#if: {{#explode:{{{area|}}}|,|{{#var:i}}}} | true }}
| <nowiki />
{{#vardefine:areaE|{{#explode:{{{area|}}}|,|{{#var:i}}}}}}
{{#ifexpr:{{#var:i}}>0|, }}[[Worlds#{{#var:areaE}}|{{#var:areaE}}]]{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
}}{{#if: {{{customarea|}}} | {{#if:{{{area|}}}|<br>}}{{{customarea}}}}}
|-
|-
{{#ifeq: {{{crystal}}} | yes |
{{#if: {{{crystalname}}} |
! colspan="2" class="SubHeader" {{!}} [[{{{crystalname}}}]]
! colspan="2" class="SubHeader" {{!}} [[{{{crystalname}}}]]
{{infoEnemy/crystalstats | attack={{{attack}}} | health={{{health}}} | defence={{{defence}}} | exp={{{exp}}}}}
{{infoEnemy/crystalstats | attack={{{attack}}} | health={{{health}}} | defence={{{defence}}} | exp={{{exp}}}}}

Revision as of 20:10, 4 May 2021

This template defines the table "Enemies". View table.

Usage:
{{InfoEnemy
|attack=example
|health=example
|speed=example
|defence=example (this defines the accuracy values required)
|defence0=How much defence is needed to not take damage.
|exp=example
|world=example
|area=example
|area2=example (optional)
|area3=example (optional)
|crystal=yes (if you want to show the stats for the crystal enemy in the area
|crystalname=example (Crystal Carrot for blunder hills for example)
|hascard=yes
}}