I have a cleric that uses Divine Power a lot and was trying to set-up a custom "condition" that I can just check when he activates it.
The HP and Strength enhancement are working fine, but I can't get the bonus to Base Attack to work correctly. I have no trouble simply adding to the attack bonus, but when I try to make the system increase the actual base attack bonus (so that the extra attack will appear if applicable), I can't do it.
Here is what I have coded, can someone with a lot more experience tell me what I am doing wrong?
~ Make our Base Attack Bonus equal to total character level
if (hero.child[Attack].field[tAtkBase].value < #totallevelcount[]) then
hero.child[Attack].field[tAtkBase].value = #totallevelcount[]
endif
(I am pretty sure the "if/then" is not necessary, but just it is possible to have a tAtkBase that is greater than total levels, I put in there.)
I think my problem is linked to priority level given how I am coding this.
Using an 11th level pure cleric as my test case (#totallevelcount[] = 11 while the tAtkBase = 8). The bonus should be a 3, adding an extra attack, but it is not working.
When I set priority at "pre-levels" the bonus applied is that of the #totallevelcount[]. (The result is Base Attack of +19/+14/+9/+4.) This makes sense to me as it is setting the AtkBase at 11 and then adding the 8 additional points from his cleric levels.
However, when I set the priority to anything later (and I tried each of the user priority levels), something happens, but it is wrong. I end up with Base Attack of +8/+3/-2. It is pretty clearly adding a bonus that then triggers (correctly) the 3rd attack, but then it does not apply the bonus (or the bonus gets stripped out later).
Help would be greatly appreciated.
The HP and Strength enhancement are working fine, but I can't get the bonus to Base Attack to work correctly. I have no trouble simply adding to the attack bonus, but when I try to make the system increase the actual base attack bonus (so that the extra attack will appear if applicable), I can't do it.
Here is what I have coded, can someone with a lot more experience tell me what I am doing wrong?
~ Make our Base Attack Bonus equal to total character level
if (hero.child[Attack].field[tAtkBase].value < #totallevelcount[]) then
hero.child[Attack].field[tAtkBase].value = #totallevelcount[]
endif
(I am pretty sure the "if/then" is not necessary, but just it is possible to have a tAtkBase that is greater than total levels, I put in there.)
I think my problem is linked to priority level given how I am coding this.
Using an 11th level pure cleric as my test case (#totallevelcount[] = 11 while the tAtkBase = 8). The bonus should be a 3, adding an extra attack, but it is not working.
When I set priority at "pre-levels" the bonus applied is that of the #totallevelcount[]. (The result is Base Attack of +19/+14/+9/+4.) This makes sense to me as it is setting the AtkBase at 11 and then adding the 8 additional points from his cleric levels.
However, when I set the priority to anything later (and I tried each of the user priority levels), something happens, but it is wrong. I end up with Base Attack of +8/+3/-2. It is pretty clearly adding a bonus that then triggers (correctly) the 3rd attack, but then it does not apply the bonus (or the bonus gets stripped out later).
Help would be greatly appreciated.