ApexAlphaGaming
Refugee
I'm trying to shorten a previous code:
<append xpath="/items/item[@name='gunMGT0PipeMachineGun']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunRifleT0PipeRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunRifleT1HuntingRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunRifleT2LeverActionRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunRifleT3SniperRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunMGT1AK47']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunMGT2TacticalAR']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunMGT3M60']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunMGT0PipeMachineGun']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunRifleT0PipeRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunRifleT1HuntingRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunRifleT2LeverActionRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunRifleT3SniperRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunMGT1AK47']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunMGT2TacticalAR']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunMGT3M60']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
In order to make it compatible with ALL weapons that use that ammo, in the case of someone using a mod that adds other weapons that use that same ammo type.
<append xpath="/items/item[starts-with(@name,'gun')]/property[@class='Action0']/property[@name='Magazine_items']/value[starts-with(@value,'ammo762')]/@value">,ammo762mmBulletStun,Scrap762mmAmmo</append>
However, the mentioned code doesn't work and doesn't even throw errors, it just refuses to show up, but the older codes worked perfectly fine, adding in the appropriate ammo to the options for the specific gun.
Anyone know of a way to fix this?
<append xpath="/items/item[@name='gunMGT0PipeMachineGun']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunRifleT0PipeRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunRifleT1HuntingRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunRifleT2LeverActionRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunRifleT3SniperRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunMGT1AK47']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunMGT2TacticalAR']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunMGT3M60']/property[@class='Action0']/property[@name='Magazine_items']/@value">,ammo762mmBulletStun</append>
<append xpath="/items/item[@name='gunMGT0PipeMachineGun']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunRifleT0PipeRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunRifleT1HuntingRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunRifleT2LeverActionRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunRifleT3SniperRifle']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunMGT1AK47']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunMGT2TacticalAR']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
<append xpath="/items/item[@name='gunMGT3M60']/property[@class='Action0']/property[@name='Magazine_items']/@value">,Scrap762mmAmmo</append>
In order to make it compatible with ALL weapons that use that ammo, in the case of someone using a mod that adds other weapons that use that same ammo type.
<append xpath="/items/item[starts-with(@name,'gun')]/property[@class='Action0']/property[@name='Magazine_items']/value[starts-with(@value,'ammo762')]/@value">,ammo762mmBulletStun,Scrap762mmAmmo</append>
However, the mentioned code doesn't work and doesn't even throw errors, it just refuses to show up, but the older codes worked perfectly fine, adding in the appropriate ammo to the options for the specific gun.
Anyone know of a way to fix this?