IF I wanted to change the armor type from heavy to light would this be the correct script?
~ If we're armor, change our class if necessary - we become two classes
~ lighter.
if (container.parent.tagis[component.BaseArmor] <> 0) then
if (container.tagis[ArmorClass.Heavy] <> 0) then
perform container.delete[ArmorClass.Heavy]
perform container.assign[ArmorClass.Light]
perform container.delete[ArmorCateg.Slows
perform container.assign[Helper.Prof2Step]
elseif (container.tagis[ArmorClass.Heavy] <> 0) then
perform container.delete[ArmorClass.Heavy]
perform container.assign[ArmorClass.Light]
perform container.assign[Helper.Prof2Step]
endif
endif
~ If we're armor, change our class if necessary - we become two classes
~ lighter.
if (container.parent.tagis[component.BaseArmor] <> 0) then
if (container.tagis[ArmorClass.Heavy] <> 0) then
perform container.delete[ArmorClass.Heavy]
perform container.assign[ArmorClass.Light]
perform container.delete[ArmorCateg.Slows
perform container.assign[Helper.Prof2Step]
elseif (container.tagis[ArmorClass.Heavy] <> 0) then
perform container.delete[ArmorClass.Heavy]
perform container.assign[ArmorClass.Light]
perform container.assign[Helper.Prof2Step]
endif
endif