• 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

Feat Cat

Frodie

Well-known member
I am trying to give a bonus feat from the item creation cat.

~add one feat allowed
#resmax[resFeat] += 1

validif (hero.tagis[fCategory.ItemCreate] <> 0)


but this the error:

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

Syntax error in 'eval' script for Thing 'cMHAdvEng' (Eval Script '#1') on line 4
-> Reference to undeclared variable: 'validif'
 
You can't use validif in eval scripts. You can in eval rules though.

Are you trying to ensure that the feat added is an Item Creation one? Because if so you'll have to add it through something else (like a configurable) where you can set a candidate expression of what feats to choose from.

The other, less precise option, would be to have an evalrule check that the hero has at least 1 item creation feat, although that wouldn't ensure that his new one was of that category.
 
Is it for a specific class? Like wizard for example? That's be:

hero.childfound[cHelpWiz].field[cBonFtMax].value += 1
 
Back
Top