• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

xpath help please

Jolly

New member
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

 
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>

 
Last edited by a moderator:
Back
Top