I am trying to create a trait based on Two World Magic from Sargava, the Lost Colony. I have tried changing the 2nd Custom Expression to select another 0 level spell. That part looks like it should work correctly. When I try to modify the Eval Script, this is when I run into problems.
Since the class is no longer being selected by the 2nd Custom Expression, I tried to add the cCleric class into the script, but I evidently don't have the expression correct. Here is the old expression.
~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen2].ischosen = 0)
~now that we've chosen a class, we can restrict the list of spells available
field[usrCandid1].text &= " & !(" & field[usrChosen2].chosen.tagids[sClass.?,"|"] & ")"
~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen1].ischosen = 0)
doneif (tagis[Helper.FtDisable] <> 0)
~ If we are a spontaneous caster this will set the correct cantrip
perform field[usrChosen1].chosen.pulltags[ClsAllowSp.?]
perform field[usrChosen2].chosen.pushtags[ClsAllowSp.?]
This is what I have changed it to:
~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen2].ischosen = 0)
~now that we've chosen a class, we can restrict the list of spells available
field[usrCandid1].text &= " & !(" & field [chosen.tagids[sClass.cCleric,"|"] & ")"
field[usrCandid2].text &= " & !(" & field [chosen.tagids[sClass.cCleric,"|"] & ")"
~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen1].ischosen = 0)
doneif (tagis[Helper.FtDisable] <> 0)
~ If we are a spontaneous caster this will set the correct cantrip
perform field[usrChosen1].chosen.pulltags[ClsAllowSp.?]
perform field[usrChosen1].chosen.pushtags[ClsAllowSp.cCleric]
perform field[usrChosen2].chosen.pulltags[ClsAllowSp.?]
perform field[usrChosen2].chosen.pushtags[ClsAllowSp.cCleric]
The program doesn't like this modified expression. I have modified other scripts in the past, but I am missing something here.
Since the class is no longer being selected by the 2nd Custom Expression, I tried to add the cCleric class into the script, but I evidently don't have the expression correct. Here is the old expression.
~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen2].ischosen = 0)
~now that we've chosen a class, we can restrict the list of spells available
field[usrCandid1].text &= " & !(" & field[usrChosen2].chosen.tagids[sClass.?,"|"] & ")"
~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen1].ischosen = 0)
doneif (tagis[Helper.FtDisable] <> 0)
~ If we are a spontaneous caster this will set the correct cantrip
perform field[usrChosen1].chosen.pulltags[ClsAllowSp.?]
perform field[usrChosen2].chosen.pushtags[ClsAllowSp.?]
This is what I have changed it to:
~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen2].ischosen = 0)
~now that we've chosen a class, we can restrict the list of spells available
field[usrCandid1].text &= " & !(" & field [chosen.tagids[sClass.cCleric,"|"] & ")"
field[usrCandid2].text &= " & !(" & field [chosen.tagids[sClass.cCleric,"|"] & ")"
~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen1].ischosen = 0)
doneif (tagis[Helper.FtDisable] <> 0)
~ If we are a spontaneous caster this will set the correct cantrip
perform field[usrChosen1].chosen.pulltags[ClsAllowSp.?]
perform field[usrChosen1].chosen.pushtags[ClsAllowSp.cCleric]
perform field[usrChosen2].chosen.pulltags[ClsAllowSp.?]
perform field[usrChosen2].chosen.pushtags[ClsAllowSp.cCleric]
The program doesn't like this modified expression. I have modified other scripts in the past, but I am missing something here.