Member
Join Date: May 2011
Posts: 53
|
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] 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 |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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.
|
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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] |
#3 |
Member
Join Date: May 2011
Posts: 53
|
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. |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
In the "Custom Abilities" section, what have you put in any of the following settings:
Allow Custom Abilities Primary Candidate Expression |
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
1 + attr bonus would be:
1 + #attrbonus[aWIS] |
#6 |
Member
Join Date: May 2011
Posts: 53
|
Quote:
for Primary Candidate Expression I have AllowRCust.cfgFrcPwrs! |
|
#7 |
Member
Join Date: May 2011
Posts: 53
|
|
#8 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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. |
#9 |
|
|