This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
monsters.xml [2013/07/19 13:04]
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>​
-    <sound event="​die">​monsters/​piou/​die1.ogg</​sound>​+    <sound event="​die" delay="​10">​monsters/​piou/​die1.ogg</​sound>​
     <sound event="​hit">​monsters/​piou/​hit1.ogg</​sound>​     <sound event="​hit">​monsters/​piou/​hit1.ogg</​sound>​
     <sound event="​hurt">​monsters/​piou/​hurt1.ogg</​sound>​     <sound event="​hurt">​monsters/​piou/​hurt1.ogg</​sound>​
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 44: Line 47:
 |colors|monster colors palette name| |only for Evol| |colors|monster colors palette name| |only for Evol|
 |walkType|monster walk type|walk|Known types: walk, fly, swim, walkswim| |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]]