• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Remove Armor Bonus

Frodie

Well-known member
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.
 
Last edited:
Back
Top