Jump to content

Need help on a mod for primitive weapons to break at zero


Red51

Recommended Posts

I came across a mod from JaxTeller that would cause all weapons to break if not repaired after they fully degraded. I would like to take this idea and make primitive weapons and tools non-repairable and break when fully degraded. I tried several times to figure out the xml for am items.xml file, but can't see what I am missing. My only experience with xml is tinkering in 7DTD.

 

<config>
<!-- Stone Axe -->
	<set xpath="/items/item[@name='meleeToolRepairT0StoneAxe']/property[@name='DegradationBreaksAfter']/@value">true</set>
  	<remove xpath="/items/item[@name='meleeToolRepairT0StoneAxe']/property[@name='RepairTools']"/>
</config>

 

Any help is appreciated. If I can get this one to work, I will try to extrapolate the rest of the items.

Link to comment
Share on other sites

Hey IMatt, thanks for the help.

 

Some of the items I was changing had the 'DegradationBreaksAfter', but some did not. I had to use 'Set' for those that did and 'Setattribute' for those that did not. Either way, it helped in figuring out both scenarios.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...