• 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

Weapon BAB Change

Frodie

Well-known member
I am trying to do this:

"Furthermore, his base attack bonus for such attacks is figured using his class level rather than normal base attack bonus"

The script works, but it adds to the BAB not replace it. Any ideas?



field[abValue].value += round(#totallevelcount[]/1,0,-1)

field[livename].text = field[thingname].text & " +" & field[abValue].value

foreach pick in hero from BaseWep where "IsWeapon.wMPSGGMdLC"
eachpick.field[wAttack].value += field[abValue].value

nexteach
 
Got it:


field[abValue].value += round(#totallevelcount[]/1,0,-1)

field[livename].text = field[thingname].text & " +" & field[abValue].value

foreach pick in hero from BaseWep where "IsWeapon.wMPSGGMdLC"
field[abValue].value -= hero.child[Attack].field[tAtkBase].value
eachpick.field[wAttack].value += field[abValue].value

nexteach
 
Glad you've got it figured.

One thing that confused me a bit, was that you're dividing #totallevelcount[] by 1 (which does nothing) and then rounding it (which will do nothing, since it will always be a whole number at the start).

For clarity, I'd change the first line to

Code:
field[abValue].value +=#totallevelcount[]
 
Back
Top