TobyFox2002
Well-known member
Heya, I have run into a class ability that is causing me some issues.
The class ability is that at 7th level any heavy amour is treated as medium armor and the armor check penalty is reduced by 1. I think there is a timing issue. But I cant find it, either that or I am not transitioning properly. I adapted some of this code from the mithral material code.
It gives me no errors, but just does nothing. Any thoughts?
The class ability is that at 7th level any heavy amour is treated as medium armor and the armor check penalty is reduced by 1. I think there is a timing issue. But I cant find it, either that or I am not transitioning properly. I adapted some of this code from the mithral material code.
It gives me no errors, but just does nothing. Any thoughts?
Code:
~ If we're disabled, do nothing
doneif (tagis[Helper.SpcDisable] <> 0)
~ If we're not shown, Get out Now!
doneif (tagis[Helper.ShowSpec] <> 0)
foreach pick in hero from BaseArmor where "Helper.CurrArmor"
~ If we're armor, change our class
if (eachpick.parent.tagis[component.BaseArmor] <> 0) then
if (eachpick.tagis[ArmorClass.Heavy] <> 0) then
perform eachpick.delete[ArmorClass.Heavy]
perform eachpick.assign[ArmorClass.Medium]
perform eachpick.delete[ArmorCateg.Slows]
endif
endif
nexteach