• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Xpath Help changing "id"

Kieron

Refugee
Is it possible to change the "id" section with xpath? I'd like to remove armor being given as a quest reward.

<reward type="LootItem" id="questArmorT3-T4,questMeleeT3-T4" isfixed="true" ischosen="true" value="30"/>I'd like to change "questArmorT3-T4" to "groupConstructionResourcesT1" is that even possible?

 
Yes

<set xpath="//reward[@id='questArmorT3-T4']/@id">groupConstructionResourcesT1</set>




That should change all instances of the questArmor group to the group you listed.

 
Back
Top