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

xpath append for items messes up stack size?

I've got in my mod appends for each medical item that look like:

<append xpath="/items/item[@name='medicalAloeCream']">
<effect_group tiered="false">
<requirement name="HasBuff" buff="buffInjuryAbrasion"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="AS_physician_XP" operation="add" target="self" value="100"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ShowToolbeltMessage" message="Scored hit for physician"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="CVarLogValue" target="self" cvar="AS_physician_XP"/>
</effect_group>
<effect_group tiered="false">
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="AS_physician_XP" operation="add" target="self" value="5"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ShowToolbeltMessage" message="Scored hit for physician"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="CVarLogValue" target="self" cvar="AS_physician_XP"/>
</effect_group>
<effect_group >
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buff_physician_level_check"/>
</effect_group>
</append>




Basically, I modify some cvars when the item is used. The effects trigger as expected but medical items no longer stack. I tried re-adding the Stacknumber property at the end of each append but that did not fix the issue. Does anyone know what is going on here?

 
At a glance I'd say it's likely because your last effect group isn't set to tiered="false" like the rest.

 
Back
Top