• 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 Racial Traits replacing racial stat bonuses

direinsomniac

Well-known member
I am trying to code a number of Alternate Racial Traits that replace the standard racial bonuses of the race in addition to replacing a racial ability.

I figured out how to get it to replace the racial ability, (that was easy) but when I try to code the alternate racial stats, by replace theming via the Field Id tags r???, I get several errors.

Hero Lab was forced to stop compilation after the following errors were detected:
File: myfile.user (line 68) - Thing 'raBrutish' - Attempt to initialize field 'rSTR' that is not defined within compset
File: myfile.user (line 68) - Thing 'raBrutish' - Attempt to initialize field 'rCON' that is not defined within compset
File: myfile.user (line 68) - Thing 'raBrutish' - Attempt to initialize field 'rINT' that is not defined within compset
 
How are you trying to replace them?

I would do something like:

Code:
perform hero.findchild[BaseRace].setfocus

focus.field[rSTR].value "+/-"= XXX
focus.field[rCON].value "+/-"= XXX
focus.field[rINT].value "+/-"= XXX

Where you add or subtract to get to the new starting value.

What timing were you trying to do this? Could it be that you're timing is too early (like the default of First/100) that the fields do not exist yet?

I'd probably time it First/10000
 
Last edited:
Okay I used the above code to get the replacement values, my code now looks like this:

Code:
perform hero.findchild[BaseRace].focus

focus.field[rCHA].value -= 2
focus.field[rDEX].value += 2

focus.field[rSTR].value += 2
focus.field[rINT].value -= 2


But now I get this error:

Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'raBrutish' (Eval Script '#1') on line 1
-> Invalid use of a reserved word in script

My timing for this code is First/500
 
Back
Top