Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
rashidali
Member
 
Join Date: Mar 2007
Posts: 53

Old December 5th, 2008, 08:43 PM
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?
rashidali is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old December 5th, 2008, 09:41 PM
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
Mathias is offline   #2 Reply With Quote
rashidali
Member
 
Join Date: Mar 2007
Posts: 53

Old December 5th, 2008, 10:05 PM
Heh. Basically a For loop... Nice thinking :-)
rashidali is offline   #3 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:55 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.