Jump to content

xpath append for items messes up stack size?


Recommended Posts

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?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...