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

Help with xpath - changing values on hazmat clothing

SlicksGirl

Refugee
I'm still brand new to xpath and i thank you for helping.

I want to change the values for the hazmat items to have better stats. First, do I add passive properties to

Code:
<item name="hazmatClothingMaster">
to make it work for all items or do I need to set the values for each item individually?

Second, I asked in another thread how to change values for car colors, so does this look correct?

Code:
<set xpath="/items/item[@name='hazmatClothingMaster']">
     <effect_group tiered="false">
	<passive_effect name="ModSlots" operation="base_set" value="2"/>
	<passive_effect name="HypothermalResist" operation="base_add" value="5"/>
	<passive_effect name="HyperthermalResist" operation="base_add" value="5"/>
	<passive_effect name="ElementalDamageResist" operation="base_add" value="10" tags="lowerbody,feet,radiation,toxic" match_all_tags="true"/>
  </effect_group>
</set>
 
I’m reasonably certain that the effect groups all have to be done individually. Effect groups don’t extend. Anything outside of the effects group will extend.

 
so each item has to be done separately, thanks!
set is the correct tag for changing the values?
I would try it on the master , but extends are a pain sometimes the code does not follow on extended items as I have found to my cost on a few occassions.

I now always try the set option now to overwrite values first , if i have any issues I would fall back on the remove the whole thing and either append it back in with new values at the end of the code of use inserAfter to put it orderly back in it's place.

 
Back
Top