Junior Member
Join Date: Nov 2007
Posts: 22
|
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 |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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.
|
#2 |
Junior Member
Join Date: Nov 2007
Posts: 22
|
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 |
#3 |
|
|