• 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

Help: Pre-req for new feat

Tarmor

Well-known member
I'm trying to implement a Feat that grants a bonus to two chosen Knowledge skills. I've got everything working except for the Pre-Req. The feat requires two Knowledge skills with 5+ ranks. I'm only going round in circles trying different code and searching the forums for code or something similar.

I started with:

foreach pick in hero from BaseSkill where "Helper.SkCatKnow"
validif (eachpick.field[skRanks].value >= 5)
nexteach

This tells me if there's ONE skill at 5+, but I don't know how to convert this to being valid if two are 5+. There's got to be an easy way, but I can't find the detail I need to do it.

Any suggestions?
 
Look at the feat "Dilettante". It requires 2 ranks in 5 different knowledge skills. If you want to check it inside hero lab (edit: if you have the source material) else:


Make a var counter before the loop (and make it 0. Just programming safety thing)
Make an each loop past all knowledge skill
In there up the counter if the skills has x amount of ranks or more
After the loop call validif counter equals or is higher than requirement
 
Last edited:
Back
Top