Template:InfoEnemy: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 19: Line 19:


### Cargo Store ###
### Cargo Store ###
--><includeonly>{{#ifeq:{{#sub:{{PAGENAME}}|0|7}}|Crystal||
--><includeonly>{{#vardefine:def0|{{#cargo_query:table=DefenseList|fields=DefenseVal|where=AttackVal="{{{attack|1}}}"}}}}{{#ifeq:{{#sub:{{PAGENAME}}|0|7}}|Crystal||
{{#cargo_store:_table=Enemies
{{#cargo_store:_table=Enemies
   |Image={{PAGENAME}} Idle.gif
   |Image={{PAGENAME}} Idle.gif
Line 80: Line 80:
<label>Def for 0</label>
<label>Def for 0</label>
</data>
</data>
                <data  source="testval">
                    <label>Test:</label>
                    <default>{{#var:def0}}</default>
                </data>
<data source="respawn" layout="default">
<data source="respawn" layout="default">
<label>Respawn</label>
<label>Respawn</label>

Revision as of 03:30, 2 March 2023

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=example (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 (e.g. Crystal Carrot for blunder hills)
|prevenemy=example (previous monster for navigation)
|nextenemy=example (next monster for navigation)
|notes=example (optional)
}}