Something to help the visual learners out there get started in XPath modding.
Last edited by a moderator:
It's not even changing the display value so something is wrong. Not sure how to create a new buff.As far as I know what you are changing in items is only the display value. What is displayed on the HUD.
You need to change the "buffIllFoodPoisoning0" in buffs but doing that would change everything that calls for the buff, not just canned food. A better way might be to add another buff, then have all canned foods call your new buff.
I have a headache today and can't see clearly but this should be close to what you want I thinkIt's not even changing the display value so something is wrong. Not sure how to create a new buff.
<configs>
<set xpath="/items/item[@name='foodCanBeef']/effect_group[@tiered='false']/triggered_effect[@trigger='onSelfPrimaryActionEnd'][@buff='buffIllFoodPoisoning0']/requirement[@name='RandomRoll']/@value">25</set>
<set xpath="/items/item[@name='foodCanBeef']/effect_group/display_value[@name='FoodPoisoningRisk']/@value">0.25</set>
</configs>
<insertAfter xpath="/buffs/buff[@name='buffIllFoodPoisoning2']">
<buff name="buffIllFoodPoisoning3 hidden="true">
<damage_type value="Disease"/>
<stack_type value="ignore"/>
<duration value="90"/>
<effect_group>
<triggered_effect trigger="onSelfBuffFinish" action="AddBuff" target="self" buff="buffIllFoodPoisoning1">
<requirement name="RandomRoll" seed_type="Random" target="self" min_max="0,100" operation="LTE" value="@$illnessChance"/>
</triggered_effect>
<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="self" buff="buffIllnessIndicatorTrigger"/>
<triggered_effect trigger="onSelfBuffRemove" action="AddBuff" target="self" buff="buffIllnessIndicatorTrigger"/>
</effect_group>
</buff>
</insertAfter>
Need help with blanket settings.I don't know what I'm doing wrong. I want to change all zombie sounds to this new one. The growling noises give me nightmares so I currently don't play with zombies on.
Thank you, but it still doesn't do anything. currentconfigs shows nothing changed.Code:<set xpath="/entity_classes/entity_class[contains[color=#ff0000]([/color]@name,'zombie'[color=#ff0000])[/color]]/property[@name='SoundRandom']/@value">ZombieSounds</set>
Hey Winter, kind of learning XPath myself. I did find a way to change ALL ZOMBIE SOUNDS to a value:Thank you, but it still doesn't do anything. currentconfigs shows nothing changed.