I am trying to add an ability that when activated adds the character's CHA modifer to attack rolls. I am having issues with the proper timing for the script.
Here is the code:
I have tried various timings (First/10000, Pre-Levels/5000, Post-Levels/5000, Post-Attributes/5000) but none seem to work.
Here is the code:
Code:
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
~ If we're not enabled, get out now
doneif (field[abilActive].value = 0)
var bon as number
bon = hero.child[aCHA].field[aModBonus].value
#applybonus[Bonus, hero.child[Attack], bon]
I have tried various timings (First/10000, Pre-Levels/5000, Post-Levels/5000, Post-Attributes/5000) but none seem to work.