|
Junior Member
Join Date: Jan 2018
Posts: 3
|
Hello,
Our GM recently gave us a powerful artifact that allows casting of certain spells above our level. For instance, a 6th level Hunter (able to cast up to level 2 spells) is now able to cast 4th level spells like Cure Serious Wounds. I was able to adjust the Spells Known and Spells per Day in the Personal tab so that I could add the spell in the Hunter class tab, but it still appears greyed out since normally my character wouldn't be able to cast spells of that level just yet. Likewise, the added spell is hidden from the Spells tab. I'd like to make a new Adjustment that allows raising the max spell casting level so the spellcasting can be tracked in the Spells tab. I think the value I'm looking for is [tMaxSpLev] (?), but so far I haven't been able to see any effect. Could someone please help with this adjustment? Also, what phase and what priority should this be? Code:
~ If we're not enabled, get out now doneif (field[pIsOn].value = 0) ~ Add to Max Spellcasting Level herofield[tMaxSpLev].value += field[pAdjust].value |
#1 |
Senior Member
Join Date: Jul 2012
Posts: 416
|
Wonder if this could be better served pulling from the prestige classes that add casting levels.
|
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
tMaxSpLev's name is "maximum spell level", and its purpose is for prereqs like "Ability to cast 3rd level spells required", so it's a report of the highest level spells available to any of your classes, not a control that limits those classes.
If you want to adjust a particular class' spellcasting abilities, look for fields on that class, not a herofield[]. |
#3 |
Junior Member
Join Date: Jan 2018
Posts: 3
|
Got it working. Thank you for pointing me in the right direction!
Show Menu: Classes Other adjustment subcategory: class Eval Script: Phase: Post Attributes Priority: 20001 Code:
~ If we're not enabled, get out now doneif (field[pIsOn].value = 0) ~ If nothing chosen, get out now doneif (field[pChosen].ischosen <> 1) ~ Adjust the max caster level up or down field[pChosen].chosen.field[cMaxSpLev].value += field[pAdjust].value |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Your comment does not match the effects of the line of code below it. cMaxSpLev is maximum spell level, not caster level (so telling a Hunter that their spells stop at 6th level, but a druid's cMaxSpLev would be 9). cMagicLev is the effective magic level of a class.
|
#5 |
Junior Member
Join Date: Jan 2018
Posts: 3
|
Ah, right. Good catch.
Code:
~ If we're not enabled, get out now doneif (field[pIsOn].value = 0) ~ If nothing chosen, get out now doneif (field[pChosen].ischosen <> 1) ~ Adjust the maximum level of spells cast up or down field[pChosen].chosen.field[cMaxSpLev].value += field[pAdjust].value |
#6 |
|
|