• 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

Adding a prereq of a class ability

Illvatar

Active member
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
 
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

View menu, Floating Info Windows, Show Selection List is how I found the ability's ID (hBrdMusic in that case).
 
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
 
Back
Top