Changes

Jump to navigation Jump to search
1,567 bytes added ,  01:09, 25 March 2020
Add Format section
Line 1: Line 1:  
←[[Modding:Index|Index]]
 
←[[Modding:Index|Index]]
{{stub|Need section documenting data format.}}
      
This page explains how the game stores and parses monster data. This is an advanced guide for mod developers.
 
This page explains how the game stores and parses monster data. This is an advanced guide for mod developers.
Line 47: Line 46:  
}
 
}
 
</source>}}
 
</source>}}
 +
 +
==Format==
 +
{| class="wikitable"
 +
|-
 +
! Index
 +
! Field
 +
! Example Value
 +
|-
 +
| 0
 +
| health (hit points)
 +
| ''24''
 +
|-
 +
| 1
 +
| damage (attack)
 +
| ''5''
 +
|-
 +
| 2
 +
| minimum coins to drop ''(unimplemented)''
 +
| ''0''
 +
|-
 +
| 3
 +
| maximum coins to drop ''(unimplemented)''
 +
| ''0''
 +
|-
 +
| 4
 +
| whether a "glider"
 +
| ''false''
 +
|-
 +
| 5
 +
| duration of random movements
 +
| ''1000''
 +
|-
 +
| 6
 +
| objects to drop
 +
| ''766 .75 766 .05 153 .1 66 .015 92 .15 96 .005 99 .001''
 +
|-
 +
| 7
 +
| resilience (defense)
 +
| ''1''
 +
|-
 +
| 8
 +
| jitteriness
 +
| ''.01''
 +
|-
 +
| 9
 +
| distance threshold for moving towards player
 +
| ''4''
 +
|-
 +
| 10
 +
| speed
 +
| ''2''
 +
|-
 +
| 11
 +
| chance of attacks missing
 +
| ''.00''
 +
|-
 +
| 12
 +
| whether a "mine monster"
 +
| ''true''
 +
|-
 +
| 13
 +
| experience gained
 +
| ''3''
 +
|-
 +
| 14
 +
| display name
 +
| ''Green Slime''
 +
|-
 +
|}
 +
 +
Index 4 designates "gliders". These include most, but not all, of the flying monsters.
 +
 +
Index 6 sets out a list of object ID numbers each followed by the probability of that object being chosen. Multiple objects can be chosen from the list. "Extra drop items" in the game code supplement this list for several monster types.
 +
 +
Index 12 designates "mine monsters". These appear to include farm monsters like the Wilderness Golem, which are flagged separately in the game code. This field is ''false'' only for non-monsters that use the data file, such as the Fireball projectile launched by the Squid Kid.
 +
 +
Note that many of the values stored in the monster data are altered by the game code under specific circumstances. These include being in different parts of the mines, having reached the bottom of the mines and having a higher combat skill level.
    
==Slimes==
 
==Slimes==
37

edits

Navigation menu