Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
items.xml [2013/11/16 13:57] admin [sound node] |
items.xml [2015/04/07 17:24] admin [Game items] |
||
---|---|---|---|
Line 141: | Line 141: | ||
name="Pirate Hat" | name="Pirate Hat" | ||
description="A pirate hat." | description="A pirate hat." | ||
+ | useButton="Equip" | ||
+ | useButton2="Unequip" | ||
effect="M. Attack -8" | effect="M. Attack -8" | ||
type="equip-head" | type="equip-head" | ||
weight="40" | weight="40" | ||
- | defense="4"> | + | defense="4" |
+ | pet="1"> | ||
<sprite>equipment/head/piratehat.xml</sprite> | <sprite>equipment/head/piratehat.xml</sprite> | ||
<replace sprite="hair"> | <replace sprite="hair"> | ||
Line 171: | Line 174: | ||
floor="floorimage.png" | floor="floorimage.png" | ||
description="item description" | description="item description" | ||
+ | useButton="button1" | ||
+ | useButton2="button2" | ||
view="1235" | view="1235" | ||
drawBefore="torso" | drawBefore="torso" | ||
Line 201: | Line 206: | ||
|effect|Item text about effect| | |effect|Item text about effect| | ||
|floor|floor item static image. For animated floor item need use <floor> tag \\ If **floor** parameter missing fill be used value from **image**| | |floor|floor item static image. For animated floor item need use <floor> tag \\ If **floor** parameter missing fill be used value from **image**| | ||
+ | |useButton|Show this text for use button or in context menu. Main action like equip, use| | ||
+ | |useButton2|Show this text for use button or in context menu. Second action like unequip| | ||
+ | |pet|add pet to item from [[pets.xml]]| | ||
|image|item icon image for inventory and fallback for floor items| | |image|item icon image for inventory and fallback for floor items| | ||
|maxFloorOffset|Set max floor item offset in pixels from default position. Default value 32| | |maxFloorOffset|Set max floor item offset in pixels from default position. Default value 32| | ||
|missile-particle|Set particle effect for missile/arrow| | |missile-particle|Set particle effect for missile/arrow| | ||
|hit-effect-id|Effect id for hit. Default value from file [[paths.xml]] parameter hitEffectId| | |hit-effect-id|Effect id for hit. Default value from file [[paths.xml]] parameter hitEffectId| | ||
+ | |miss-effect-id|Effect if for miss hit. Default value from file [[paths.xml]] parameter missEffectId| | ||
|critical-hit-effect-id|Critical effect id. Default value from file [[paths.xml]] parameter criticalHitEffectId| | |critical-hit-effect-id|Critical effect id. Default value from file [[paths.xml]] parameter criticalHitEffectId| | ||
|name|item name| | |name|item name| | ||
Line 210: | Line 219: | ||
|view|use animation sprite from other item with given id| | |view|use animation sprite from other item with given id| | ||
|weight|item weight text| | |weight|item weight text| | ||
+ | |attack|item attack text| | ||
+ | |criticalattack|critical attack text| | ||
+ | |mattack|magic attack text| | ||
+ | |defense|defence text| | ||
+ | |criticaldefense|critical defence text| | ||
+ | |mdefense|magic defence text| | ||
+ | |hp|health text| | ||
+ | |mp|mana text| | ||
+ | |level|minimal level text| | ||
+ | |speed|speed text| | ||
+ | |range|range text| | ||
+ | |flee|flee text| | ||
|sellProtected|ask player before selling item to npc shop| | |sellProtected|ask player before selling item to npc shop| | ||
Line 386: | Line 407: | ||
==== drawBefore node ==== | ==== drawBefore node ==== | ||
+ | ==== particlefx node ==== |