Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > Hero Lab Discussion

Notices

Reply
 
Thread Tools Display Modes
Paragon
Senior Member
 
Join Date: Feb 2010
Posts: 874

Old September 7th, 2016, 11:25 AM
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?
Paragon is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old 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.
Mathias is online now   #2 Reply With Quote
Paragon
Senior Member
 
Join Date: Feb 2010
Posts: 874

Old 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...
Paragon is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:21 AM.


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