• 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

Scripting for disallowing feat selection

Asandir

Well-known member
Anyone know of any feat that disallows you to take another. I've got a couple that specifically do not allow the character to take Acrobatic and Nimble moves.

A pointer in the right direction would be appreciated.
 
I cannot think of any, but if you are asking so you know how to preclude them, it is under Pick-reqs, and then check the "Preclude Selection if Present?" box.
 
SeeleyOne, I recommend that you don't use pickreqs for anything but "can speak language X". When testing feats, you need to use the #hasfeat[] macro. Otherwise, if you were working on a skeleton, or some other case where the feats on the character had been disabled, a pickreq would still recognize them as being present, but the #hasfeat[] macro would properly recognize that the character didn't have that feat that's currently disabled.
 
I see two options:

1) make replacement copies of those two feats, and add new exprreqs to them.

2) add an exprreq to this feat that complains if you select those other feats. This is less ideal, because the acrobatic and nimble moves feats won't show up as gray if you have this feat, and the error will be reported on this feat you're adding. On the other hand, by putting the test for those other two feats on this feat that's in your user-added content, you avoid using replacements, meaning you don't have to worry that a user has chosen to install your content and some other content that replaces Acrobatic and Nmble Moves - if something is replaced twice, Hero Lab doesn't know which is correct, and reports a compile error and goes into safe mode, so that the user can delete one of the replacements.
 
Back
Top