voxlltv Posted March 27, 2020 Share Posted March 27, 2020 Hello all! I need to figure out how to mod the gun magazine size on the AK-47. <effect_group name="gunAK47"> <passive_effect name="MagazineSize" operation="perc_add" value="-.122,.122"/> <!-- random MagazineSize --> <passive_effect name="MagazineSize" operation="base_set" value="30"/> You'll notice there are 2 lines that have "MagazineSize". How do I modify the base_set MagazineSize (the one that is set to "30") using XPath? Thanks! Link to comment Share on other sites More sharing options...
Telric Posted March 27, 2020 Share Posted March 27, 2020 Just tested this one and it works. <set xpath="/items/item[@name=gunAK47]/effect_group[@name=gunAK47]/passive_effect[@name=MagazineSize' and @operation='base_set]/@value">95</set> Link to comment Share on other sites More sharing options...
voxlltv Posted March 27, 2020 Author Share Posted March 27, 2020 Thank you so much! I didn't know about the "and" operator. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.