Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Androktasie
Junior Member
 
Join Date: Jan 2018
Posts: 3

Old January 21st, 2018, 09:33 PM
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!
Androktasie is offline   #1 Reply With Quote
Fuzzy
Senior Member
 
Join Date: Jul 2012
Posts: 416

Old January 22nd, 2018, 12:59 AM
Wonder if this could be better served pulling from the prestige classes that add casting levels.
Fuzzy is offline   #2 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old 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[].
Mathias is offline   #3 Reply With Quote
Androktasie
Junior Member
 
Join Date: Jan 2018
Posts: 3

Old 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
Androktasie is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old 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.
Mathias is offline   #5 Reply With Quote
Androktasie
Junior Member
 
Join Date: Jan 2018
Posts: 3

Old 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
Androktasie is offline   #6 Reply With Quote
Reply


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 10:35 PM.


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