• 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

How to script a class ability to only work when wearing medium or heavy armor only.

Manalishi66

Well-known member
How to script a class ability to only work when wearing medium or heavy armor only. Such as DR 5/- when wearing medium or heavy armor only.
 
Code:
~Post-Attributes 10,000
~If hero is wearing Medium or Heavy Armor then apply DR 5/-
if (hero.tagis[Hero.MedArmor] + hero.tagis[Hero.HeavyArmor] <> 0) then
    #applyresist[xDamRd, 5]
endif

You will also need to Bootstrap xDamRd to your class special so that it can be applied correctly.
 
Back
Top