• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

How is BAB Coded?

Quintain

Well-known member
I have a power: Ultimate Psionics - Zealous Fury, Zelladariath’s that I'd like to make a spell/power adjustment for, but need to know if there is a way to adjust specific iterative attacks individually instead of just the starting BAB value.

What the power basically does is at it's base, eliminates the penalty for each iterative attack after the first by 5/10/15 -- note that this is an elimination of a penalty in concept, not a static bonus to the attack. This means that the 2nd and subsequent iterative attacks cannot exceed the normal starting BAB value.
 
You might look to see how Furious Focus handles it for the first attack (I'm not by the editor right now to check).
 
The Hero.Precision tag does just about what you're looking for. It increases the 2nd and after attacks by 5, maxing out at the first attacks bonus, stacking. So if you apply it 3 times, the 2nd attack will have +5, the 3rd +10, and 4th +15
 
Hero.Precision was added for the Mythic Path ability called "Precision", which is an ability for the Champion path.
 
Thanks. Works nearly perfectly.

Question though: I'd like to add the adjustment just once and have the number of tags applied be multiplied by the up/down counter. Don't suppose you'd have an example of that anywhere?
 
Last edited:
Ah, figured it would be some sort of loop.

However, it doesn't seem to work. I'll keep messing with it.
 
Are you running your script at the same timing as Precision? Also, may want to confirm that the tags are being assigned with debugs.
 
Previous to putting it into the loop, the assignment worked when I added multiple adjustments. It's the adding of the tags based on the incrementer that is not working.
 
Yes.

Here's the xml:

<thing id="pPACZFury" name="Zealous Fury, Zelladariath’s" description="Reduces 2nd and subsequent BAB penalty by 5." compset="InPlay">
<fieldval field="pMaximum" value="3"/>
<fieldval field="pMinimum" value="0"/>
<tag group="Helper" tag="AdjSpell"/>
<eval phase="PostLevel" priority="10000"><![CDATA[ ~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~if nothing's been chosen, get out now
doneif (field[pChosen].ischosen = 0)

var XI as number
while (XI < field[pAdjust].value)
XI += 1

~Assign our precision tag
perform hero.assign[Hero.Precision]
loop]]></eval>
</thing>
 
Is this line necessary? What is your adjustment selecting?

Code:
~if nothing's been chosen, get out now
doneif (field[pChosen].ischosen = 0)
 
Is this line necessary? What is your adjustment selecting?

Code:
~if nothing's been chosen, get out now
doneif (field[pChosen].ischosen = 0)

Hmm.. nothing specifically is chosen, I was looking for an enabled/disabled switch and probably picked the wrong one.
 
The line before that, checking the value of pIsOn is the stop you needed. Delete the pChosen doneif and I think what you have otherwise should work
 
The line before that, checking the value of pIsOn is the stop you needed. Delete the pChosen doneif and I think what you have otherwise should work

Fantastic. Works perfectly now.

This even works with the Transformation spell adjustment, so that you can apply that spell adjustment and this one to make your BAB all the same value even if you are using an adjusted BAB.
 
Back
Top