I'm new to the editor and I am trying to follow these examples:
file:///C:/ProgramData/Hero%20Lab/data/d20/authoring/d20editwhere.htm
The attack examples won't work properly with the given timing.
The first example (below) will add to base attack and grapple, but not your actual melee and ranged attack info.
The second example (below) will do nothing with the given timing.
Moving both of these to Post-Level, Priority = 2 allowed them to work correctly for me, but I am not sure if this timing is the correct value to not cause any other issues. Any feedback on the proper timing would be appreciated!
________________________________________________
Timing
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.
Examples
<eval value="1" phase="UserPreAt" priority="10000"><![CDATA[
~ Add 1 to base attack bonus, which trickles down to the other attack bonus fields
hero.child[Attack].field[tAtkBase].value = hero.child[Attack].field[tAtkBase].value + 1
~ Add a +5 competence bonus to our attack bonus
hero.child[Attack].field[BonComp].value = maximum(hero.child[Attack].field[BonComp].value, 5)
|