Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
monsters.xml [2013/07/19 13:13] admin |
monsters.xml [2014/01/09 15:17] (current) admin [monsters.xml file format] |
||
---|---|---|---|
Line 7: | Line 7: | ||
<file xml monsters.xml> | <file xml monsters.xml> | ||
<?xml version="1.0"?> | <?xml version="1.0"?> | ||
- | <monsters> | + | <monsters offset="1002"> |
<monster id="0" name="Piou" targetCursor="small" walkType="fly"> | <monster id="0" name="Piou" targetCursor="small" walkType="fly"> | ||
<sprite>monsters/piou.xml</sprite> | <sprite>monsters/piou.xml</sprite> | ||
Line 21: | Line 21: | ||
<sprite>monsters/piou.xml</sprite> | <sprite>monsters/piou.xml</sprite> | ||
<sprite>accessories/piousse-egg.xml</sprite> | <sprite>accessories/piousse-egg.xml</sprite> | ||
+ | <particlefx>graphics/particles/wisp.particle.xml</particlefx> | ||
</monster> | </monster> | ||
</monsters> | </monsters> | ||
</file> | </file> | ||
+ | |||
+ | Offset attribute set monster id offset. Default value is 1002. | ||
Each monster tag describe separate monster | Each monster tag describe separate monster | ||
Line 64: | Line 67: | ||
Default delay is 0. This mean hit/miss and hurt/die sounds played at same 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]] | ||