Brolthemighty
Well-known member
Alright, so after several nights of trying to figure this out....I can't figure out how to finish up the scripting of the feat. To summarize, I'll list the feat, the current script, and then what's needed and what needs fixing.
Benefit: Choose one arcane spell that you can cast to be your thesis spell. When casting that spell, you do so at +2 caster level. When you apply a metamagic feat other than Heighten Spell to that spell, the enhanced spell uses up a spell slot one level lower than normal. For example, an empowered thesis spell uses up a spell slot one level higher than the spell's actual slot (rather than the normal two levels higher).
Special: You can gain this feat multiple times. Its effects do not stack. Each time you take the feat, it applies to a new spell.
Phase: Post-Attributes Priority: 14500
Script:
doneif (field[usrChosen1].ischosen = 0)
~ Generate our search expression to target the correct spell
var searchexpr as string
searchexpr = "thingid." & field[usrChosen1].chosen.idstring
searchexpr &= " & HasMetaMag.?"
~ Cycle through all the Custom/metamagic copies of our chosen spell,
~ and reduce their effective level by 1 (keeping them from going negative)
foreach pick in hero from BaseSpell where searchexpr
eachpick.field[sLevel].value = maximum(eachpick.field[sLevel].value - eachpick.tagcount[HasMetaMag.?],0)
nexteach
What's Missing Still: "When casting that spell, you do so at +2 caster level."
- I found the feat Spell Specialization that increases the caster level by +2, but I wasn't sure how to apply it's scripting, or could even find where it increased the caster level.
What needs fixing: Due to the scripting of the metamagic reduction, the save DC seems to be getting decreased by 1 for every metamagic feat applied. Here's a great response a fellow board member suggested...."It would appear to me that by lowering each metamagic feat by an effective level of 1, you are also reducing the DC being applied by 1. At the moment, I can't explain why since I haven't delved into it. To offset it, though, I would probably use a variable to count how many metamagic feats there are, then increase the DC by 1 for each."
I can find scripts to increase the DC...and might be able to stumble my way through writing the script for counting metamagic feats....but not sure how to apply multiple scripts to the same feat (One for reducing metamagic cost, one to increase caster level, and one to increase the save). I'd appreciate ya'lls help. The more I try....the more I learn from all of you.
Benefit: Choose one arcane spell that you can cast to be your thesis spell. When casting that spell, you do so at +2 caster level. When you apply a metamagic feat other than Heighten Spell to that spell, the enhanced spell uses up a spell slot one level lower than normal. For example, an empowered thesis spell uses up a spell slot one level higher than the spell's actual slot (rather than the normal two levels higher).
Special: You can gain this feat multiple times. Its effects do not stack. Each time you take the feat, it applies to a new spell.
Phase: Post-Attributes Priority: 14500
Script:
doneif (field[usrChosen1].ischosen = 0)
~ Generate our search expression to target the correct spell
var searchexpr as string
searchexpr = "thingid." & field[usrChosen1].chosen.idstring
searchexpr &= " & HasMetaMag.?"
~ Cycle through all the Custom/metamagic copies of our chosen spell,
~ and reduce their effective level by 1 (keeping them from going negative)
foreach pick in hero from BaseSpell where searchexpr
eachpick.field[sLevel].value = maximum(eachpick.field[sLevel].value - eachpick.tagcount[HasMetaMag.?],0)
nexteach
What's Missing Still: "When casting that spell, you do so at +2 caster level."
- I found the feat Spell Specialization that increases the caster level by +2, but I wasn't sure how to apply it's scripting, or could even find where it increased the caster level.
What needs fixing: Due to the scripting of the metamagic reduction, the save DC seems to be getting decreased by 1 for every metamagic feat applied. Here's a great response a fellow board member suggested...."It would appear to me that by lowering each metamagic feat by an effective level of 1, you are also reducing the DC being applied by 1. At the moment, I can't explain why since I haven't delved into it. To offset it, though, I would probably use a variable to count how many metamagic feats there are, then increase the DC by 1 for each."
I can find scripts to increase the DC...and might be able to stumble my way through writing the script for counting metamagic feats....but not sure how to apply multiple scripts to the same feat (One for reducing metamagic cost, one to increase caster level, and one to increase the save). I'd appreciate ya'lls help. The more I try....the more I learn from all of you.
Last edited: