Differences

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

Link to this comparison view

Next revision
Previous revision
npcs.xml [2013/07/19 12:48]
admin created
npcs.xml [2014/12/11 09:04] (current)
admin
Line 8: Line 8:
 <?xml version="​1.0"?>​ <?xml version="​1.0"?>​
 <​npcs>​ <​npcs>​
-<npc id="​100"​ sortOffsetY="​30">​ +  ​<npc id="​100"​ sortOffsetY="​30">​ 
-  <sprite variant="​0">​npcs/​xml/​interactive.xml</​sprite>​ +    <sprite variant="​0">​npcs/​xml/​interactive.xml</​sprite>​ 
-</​npc>​ +  </​npc>​ 
-<npc id="​101"​ avatar="​1"​ hoverCursor="​talk"​ targetOffsetX="​10"​ nameOffsetX="​10">​ +  <npc id="​101"​ avatar="​1"​ hoverCursor="​talk"​ targetOffsetX="​10"​ nameOffsetX="​10">​ 
-  <sprite variant="​0">​npcs/​xml/​unanimated.xml</​sprite>​ +    <sprite variant="​0">​npcs/​xml/​unanimated.xml</​sprite>​ 
-</​npc>​ +  </​npc>​ 
-<npc id="​904"​ targetSelection="​false">​ +  <npc id="​904"​ targetSelection="​false">​ 
-  <​sprite>​npcs/​xml/​hammock-animated1.xml</​sprite>​ +    <​sprite>​npcs/​xml/​hammock-animated1.xml</​sprite>​ 
-</​npc>​+    <​menu name="​Talk"​ command="​talk '​NAME'"/>​ 
 +  ​</​npc>​
 </​npcs>​ </​npcs>​
 </​file>​ </​file>​
Line 35: Line 36:
 |nameOffsetY|npc name offset by y|0| | |nameOffsetY|npc name offset by y|0| |
 |sortOffsetY|npc drawing order offset by y|0| | |sortOffsetY|npc drawing order offset by y|0| |
 +
 +===== menu tag =====
 +
 +Menu tag describe npc context menu.
 +
 +If menu tags misisng, used this tags:
 +
 +<file xml npcs.xml>​
 +  <menu name="​Talk"​ command="​talk '​NAME'"/>​
 +  <menu name="​Buy"​ command="​buy '​NAME'"/>​
 +  <menu name="​Sell"​ command="​sell '​NAME'"/>​
 +</​file>​
  
 See also: [[beingcursortypes|being cursor types]] See also: [[beingcursortypes|being cursor types]]
  
Navigation
Print/export
Languages