I'm trying to add a class feature that calculates an attack bonus based on level in a specific class. The calculation works just fine, but I can't get the bonus to apply when I need it to. The documentation on the Attack pick says the following:
I try to use the following script in UserPreAt/10000:
Not very complicated, but it doesn't work. The latest phase I can get a bonus to apply to the attack is Level. Problem is, I need to be able to calculate the value based on level - so the Level phase is too soon.
Help???
For modifications to have any effect on other fields (e.g., changes to the base attack bonus affecting the melee and ranged attack bonuses), any priority before the "PostAttr" phase should be used. The final values are available in the "UserPostAt" or later phases.
I try to use the following script in UserPreAt/10000:
if (field[hIsOn1].value <> 0) then
#applybonus[BonMorale, hero.child[Attack], field[Value].value]
endif
Not very complicated, but it doesn't work. The latest phase I can get a bonus to apply to the attack is Level. Problem is, I need to be able to calculate the value based on level - so the Level phase is too soon.
Help???