Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Class abilities as prereq for feats? (http://forums.wolflair.com/showthread.php?t=6846)

Chance April 6th, 2007 06:50 AM

Class abilities as prereq for feats?
 
How do you set a variable class ability (like sneak attack) as a prereq for a feat? I've tried it various ways and I just keep getting errors when comp'ing, but the rest of it goes through fine. I may even be using the wrong names, but have tried all of them that I could find for sneak attack listed in the other dat files. [The feat I was adding was Arterial Strike from the CW book, so not having that show as a Prereq won't matter much, but it's jut bugging me and stuff!]

Colen April 6th, 2007 07:52 PM

Class abilities as prereq for feats?
 
Chance wrote:
>
>
> How do you set a variable class ability (like sneak attack) as a prereq
> for a feat? I've tried it various ways and I just keep getting errors
> when comp'ing, but the rest of it goes through fine. I may even be using
> the wrong names, but have tried all of them that I could find for sneak
> attack listed in the other dat files. [The feat I was adding was
> Arterial Strike from the CW book, so not having that show as a Prereq
> won't matter much, but it's jut bugging me and stuff!]


If you want a pre-req to say "Only valid if you have 5d6 (or more) of
Sneak Attack damage", you could do this:

----

~ We're valid by default
@valid = 1

~ If we have less than 5 dice of sneak attack, we're not valid
if (childfound[xSneakAtt].field[Value].value < 5) then
@valid = 0
endif

----


Hope this helps,


--
Colen McAlister (colen@wolflair.com)
Chief Engineer, Lone Wolf Development
http://www.wolflair.com/


All times are GMT -8. The time now is 03:54 AM.

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