• 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

Maximum(A,B)

Frodie

Well-known member
I am trying to script this: "uses the higher of her Constitution or Charisma modifiers for the purposes of determining her hit points".

So I did a search and this is what I came up with (which is wrong, lol)

Post Att 10000

herofield[tBonusHP].value += #totallevelcount[] * maximum(#attrmod[aCON,aCHA])

Any ideas?
 
This will be giving bonus hit points, not adjusting normal hit points but maximum would need to be maximum(#attrmod[aCON],#attrmod[aCHA]) although I'm not sure if you can call macros from within them.
 
I think I got it:

Post Att 10000

field[abValue].value += #totallevelcount[] * maximum(#attrmod[aCHA] - #attrmod[aCON], 0)

herofield[tBonusHP].value += field[abValue].value

Seems to work
 
Back
Top