Sorry to bother yall again, I am working on a cursed item for someone that remove all armor. I tried a few different things, but this seems close, but not quite.
post att 10000
if (hero.tagis[Hero.LightArmor] + hero.tagis[Hero.MedArmor] + hero.tagis[Hero.HeavyArmor] <> 0) then
perform hero.child[mArmor].assign[Helper.NoArmor]
done
endif
My other idea was
hero.child[ArmorClass].field[tACArmor].value = maximum(hero.child[ArmorClass].field[tACTouch].value,0)
Any ideas, again I am sorry for the inconvenience.
Got it, it was the timing for: hero.child[ArmorClass].field[tACArmor].value = maximum(hero.child[ArmorClass].field[tACTouch].value, 0)
it had to be timing of final.
post att 10000
if (hero.tagis[Hero.LightArmor] + hero.tagis[Hero.MedArmor] + hero.tagis[Hero.HeavyArmor] <> 0) then
perform hero.child[mArmor].assign[Helper.NoArmor]
done
endif
My other idea was
hero.child[ArmorClass].field[tACArmor].value = maximum(hero.child[ArmorClass].field[tACTouch].value,0)
Any ideas, again I am sorry for the inconvenience.
Got it, it was the timing for: hero.child[ArmorClass].field[tACArmor].value = maximum(hero.child[ArmorClass].field[tACTouch].value, 0)
it had to be timing of final.
Last edited: