Member
Join Date: Oct 2013
Posts: 79
|
This is probably going to be the same problem as the issue I posted here but we'll see if there is a possible solution...
Versatile Spellcaster (Races of the Dragon pg.101) you can use two lower-leve spell slots to cast a spell one level higher. Here we go again - trying to access the spell list. Any thoughts? -S |
#1 |
Member
Join Date: Oct 2013
Posts: 79
|
I've been giving this scenario some more thought. I found a Variant Class Ability that adjusts the amount of spells you're able to learn with the following code...
Healing Pool Code:
~ Adjustments via this variant class mechanism fail so hard coding 1 less 4th level cleric spell. if (hero.child[cHelpClr].field[cTotalLev].value >= 7) then hero.child[cHelpClr].field[cMemMax].arrayvalue[4] -= 1 if (hero.child[cHelpClr].field[cMemMax].arrayvalue[4] = 0) then hero.child[cHelpClr].field[cSecMax].arrayvalue[4] = 0 endif endif |
#2 |
Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
Yes, there should be a way to select what class and levels that this is attached to, I'm not exactly sure on how to go about doing that though.
This gets into crazy quilt code, that I quickly get lost with, however from what I can see you are on the right track with this. I've never been very good with manipulating the arrays for casting class and I was NOT looking forward to trying to code this. If you can get it working I'll add it to the Races of the Dragon file I am working on for the next release. +1 Llama/Internetz/Cookie/Muffin Whatever particular fake currency you prefer. You are my savior with this. |
#3 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
You can put a chooser on the feat to find the class. I would use this custom expression:
Code:
component.BaseClHelp & CasterType.SpontKnow Then you can get the id of that class with this: Code:
var class as string class = field[fChosen].chosen.tagids[thingid.?] Code:
foreach pick in hero from BaseClHelp where class eachpick.field[cCastCur].arrayvalue[1] += 1 nexteach I think it I were coding this, I would create a checkbox that lives in the In-Play tab. If checked, whenever you cast a spell, it would do the following: 1) determine level of spell 2) determine level of spell-1 3) subtract 1 from cCastCur array at spell level 4) add 2 to cCastCur array at spell level-1 Last edited by Sendric; December 19th, 2014 at 05:59 AM. |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Code:
hero.findchild[BaseClHelp,class].field[cCastCur].value += 1 Also note that the "search" string is optional. So if you know you only have "one" pick of something you can just do like hero.findchild[BaseRace].xxxxx. If you need to set "lots" of fields of the findchild[] what you then you do a "setfocus" that creates a permanent pointer to the Pick. Example: Code:
~ set our focus to the currently equipped shield perform hero.findchild[BaseArmor,"Helper.CurrShield"].setfocus ~ If we didn't find one get out now doneif (state.isfocus = 0) ~ Set our bonus to our currently equipped shield bonus field[abValue].value += focus.field[arAC].value That ends today tip and tricks. 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. |
|
#5 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
That's extremely helpful. Thanks, Shadow.
|
#6 |
|
|