Senior Member
Join Date: Feb 2010
Posts: 874
|
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) Any help? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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. |
#2 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
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... |
#3 |
|
|