I am tring to make a new class ability Armored Grace which removes the Tag Armored slows and reduces the armored check penalty to 0 I copied the adjustment from the spell Efortless armor spell and used the eval script for it but I am getting an error in the color bolded area cannot access field pIson
question would it be better to change it to done if hero.child,pChosen
Idont quite know how to finish it I want to point it to if the chosen is wearing armor. then have the preform statement remove the armors slows tag and reduces the armor check penalty to 0. whats the best way to do this?
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~if nothing's been chosen, get out now
doneif (field[pChosen].ischosen = 0)
perform field[pChosen].chosen.delete[ArmorCateg.Slows]
~ Increase/Decrease ACP but don't let the ACP be lowered
~ to more than zero.
field[pChosen].chosen.field[arArmorChk].value = minimum(field[pChosen].chosen.field[arArmorChk].value + field[pAdjust].value, 0)
question would it be better to change it to done if hero.child,pChosen
Idont quite know how to finish it I want to point it to if the chosen is wearing armor. then have the preform statement remove the armors slows tag and reduces the armor check penalty to 0. whats the best way to do this?
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~if nothing's been chosen, get out now
doneif (field[pChosen].ischosen = 0)
perform field[pChosen].chosen.delete[ArmorCateg.Slows]
~ Increase/Decrease ACP but don't let the ACP be lowered
~ to more than zero.
field[pChosen].chosen.field[arArmorChk].value = minimum(field[pChosen].chosen.field[arArmorChk].value + field[pAdjust].value, 0)