• 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

Configurable script adding 1 + modifier

insaneurge

Well-known member
I am trying to create a Swse data file to use over the pathfinder hero lab set. One thing is giving me problems. I have a special power tab for Force Powers I am working on. The Force powers are gained via a feat, Force Training. In the configurable properties I can set the amount of powers gained. However, what I would really like is to script it properly, which is that every time the Force Training feat is added, it adds 1+Wis modifier Force powers to be chosen under the configurable tab. I am clueless how to script this and was hoping for some help
 
Turn on Data File Debugging and look up what field is being modified via the configurable and then create a script either on the configurable or the feat (I'd go with the configurable) Feat Count * #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

Code:
field[cfgMax1].value += #featcount[FrcTrain]*#abilitybonus1[aWIS]
 
Last edited:
Back
Top