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
egg_green
Senior Member
 
Join Date: Aug 2007
Posts: 103

Old August 19th, 2007, 06:16 PM
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
But I get an error:
"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
egg_green is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old August 20th, 2007, 05:34 PM
Here's an example from the Warmind class:

Code:
@valid = 1
        if (#hasfeat[fLeader] <> 0) then
              @valid = 0
          endif
Looks like all you were missing was that <> means != or does not equal.
Mathias is offline   #2 Reply With Quote
egg_green
Senior Member
 
Join Date: Aug 2007
Posts: 103

Old August 21st, 2007, 11:34 AM
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
egg_green is offline   #3 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old August 22nd, 2007, 08:58 PM
At 12:34 PM 8/21/2007, you wrote:
Quote:
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.
There is a section in the Authoring Kit manual about this. You can access the Authoring Kit docs from the Windows Start menu, plus there is a link to it from within the User Manual. The section entitled "Scripting Basics" covers all of the language features.
rob is offline   #4 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 08: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.