Jump to content

Xpath question - can I mix new items and changes to QTY of existing items in same?


Recommended Posts

Hello.

 

Can I do the following in same items.xml modlet? it is not working for me.

 

<configs>

<append xpath="/items" >


   <item name="NearDeathTraumaKit">
     <property name="Extends" value="medicalBandage" param1="DescriptionKey"/>
  <property name="CustomIcon" value="medicalFirstAidKit"/><property name="CustomIconTint" value="107,12,12"/>
     <property name="Group" value="Science"/>
     <property name="EconomicValue" value="200"/>
     <property name="CraftingSkillGroup" value="craftSkillScience"/>
     <property name="Stacknumber" value="5"/>
     <property class="Action0">
       <property name="Sound_start" value="player_firstAidKit"/>
     </property>
     <property class="Action1">
       <property name="Sound_start" value="player_firstAidKit"/>
     </property>
<effect_group tiered="false">
	<requirement name="HasBuff" buff="buffNearDeathTrauma"/>
	<triggered_effect trigger="onSelfPrimaryActionEnd" action="RemoveBuff" target="self" buff="buffNearDeathTrauma"/>
</effect_group>
   </item>

<!-- Drinks -->
	<set xpath="/items/item[@name='drinkCanRiverWater']/property[@name='Stacknumber']/@value">50</set> <!-- Default 15 -->
	<set xpath="/items/item[@name='drinkJarBoiledWater']/property[@name='Stacknumber']/@value">50</set> <!-- Default 15 -->
</append>

</configs>

the "SET" do not seem to work but the NearDeathTraumaKit is there.


Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...