Senior Member
Join Date: Aug 2007
Posts: 103
|
Greetings!
I just bought HeroLab at Gen Con, and I'm setting up houserules for my Pathfinder group (I can't wait for the datasets since we start next week, so I'm doing it myself. It's a good way to learn the system, if nothing else.) Anyway, I'm adding Feats, and one of them has a prerequisite that the character *not* have another specific feat. How would I go about this? I tried this script: Code:
valid = 1 if(#hasfeat[fLoneWolf]==1) @valid = 0 endif if(#hasfeat[fCountryBo]==1) @valid = 0 endif "Syntax error in 'pre-requisite rule' script for Thing 'fCityBorn' on line 3 -> invalid use of a reserved word in script." I suspect the problem is that I'm not allowed to use the #hasfeat[] macro in an if statement. If that is the case, how can I check for the feat "the long way"? If not, what am I doing wrong, and is there a better way to go about this? Thanks! --Emmanuel |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Here's an example from the Warmind class:
Code:
@valid = 1 if (#hasfeat[fLeader] <> 0) then @valid = 0 endif |
#2 |
Senior Member
Join Date: Aug 2007
Posts: 103
|
d'oh!
That makes sense. Is there any reference for the syntax of these scripts? It would be nice to be able to find that sort of thing without having to go to the forums. Thanks so much! --Egg |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
At 12:34 PM 8/21/2007, you wrote:
Quote:
|
|
#4 |
|
|