I'm trying to create a new weapon ability that will adjust the category of the weapon it's applied to. Two handed weapons become one handed, one-handed weapons become light weapons, and light weapons.... well, too bad. Anyway, not being exceptionally gifted at coding (understatement), I tried something like this:
It's a modified version of the code used to make mithral armor, but it's clearly not working, so I could use some help. If anyone give me a hand, or direct me to something else that creates the same kind of modifications, I'd appreciate it.
Code:
if (container.tagis[wClass.TwoHanded] <> 0) then
perform container.delete[wClass.TwoHanded]
perform container.assign[wClass.OneHanded]
if (container.tagis[wClass.OneHanded] <> 0) then
perform container.delete[wClass.OneHanded]
perform container.assign[wClass.Light]
It's a modified version of the code used to make mithral armor, but it's clearly not working, so I could use some help. If anyone give me a hand, or direct me to something else that creates the same kind of modifications, I'd appreciate it.