Jump to content

xpath help please


Jolly

Recommended Posts

I'm trying to get my ringoffire into a proper modlet instead of collection of direct edits. These dont seem to be working. Can anyone help me please ?

 

In the modlet items xml

<configs>

 

 

<append xpath="/items/item[@name=foodChiliDog]/effect_group tiered="false">

<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" target="self" buff="buffRingOfFire"/>

</append>

 

<set xpath="/items/item[@name=foodChiliDog]/property [@name=Extends][@value=foodCanHam]/@value">foodCornOnTheCob</set>

 

</set>

 

</configs>

 

In the modlet buffs xml

 

<configs>

 

<set xpath="/buffs/buff[@name=buffRingOfFire]/property[@name=duration'and @value='0]/@value">60</set>

 

 

</configs>

 

Thx

Link to comment
Share on other sites

Try this, fixed some errors.

 

items.xml

<configs>

 

<append xpath="/items/item[@name=foodChiliDog]/effect_group[@tiered=false]">

<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" target="self" buff="buffRingOfFire"/>

</append>

 

<set xpath="/items/item[@name=foodChiliDog]/property[@name=Extends' and @value='foodCanHam]/@value">foodCornOnTheCob</set>

 

</configs>

 

buffs.xml

<configs>

 

<set xpath="/buffs/buff[@name=buffRingOfFire]/duration[@value=0]/@value">60</set>

 

</configs>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...