• 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

Class abilities as prereq for feats?

Chance

New member
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!]
 
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/
 
Back
Top