• 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

Set BAB to Caster Level for 1 weapon in editor

I have been trying to add Mage's Sword as a weapon through the editor but can't figure out how to change it so that it uses the caster level for the BAB for that single. I tried setting the BAB to the Caster Level and it did nothing. I experimented with changing the BAB in the PreAttribute phase but change the BAB for the entire character. I still couldn't get the caster level part to work.

I would be happy with calculating the difference between the caster level and BAB and adding it to the weapon as a bonus to hit but I can't figure that out either.

Anyone have any suggestions?
 
So I figure out how to do the calculation to change either the BAB or just add a competence bonus which is the difference of character level minus BAB. The issue I have now is that it applies these changes to all of the attacks, not just this one weapon.
I put this code in the Post Attributes phase:
hero.child[Attack].field[BonComp].value = (#totallevelcount[] - hero.child[Attack].field[tAtkBase].value)

Anyone know how I can make this apply to just this one weapon?
 
I think I got it. It adds the difference of the character level and BAB as an untyped bonus for the single weapon I created, which works close enough.

hero.child[wMageSword].field[Bonus].value = (#totallevelcount[] - hero.child[Attack].field[tAtkBase].value)
 
Back
Top