• 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

Adding a flaw/trait/etc that requires one criteria from a list?

Starkad

Member
So I am trying to add some flaws/traits to Hero Lab that our group uses. For the most part, this has been a breeze...

However, several of these require 'Str X or Con X' (some are a pick between 3 or 4 stats, unfortunately). I know how to do a single stat requirement easily enough (reqStr, etc), but how do I make it a 'one of these, from this list'?

Any help would be appreciated. :)

Starkad
 
Use a pre-req with multiple lines.

Code:
  validif (#attrvalue[aSTR] >= 13)
  validif (#attrvalue[aCON] >= 13)
 
To be clearer...

I know that the following is needed (using STR for example) somehow:

validif (#attrvalue[aSTR] >=17)

But I am not sure how to make that a choice from among two or more stats.
 
validif, if the statement inside the parenthesis is true, sets the valid state for the pre-req to true. Nothing later in the script sets it to false (failing the second validif results in "no change" rather than setting the pre-req to false).
 
Hmm. I must be doing something wrong, then. I have that exact text in my eval rules, and a test character with 10s in all stats, and a 14 str, and it's saying invalid. Even if I raise both STR and CON to 13+, it's still showing an error.
 
Back
Top