Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Dami
Senior Member
 
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 1,082

Old February 5th, 2017, 12:25 AM
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?
Dami is offline   #1 Reply With Quote
Togainu
Senior Member
 
Join Date: May 2014
Posts: 292

Old February 5th, 2017, 02:40 AM
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 by Togainu; February 5th, 2017 at 03:36 AM.
Togainu is offline   #2 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 03:58 PM.


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