• 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

Alternate Attribute Modifier Progression

I'm new to Hero Lab, and scripting/coding in general, so I'm really just getting started here. What I'm trying to do is mod a homebrew (heavily altered) version of the D20 rules that my RPG group uses. I want to modify the basic attribute bonus progression to something different than the D20 method of (att-10)/2. While searching through the "data.hlz" file (after copying the D20 game system), I found what I assume to be code designed to call a script or macro "call aGetBonus". Is this the script that HL uses to calculate the attribute mods for a character? If so, does anyone know where I could locate this resource? I'd like to either change it to calculate the mod according to my own scale, or write my own script to do the calculation. In the latter case, would I need to replace every instance of "call aGetBonus" with my own custom script, or is there a better way of doing this.

Thanks in advance for any guidance. I'm very new to writing code/scripts, and to Hero Lab in general.
 
There really isn't any way to "globally" change something like this without a lot of work. I'll tell you what I did for my global changes. I have change the way the attack bonus from Strength (or Dexterity) works so that you only get 1/2 the bonus for "to hit" values. I bootstrapped a special with a script that subtracted out the amount from the attack values to all creature types in my game (Aberration, Humanoid, Monstrous Humanoid, etc.) and made sure each creature was assigned its type (that way I was essentially globally altering this, since all creatures have to have a type). In your case, what you will have to do is something similar, and bootstrap onto the hero through some common but global thing (usually an ability) what you want to the ability scores to actually do. Believe me, I have a heavily modified homebrew d20 campaign, and it is a lot of work to get things working, but it is quite rewarding in the end. I was not so ambitious though, as to change ability scores unfortunately.
 
Back
Top