Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Increase max spell casting level? (http://forums.wolflair.com/showthread.php?t=59987)

Androktasie January 21st, 2018 09:33 PM

Increase max spell casting level?
 
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

Thanks!

Fuzzy January 22nd, 2018 12:59 AM

Wonder if this could be better served pulling from the prestige classes that add casting levels.

Mathias January 22nd, 2018 06:57 AM

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[].

Androktasie January 22nd, 2018 07:39 PM

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


Mathias January 23rd, 2018 07:24 AM

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.

Androktasie January 23rd, 2018 04:13 PM

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



All times are GMT -8. The time now is 12:47 AM.

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