Differences

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

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
monsters.xml [2013/07/19 12:30]
admin created
monsters.xml [2013/07/19 13:32]
admin
Line 1: Line 1:
-====== ​npcs.xml file format ======+====== ​monsters.xml file format ======
  
-This file describe ​npcs.+This file describe ​monsters.
  
 Example file: Example file:
  
-<file xml npcs.xml>+<file xml monsters.xml>
 <?xml version="​1.0"?>​ <?xml version="​1.0"?>​
-<npcs+<monsters
-<npc id="100" ​sortOffsetY="30">​ +  <monster ​id="0" ​name="Piou" targetCursor="​small"​ walkType="​fly">​ 
-  <​sprite ​variant="​0"​>npcs/xml/interactive.xml</​sprite>​ +    <​sprite>​monsters/piou.xml</​sprite>​ 
-</npc> +    <sound event="die" ​delay="10">​monsters/​piou/​die1.ogg</​sound>​ 
-<npc id="101" ​avatar="1" ​hoverCursor="talk" ​targetOffsetX="10" ​nameOffsetX="10">​ +    <sound event="hit">​monsters/​piou/​hit1.ogg</​sound>​ 
-  <sprite variant="0">npcs/xml/unanimated.xml</sprite+    <sound event="hurt">​monsters/​piou/​hurt1.ogg</​sound>​ 
-</npc+    <sound event="hurt">​monsters/​piou/​hurt2.ogg</​sound
-<npc id="904" ​targetSelection="false">​ +    <sound event="miss">monsters/piou/miss1.ogg</sound
-  <​sprite>​npcs/xml/hammock-animated1.xml</​sprite>​ +    <​sound event="​spawn">​monsters/​piou/​spawn1.ogg</sound
-</npc+    <attack ​id="1" ​effect-id="400"/
-</npcs>+  ​</​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>
 </​file>​ </​file>​
  
-Each npc tag describe separate ​npc, inside tag describe npc sprite.+Each monster ​tag describe separate ​monster
  
-Npc tag attributes:+===== monster ​tag =====
  
 ^ Parameter ^ Description ^ default value ^ Comment ^ ^ Parameter ^ Description ^ default value ^ Comment ^
-|id|npc id|0| | +|id|monster ​id|0| | 
-|avatar|npc avatar|0| |+|name|monster name|unnamed| | 
 +|maxHP|fixed max hp|0|for old servers only|
 |targetCursor|selection cursor size|medium|possible values: small, medium, large| |targetCursor|selection cursor size|medium|possible values: small, medium, large|
-|targetSelection|is ​npc can be selected|true| | +|targetSelection|is ​monster ​can be selected|true| | 
-|hoverCursor|cursor over npc|talk|possible values see [[beingcursortypes|here]]|+|hoverCursor|cursor over monster|attack|possible values see [[beingcursortypes|here]]|
 |targetOffsetX|selection cursor offset by x|0| | |targetOffsetX|selection cursor offset by x|0| |
 |targetOffsetY|selection cursor offset by y|0| | |targetOffsetY|selection cursor offset by y|0| |
-|nameOffsetX|npc name offset by x|0| | +|nameOffsetX|monster ​name offset by x|0| | 
-|nameOffsetY|npc name offset by y|0| | +|nameOffsetY|monster ​name offset by y|0| | 
-|sortOffsetY|npc drawing order 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]]
  
Navigation
Print/export
Languages