Thread: Question
View Single Post
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 608

Old September 16th, 2018, 07:00 AM
Hmm,

I'm thinking a ) or ] is off or I just don't remember how the #applybonus needs parameters sent in.

The manual way to calculate it without nesting macros and having less nested () or [] characters would be:

hero.child[svAll].field[Bonus].value += maximum(0,#attrmod[aCHA])

I know this code works. I'll have to test the #applybonus and see what I screwed up.

You probably want to move it to post-attributes - several magic items that change the modifier might occur after you run your script, so you'll only be picking up the base modifier.
dungeonguru is offline   #26 Reply With Quote