TheNewProgrammer
Active member
Hi all, back on the spell swapping project I found an eval script for Divine soul sorcerer for 5e that sort of works
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
final Phase - Priority: 21000
doneif (tagis[Helper.ShowSpec] = 0)
~these vars will hold the tag expressions for spells and cantrips
~ needed to pull cleric spells into the list as well as sorceror
var spell as string
var known as string
spell = replace(spell, "sClass.cHelpHel", "( sClass.cHelpClr )", 1)
spell = replace(spell, "(sClassNot.cHelpHel)", "( sClassNot.cHelpClr )", 1)
known = replace(known, "sClass.cHelpHel", "( sClass.cHelpClr )", 1)
known = replace(known, "(sClassNot.cHelpHel)", "( sClassNot.cHelpClr )", 1)
~ debug "Spell: " & spell
~ debug "Known Spells: " & known
~finally, we replace the expressions with the new ones
hero.childfound[cHelpHel].field[sClass].text = spell
hero.childfound[cHelpHel].field[cSpellExpr].text = known
hero.childfound[cHelpHel].field[cSplBkExpr].text = known
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The way I understand it, it takes the class spell list, replaces it with the new list, and then overwrites the old list
Line 20 has an error. the old one was "hero.childfound[cHelpSor].field[cSpKnoExpr].text = spell" but cSpKnoExpr was not recognized, so I replaced it with Class because that is what stores the class spell list, but that does not work either. Anyone know how to make this work?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
final Phase - Priority: 21000
doneif (tagis[Helper.ShowSpec] = 0)
~these vars will hold the tag expressions for spells and cantrips
~ needed to pull cleric spells into the list as well as sorceror
var spell as string
var known as string
spell = replace(spell, "sClass.cHelpHel", "( sClass.cHelpClr )", 1)
spell = replace(spell, "(sClassNot.cHelpHel)", "( sClassNot.cHelpClr )", 1)
known = replace(known, "sClass.cHelpHel", "( sClass.cHelpClr )", 1)
known = replace(known, "(sClassNot.cHelpHel)", "( sClassNot.cHelpClr )", 1)
~ debug "Spell: " & spell
~ debug "Known Spells: " & known
~finally, we replace the expressions with the new ones
hero.childfound[cHelpHel].field[sClass].text = spell
hero.childfound[cHelpHel].field[cSpellExpr].text = known
hero.childfound[cHelpHel].field[cSplBkExpr].text = known
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The way I understand it, it takes the class spell list, replaces it with the new list, and then overwrites the old list
Line 20 has an error. the old one was "hero.childfound[cHelpSor].field[cSpKnoExpr].text = spell" but cSpKnoExpr was not recognized, so I replaced it with Class because that is what stores the class spell list, but that does not work either. Anyone know how to make this work?