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
Wolf_Larsen
Junior Member
 
Join Date: Nov 2007
Posts: 22

Old April 6th, 2008, 05:29 PM
Help!
I'm trying to add epic feats and am having trouble with a pre-req that requires the character to have the "Slippery Mind" class feature.
What would the coding be for a pre-req that requires a class feature?

Thanks, Wolf
Wolf_Larsen is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old April 6th, 2008, 07:31 PM
Open the help file in the editor, scroll down to "How To - Examples" - there's a section in that describing class abilities and how to access them. Since there are only a few items in the SRD that reference class abilities, and for the turning and wild shape feats, the code uses tags, instead of looking for the special ability itself, open the file srdpsi_prestige_psionic_fist.dat, and look at its prerequisites. You'll see how it checks for the presence of the monk's Still Mind ability. Note that the second if statement, asking about "tagis[Helper.ShowSpec]" - that is there because the first if statement would still be fulfilled by an ex-monk, but the second wouldn't.
Mathias is offline   #2 Reply With Quote
Wolf_Larsen
Junior Member
 
Join Date: Nov 2007
Posts: 22

Old April 7th, 2008, 07:40 AM
It works like a charm. Here's the exact code I usedfor this pre-req:
"Is Error"? and "Only Report Once" are unchecked
Message: "Slippery mind class feature required."
Pre-requisite Script:
@valid = 0
if (hero.pickexists[cRogSlipp] <> 0) then
if (hero.child[cRogSlipp].tagis[Helper.ShowSpec] <> 0) then
@valid = 1
endif
endif
Wolf_Larsen 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:30 PM.


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