Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
clavin123
Member
 
Join Date: Feb 2010
Posts: 33

Old May 8th, 2011, 10:17 AM
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.
clavin123 is offline   #1 Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:00 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.