Junior Member
Join Date: Oct 2007
Location: New Hampshire, USA
Posts: 26
|
How do I check for the existence of a class ability as a prerequisite for a feat? I know how to check for one if it has a number of uses per day, but not for the basic existence of the ability.
Thanks, Illvatar |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Here's a pre-req for bardic music. This should give you an example to go from:
Code:
if (picklives[hBrdMusic] = 1) then @valid = 1 endif |
#2 |
Junior Member
Join Date: Oct 2007
Location: New Hampshire, USA
Posts: 26
|
Thanks. That worked perfectly. That fixes about 6 feats that I've entered.
|
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Since I just had to enter a feat requiring lay on hands, and lay on hands doesn't activate until 2nd level Paladin, I had to add an extra if statement to make sure it was active, and not just present.
Code:
if (picklives[cPalLayHnd] >0) then if (hero.child[cPalLayHnd].tagis[Helper.ShowSpec] >0) then @valid = 1 endif endif |
#4 |
|
|