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

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

Hello.

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

Code:
<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.
 
UPDATE - FIXED - I had a comment that was not closed. so it is FIXED - thanks for the reason to look at my code again using Notepad++ and not just notepad :) "

 
Back
Top