Table of Contents
monsters.xml file format
This file describe monsters.
Example file:
- monsters.xml
<?xml version="1.0"?> <monsters offset="1002"> <monster id="0" name="Piou" targetCursor="small" walkType="fly"> <sprite>monsters/piou.xml</sprite> <sound event="die" delay="10">monsters/piou/die1.ogg</sound> <sound event="hit">monsters/piou/hit1.ogg</sound> <sound event="hurt">monsters/piou/hurt1.ogg</sound> <sound event="hurt">monsters/piou/hurt2.ogg</sound> <sound event="miss">monsters/piou/miss1.ogg</sound> <sound event="spawn">monsters/piou/spawn1.ogg</sound> <attack id="1" effect-id="400"/> </monster> <monster id="1" name="Piousse" targetCursor="small"> <sprite>monsters/piou.xml</sprite> <sprite>accessories/piousse-egg.xml</sprite> <particlefx>graphics/particles/wisp.particle.xml</particlefx> </monster> </monsters>
Offset attribute set monster id offset. Default value is 1002.
Each monster tag describe separate monster
monster tag
Parameter | Description | default value | Comment |
---|---|---|---|
id | monster id | 0 | |
name | monster name | unnamed | |
maxHP | fixed max hp | 0 | for old servers only |
targetCursor | selection cursor size | medium | possible values: small, medium, large |
targetSelection | is monster can be selected | true | |
hoverCursor | cursor over monster | attack | possible values see here |
targetOffsetX | selection cursor offset by x | 0 | |
targetOffsetY | selection cursor offset by y | 0 | |
nameOffsetX | monster name offset by x | 0 | |
nameOffsetY | monster name offset by y | 0 | |
sortOffsetY | monster drawing order offset by y | 0 | |
deadSortOffsetY | monster drawing order offset by y if monster is dead | 31 | |
colors | monster colors palette name | only for Evol | |
walkType | monster walk type | walk | Known types: walk, fly, swim, walkswim |
sound tag
Describe different sounds on different monster events.
Eent attribute describe events:
name | description | comment |
---|---|---|
hit | monster hit target | |
miss | monster miss on target | |
hurt | monster hurt | probably unused |
die | monster died | |
move | monster move | probably unused |
sit | monster sit | unused |
sittop | monster sit on top tile | unused |
spawn | monster spawn |
Delay describe delay between start hit/miss sounds and hurt/die sounds. This need to separate attack and attack result sound in time. Default delay is 0. This mean hit/miss and hurt/die sounds played at same time.
attack tag
This tag describe attack effects (particle or/and sound) by id from file effects.xml
Attack attributes:
name | description | default value |
---|---|---|
id | attack id | 0 |
effect-id | particle effect id for moving attack object like arrows | effectId from paths.xml |
hit-effect-id | particle effect id for normal hit to target | hitEffectId from paths.xml |
critical-hit-effect-id | particle effect id for critical hit to target | criticalHitEffectId from paths.xml |
miss-effect-id | particle effect id if hit is missed to target | missEffectId from paths.xml |
action | attack sprite action | attack |
missile-particle | moving object particle effect |
particlefx tag
This tag describe persistend monster particle effect.
See also: effects.xml, paths.xml