Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
insaneurge
Member
 
Join Date: May 2011
Posts: 53

Old January 10th, 2018, 07:56 PM
I am trying to use a feat to allow for choices from a list through the configurable tab. However, I cannot seem to get it working. This is what I was trying and the error I am getting.

Code:
field[cfgMax1].value += #featcount[FrcTrain]*#abilitybonus1[aWIS]
I'm getting the following errors with my script.

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

Syntax error in 'eval' script for Thing 'cfgFrcPwrs' (Eval Script '#1') on line 1
-> Error in right-side expression of assignment
insaneurge is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old January 10th, 2018, 07:59 PM
There is no such thing as a "featcount" macro, and there is no "abilitybonus1" macro, so Hero Lab doesn't understand what you're trying to write.
Mathias is offline   #2 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old January 10th, 2018, 08:02 PM
My guess as to the rule you're trying to implement is that each time you select this feat, you get a number of choices equal to your wisdom bonus, with a minimum of +1 choice even if you have a low wisdom.

For that, on the feat itself, use this script:

Code:
hero.childfound[The Configurable's Id].field[cfgMax1].value += #attrbonus1[aWIS]
Mathias is offline   #3 Reply With Quote
insaneurge
Member
 
Join Date: May 2011
Posts: 53

Old January 10th, 2018, 08:27 PM
Thank you Mathias! I was trying to create a script which would assign 1 + attribute bonus (minimum of 1 total).

One other question, how do I restrict the choices on the configurable. Previously it showed just the choices I assigned to it but now it has a massive list of choices?

Last edited by insaneurge; January 11th, 2018 at 04:30 AM.
insaneurge is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old January 11th, 2018, 07:59 AM
In the "Custom Abilities" section, what have you put in any of the following settings:

Allow Custom Abilities
Primary Candidate Expression
Mathias is offline   #5 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old January 11th, 2018, 08:00 AM
1 + attr bonus would be:

1 + #attrbonus[aWIS]
Mathias is offline   #6 Reply With Quote
insaneurge
Member
 
Join Date: May 2011
Posts: 53

Old January 11th, 2018, 02:39 PM
Quote:
Originally Posted by Mathias View Post
In the "Custom Abilities" section, what have you put in any of the following settings:

Allow Custom Abilities
Primary Candidate Expression
Under allow custom abilities I have checked on my custom ability designated force powers.

for Primary Candidate Expression I have AllowRCust.cfgFrcPwrs!
insaneurge is offline   #7 Reply With Quote
insaneurge
Member
 
Join Date: May 2011
Posts: 53

Old January 11th, 2018, 02:44 PM
Quote:
Originally Posted by insaneurge View Post
Under allow custom abilities I have checked on my custom ability designated force powers.

for Primary Candidate Expression I have AllowRCust.cfgFrcPwrs!
I got it. I am not sure why, but when I typed it in here I realized I had a ! in there.
insaneurge is offline   #8 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old January 11th, 2018, 04:40 PM
Is cfgFrcPwrs the Id of your configurable? And this is a candidate expression on that configurable?

If so, leave that blank - you're re-entering the default text (actually, the default is more complex, in order to have handling available for some special cases). If not, select your configurable in "Allow Custom Abilities", and Hero Lab will build the expression for you.
Mathias is offline   #9 Reply With Quote
Reply

Thread Tools
Display Modes

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 12:08 AM.


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