• 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

Spell Resistance (by level but with a max limit)

direinsomniac

Well-known member
I did a search through the forums, but I couldn't find a good enough answer for this issue.

I am trying a code an increasing SR based on level.

The exact wording of the ability is:

"The creature has SR equal to twice their hit dice (maximum 25)"
 
Something like:

PostLevel 10000
Code:
var srnum as number
srnum = (hero.tagcount[Hero.HitDice] * 2)
srnum = minimum(srnum, 25)

SOME STUFF TO STOP IF DISABLED OR WHATEVER

#applysr[srnum]
 
Back
Top