Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
Illvatar
Junior Member
 
Join Date: Oct 2007
Location: New Hampshire, USA
Posts: 26

Old August 11th, 2008, 08:34 PM
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
Illvatar is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 12,810

Old August 12th, 2008, 03:12 AM
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).
Mathias is offline   #2 Reply With Quote
Illvatar
Junior Member
 
Join Date: Oct 2007
Location: New Hampshire, USA
Posts: 26

Old August 12th, 2008, 06:40 AM
Thanks. That worked perfectly. That fixes about 6 feats that I've entered.
Illvatar is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 12,810

Old September 25th, 2008, 04:22 PM
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
Mathias is offline   #4 Reply With Quote
Reply

Thread Tools
Display Modes

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 09:05 AM.


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