• 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

Example of house rule bonus skill point?

It does compile, I don't get any error or warning message from it other than the one that says:

"To test the current thing, Hero Lab will need to delete and re-add parts of your portfolio. This means that certain field values and user selections may be deleted. If you want to preserve the current hero, save it before continuing.

Do you want to continue?"


There is nothing else in the 'Eval Scripts' other than what I've posted. I've done both 'Test Now' and Tools->Compile Data Files and both complete successfully.

Other than the Name, Unique ID, Summary Text, Description Text, and the Eval Scripts (listed previously) the only changes to a blank Faction are the following:
Counts as faction: Valheim (which is user created)
Not allowed for Pathfinder Society Character: box checked
Tags (2):
-Helper NoPathSoc
-Faction ValResid "Valheim resident" "Valheim resident"
Bootstraps (2):
-fArmShield
-fShieldWal

When adding or removing the faction, the two feats listed in the bootstraps get added/removed.

How do I turn on the "Enable Data File Debugging"? I do not see a "Develop" menu in my editor. I've only got (File|View|Tools|Help) and it doesn't appear underneath any of those either.
 
How do I turn on the "Enable Data File Debugging"? I do not see a "Develop" menu in my editor. I've only got (File|View|Tools|Help) and it doesn't appear underneath any of those either.

The option is in the main HeroLab window, not the editor.
 
Code:
#resmax[resSkill] += 1 * field[xAllLev].value
If this is the script you have running on a faction then yeah you will get zero. This is because xAllLev only exists on Class Specials.

Change your script to Post-Levels/1000 and use this instead:
Code:
#resmax[resSkill] += #totallevelcount[]
Stuff with a # means its a macro. That will figure out the characters total level and add the level as a bonus to the skills. Now that I am looking the 1 times another value is not needed. One times anything is the same value so just add the character level. :)
 
Change your script to Post-Levels/1000 and use this instead:
Code:
#resmax[resSkill] += #totallevelcount[]
Stuff with a # means its a macro. That will figure out the characters total level and add the level as a bonus to the skills. Now that I am looking the 1 times another value is not needed. One times anything is the same value so just add the character level. :)

Thanks! That worked! :D Is there a document anywhere that shows which things, i.e. macros, etc., are available at which 'level' of the code? For that matter is there anything that documents all the macros in any form?
 
Thanks! That worked! :D Is there a document anywhere that shows which things, i.e. macros, etc., are available at which 'level' of the code? For that matter is there anything that documents all the macros in any form?
AndrewD2 put together a google doc of the macros. But no macros are one of the 'hidden' features of HL that we can't see as editors. This use to be true of Procedures also but that was changed awhile back. Maybe one day we will get the ability to see macros in the future.

Until then I reference AndrewD2's google doc. Or start your own list when you see one in use in a script.
 
Back
Top