• 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

Bonus Feat Only Coding

Hey Everyone,

Working on some Datafiles, and I was wondering if there is a way to add a feat so it can ONLY be selected as a bonus feat. Some classes have feats that are specifically for them and their prestige classes in this dataset, and I cannot find any examples of a way to do this.

Your help would be greatly appreciated!

- Joe
 
Yea its not perfect but you can put a Pre-Req that will complain if not taken as a bonus feat. I did this for the Mythic Playtest package I did. You would put the following in as a "Pre-reqs":
Code:
validif (@ispick = 0)
validif (altpick.tagis[BonusFeat.cHelpMyt] <> 0)
Replace "cHelpMyt" with the Helper Unique ID of your class. cHelpMyt was the Mythic Tier class in the playtest package.

So now if taken as a normal feat it will turn red and toss an error. Its not perfect but it does work....
 
Awesome,

Thanks for the help. Unless someone has a better solution, that one will certainly work for now. If someone knows a way to make it so that the feat wont even show up in the feats list unless you're trying to add a bonus feat that would be even better.

Will that only work for a specific class? Is it possible to make it so that any class that tries to add that feat will get the error? There are several classes that have access to this feat.

Thanks again!

- Joe
 
add this line as many times as you want changing it to fit each class it works for:

Code:
validif (altpick.tagis[BonusFeat.cHelpMyt] <> 0)

Alternately you could do

Code:
validif (@ispick = 0)
validif (altpick.tagis[BonusFeat.cHelpMyt] + altpick.tagis[BonusFeat.cHelpMyt] + altpick.tagis[BonusFeat.cHelpMyt] + altpick.tagis[BonusFeat.cHelpMyt] <> 0)

adding one in for each class that can use it.
 
Back
Top