• 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

Adding Wis Modifier to Atk and Dam for all attacks.

Vallaki

Member
All,

I'm relatively new to HeroLab Scripting, but have a lot of experience with computer scripting in general.

I'm trying to implement a prestige class feature that:

"adds their Wisdom modifier, if positive, to their attack and damage rolls."

I've been looking though the explorer and everything I have found swaps the normal attack stat (STR or DEX) for WIS, but nothing that adds it as an untyped bonus.

Any direction/assistance is greatly appreciated! Thanks in advance.
 
I've been looking though the explorer and everything I have found swaps the normal attack stat (STR or DEX) for WIS, but nothing that adds it as an untyped bonus.
What do you mean untyped? All ability score bonuses are untyped. So if you found the tags to change to WIS then your good to go. That or I am totally confused by what you are asking. :(
 
I think he is asking about adding the wisdom modifier as an untyped bonus to attack and damage in addition to normal attribute modifiers.

Post-Attr 10000
Code:
hero.childfound[Attack].field[Bonus].value += #attrmod[aWIS]
hero.childfound[Damage].field[Bonus].value += #attrmod[aWIS]
 
Last edited:
Thank you Aaron!

Thats exactly what I needed. I wasn't sure if I need to loop through each weapon/attack and add the bonus or if there was a global field that was used in their calculations.

Seems to be working perfectly.
 
Back
Top