• 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

using a Hero tag in a pre-requisite

Paragon

Well-known member
In attempt to set up a couple 4e feats so they're properly checking for pre-requisites (specifically a couple that will let you take the feat if you have a high enough value in a specific attribute or are a particular race), I tried to do this in the pre-req script:

Code:
validif (#trait[attrCha] >= 13)
validif (hero.tagis[Race.rDragonbor] <> 0)

Its properly checking for the attribute, but not for the race. I'm guessing that you can't do a hero tag check in the script that way, but I'm not sure why, or how to construct it instead.

Any help?
 
There's nothing wrong with that code that I can see - I do prereq tests for tags on the hero in lots of places.

Time for some tag debugging - make sure the tag you're expecting is actually in place, and make sure that you've spelled it correctly.
 
This is why you don't fiddle with code when you're sleepy.

Since the whole point in that section of code is to allow you to chose the feat if you have either of the pre-requisite, of course it wasn't excluding the eladrin warrior from taking it--they had the attribute prerequisite...

Sorry to bother people...
 
Back
Top