• 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

Epic feat Pre-req coding

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
 
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.
 
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
 
Back
Top