• 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

Feat prerequisite

Shadowolf

New member
Okay so I'm working on a feat from a book that has the following "Prerequisites: Craft (any) 3 ranks"

So I've entered the following into Hero Lab:

~ Make a prereq valid if you have 3 or more ranks in Any crafting skills
if (#skillranks[skCrafAll] >= 3) then
@valid = 1
endif

No matter what crafting skills I choose, even if I put the ranks all in 1 skill, it still does not make the feat a valid selection, telling me that I haven't met the prerequisite.

If I change the skill in the script to a specific crafting skill and select 3 ranks in that skill, it does work. So I'm just wondering what I'm missing here.

Thanks,
Philip
 
skCrafAll is a special helper used for "+2 to all Crafting skills". It never gets any ranks of its own - all it does is forward its bonuses/penalties to all the real craft skills. For this, you should use a foreach to search through all craft skills, and you're valid if there's at least three ranks in any of them.


The Cooperative Crafting skill from the APG has this same prereq at 1 rank. I'd copy that feat in the editor and copy its prereq over to your feat.
 
Having owned both Hero Lab and Realm Works for many years, I am just now trying my hand at adding content. It's been a slow process for me, but I push on.
 
Back
Top