Member
Join Date: Mar 2013
Posts: 62
|
So I went directly to Magical Knack, being close to what I want.
Quote:
Any help appreciated. I've made great progress today, so thank you in advance. |
|
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
You will need to use a foreach loop to find all the classes and increase there caster level. If you search these forums for the word "Foreach" you will find plenty of examples.
THIS one by Aaron looks like it will be really close as it goes after Casters and the Class Helper Picks which is what stores the caster level. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#2 |
Member
Join Date: Mar 2013
Posts: 62
|
Quote:
Quote:
Quote:
|
|||
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
So field[usrChosen1].chosen is the same thing as eachpick. With that can you see whats wrong with your script?
Basically eachpick is pointing to a specific Pick similar to saying "hero.childfound[cHelpWiz]" to transition to the Wizard Class Helper Pick. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#4 |
Member
Join Date: Mar 2013
Posts: 62
|
So I tweaked it, and got a new error that leaves me even more baffled:
Quote:
Quote:
|
||
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,215
|
This one is line 6:
Code:
if (eachpick.cCasterlev < hero.tagcount[Hero.HitDice]) then |
#6 |
Member
Join Date: Mar 2013
Posts: 62
|
The original didn't call cCasterlev. I don't know.
|
#7 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,215
|
Anything in this line from your original post that suggests how to tell Hero Lab what cCasterLev is and how to deal with it?
Code:
field[usrChosen1].chosen.field[cCasterLev].value |
#8 |
Member
Join Date: Mar 2013
Posts: 62
|
Quote:
Quote:
|
||
#9 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,215
|
Capitalization counts! Look at what you've really entered as the Id of that field, and compare it to the capitalization of that field in that first post.
|
#10 |
|
|