• 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

'Or' in Expr Req?

TCArknight

Well-known member
Ok, I'm blanking on this. One of the advanced/prestige classes for D20 Modern has the following requirements to be taken:

Requires: Craft(Chemical) or Craft (Electrical) of 6+ ranks; Knowledge (Earth/Life Sciences) or Knowledge (Physical Sciences) or Knowledge (Technology) of 6+ ranks; Research 6+ ranks

I know it would be three expreq with the #skillranks[] macro, but just having trouble with the 'OR' bits...

Suggestions?

Thanks!
TC
 
If you need OR, you'll need to use a prereq, rather than an exprreq.

Code:
validif (#skillranks[Craft(chemical)] >= 6)
validif (#skillranks[Craft(electrical)] >= 6)

(Replace the names with the proper Ids, of course)

That way, if either test is good, the validif will set the prereq to valid and exit the script, which gets you "OR" behavior.
 
Back
Top