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.
|