BFT2020
Hunter
So been working on some modding (just simple xml changes) that I can upload to new versions and not have to modify the individual xml config files every time the game is updated
So far, I got a customize traders file done and a progression file that are working as intended.
However, once I started working on a buffs file, I ran into the issue below that I can't figure out what I am doing wrong (though I believe it is a pathing issue on my part)
First, here is the error I get in the console
The previous times I got this error, it was a path issue (99.9% of the time, I either forgot something, inserted a space it didn't like, or mistyped the node path).
Here is the code
I am trying to change the painkiller health buff from 40 to 0. I know this is the right location as making the change in the actual config file works.
Here is the specific part of the buffs file I am trying to modify
So far, I got a customize traders file done and a progression file that are working as intended.
However, once I started working on a buffs file, I ran into the issue below that I can't figure out what I am doing wrong (though I believe it is a pathing issue on my part)
First, here is the error I get in the console
2021-09-07T20:48:20 748.531 WRN XML patch for "buffs.xml" from mod "Z-JeremyMod" did not apply: <set xpath="/buffs/buff[@name='buffDrugPainkillers']/effect_group/requirement/triggered_effect[@stat='Health']/@value"
The previous times I got this error, it was a path issue (99.9% of the time, I either forgot something, inserted a space it didn't like, or mistyped the node path).
Here is the code
<set xpath="/buffs/buff[@name='buffDrugPainkillers']/effect_group/requirement[@cvar='$buffDrugPainkillersHealed']/triggered_effect[@stat='Health']/@value">0</set>
I am trying to change the painkiller health buff from 40 to 0. I know this is the right location as making the change in the actual config file works.
Here is the specific part of the buffs file I am trying to modify
If someone could point out my mistake, that would be greatly appreciated.<buffs>
<----SNIP----->
<buff name="buffDrugPainkillers" name_key="buffDrugPainkillersName" description_key="buffDrugPainkillersDesc" icon="ui_game_symbol_pills">
<----SNIP----->
<effect_group>
<requirement name="NotHasBuff" buff="buffInjuryConcussion"/>
<requirement name="CVarCompare" cvar="$buffDrugPainkillersHealed" operation="Equals" value="0"/>
<triggered_effect trigger="onSelfBuffUpdate" action="ModifyStats" stat="Health" operation="add" value="40"/>
<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$buffDrugPainkillersHealed" operation="set" value="1"/>
</effect_group>
<---SNOP----->
</buff>