Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
AkosPrime
Junior Member
 
Join Date: Jul 2012
Posts: 15

Old November 18th, 2016, 05:45 AM
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.
AkosPrime is offline   #21 Reply With Quote
Farling
Senior Member
 
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623

Old November 18th, 2016, 07:14 AM
Quote:
Originally Posted by AkosPrime View Post
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.
Farling is offline   #22 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 18th, 2016, 12:09 PM
Quote:
Originally Posted by AkosPrime View Post
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.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #23 Reply With Quote
AkosPrime
Junior Member
 
Join Date: Jul 2012
Posts: 15

Old November 20th, 2016, 04:56 AM
Quote:
Originally Posted by ShadowChemosh View Post
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! 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?
AkosPrime is offline   #24 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 20th, 2016, 10:31 AM
Quote:
Originally Posted by AkosPrime View Post
Thanks! That worked! 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.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #25 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:37 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.