• 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

Multiple optional prerequisites for a feat?

rashidali

Well-known member
I was trying to make a feat that has multiple prerequisites that are optional. Well not really optional but... well here is the feat:

Trapfinding
Prerequisites: Search 4 ranks and one of the following: Craft (Trapmaking) 4 ranks, Knowledge (Architecture and engineering) 4 ranks, or Knowledge (Dungeoneering) 4 ranks.
You gain the trapfinding ability that works exactly like the Rogue's Trapfinding ability.

I know how to code the prereqs, but I'm having trouble with the choosing of the one of the skill prereq. I've looking in the help files, tried "or" commands in the code, and looked at d20srd.org and other data files for a similar feat or set of prerequisites but I could not find one. Help??

I did see that the Pathfinder prestige class, the Justicar, has a similar set of prerequisites, but since there doesn't see to be a data file that I can find, I'm unable to copy and paste from that.

Basically I'm looking to do something like this:

Code:
if (#skillranks[kKnowArcEn] >= 4) or (#skillranks[kKnowDun] >= 4) or (#skillranks[kCrafTrap] >= 4) then
  @valid = 1
endif

It is telling me (when I do put it into the program) that either the use of a reserved word is not allowed or that there is an error parsing the equation. So any help?
 
The way I'd go about this is:
var total
if (#skillranks[kKnowArcEn] >=4) then
total +=1
endif
repeat for dungeoneering
repeat for craft trap

if (total > 0) then
@valid = 1
endif
 
Back
Top