Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   Hero Lab Discussion (http://forums.wolflair.com/forumdisplay.php?f=43)
-   -   using a Hero tag in a pre-requisite (http://forums.wolflair.com/showthread.php?t=56541)

Paragon September 7th, 2016 11:25 AM

using a Hero tag in a pre-requisite
 
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?

Mathias September 7th, 2016 11:28 AM

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.

Paragon September 7th, 2016 12:13 PM

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...


All times are GMT -8. The time now is 01:40 AM.

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