• 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

Adjusting BAB and Favored Enemy

Micco

Well-known member
We are creating a form of Gestalt class that combines elements from two classes for the first level only. Most things we can figure out how to implement in HL, but we can't figure out two things.

1) How would we give a single level of Favored Enemy without having it go up when the class levels? It appears that Favored Enemy is hard-coded in and doesn't use the Bootstrap method (which would allow us to remove all but one level of FE.)

2) How do we add a single point of BAB? If we use the permanent adjustment Attack Bonus, it only applies to attacks. We can also adjust CMD/CMB, but that still doesn't change the BAB score which is used in lots of other calculations such as Feat prereqs.

Any clues or ideas would be useful!
 
You'll be using scripts to modify both of these. As you've seen, the class mechanics presume that classes improve according to regular progressions, so creating Gestalt classes throws that assumption out the window.

Add a level of Ranger to an empty character so you can test things.

In the develop menu, make sure the "Enable Data File Debugging" option at the top is checked, then go to the bottom of the list, to the floating info windows, and select "Show Selection Fields". Scan through this list for anything that looks useful, and you'll come across "Favored Enemy Selections" and "Favored Enemy Upgrades" - select both of those, and move the windows that pop up to the side, where you can see both, but they won't be in the way. Now, add more levels of ranger to the character, and watch how the field values for those things change as you add levels.

Now, go to your new class in the editor, and create a new eval script for it. Timing: we're altering a class ability - those are almost always set in the Levels or Post-Levels phases, so use a timing very late in the Post-Levels phase. Post-Levels/100000, perhaps.

What you want to do is to make sure that this class never adds more than 1 to the resMax of Favored Enemy Selections (resEnemSel), and +0 to the resMax of Favored Enemy Upgrades (resEnemUpg).

Code:
hero.child[resEnemSel].field[resMax].value = minimum(hero.child[resEnemSel].field[resMax].value, 1)
hero.child[resEnemUpg].field[resMax].value = minimum(hero.child[resEnemUpg].field[resMax].value, 0)
 
For the BAB, that's stored in the Attack pick on the hero, in the tAtkBase field.

Classes add their BAB to the attack pick at Levels/10000, so create another eval script on your class, and give it a Timing of Levels/11000, shortly after that.

All you need to do to add +1 BAB is:
Code:
hero.child[Attack].field[tAtkBase].value += 1
 
Back
Top