Trying to throw together the Magus final playtest class that Paizo just released. One of the new arcana (Spell Blending) allows the magus to pick one spell (at the highest level they can cast) or two spells (below the highest level they can cast) from the wizard spell list and add it to their spellbook. Having trouble building the usrCandid1 field for the pick list, in this script...
On my level 12 test character the notify returns 'component.BaseSpell & SpellType.cHelpWiz & ( sLevel.4 | sLevel.3 | sLevel.2 | sLevel.1 | sLevel.0 )' but the selection list only seems to show the Level 0 wizard spells, and I can't figure out why. Help?
Oh yeah, cHelpMaF is the 'Magus Final' class I'm monkeying around with.
Code:
~ Final Phase (Users) - 10000
~ If we're disabled, do nothing
doneif (tagis[Helper.SpcDisable] <> 0)
~Only add the option to select a second spell if we can cast spells of a level above our minimum
if (hero.child[cHelpMaF].field[cMaxSpLev].value > hero.child[cHelpMaF].field[cSplMinLvl].value) then
field[usrChkText].text = "2 spells?"
endif
var splvl as number
var searchstr as string
searchstr = "( "
splvl = hero.childfound[cHelpMaF].field[cMaxSpLev].value
while ( splvl > 0 )
searchstr = searchstr & "sLevel." & splvl & " | "
splvl = splvl - 1
loop
searchstr = searchstr & "sLevel.0 )"
field[usrCandid1].text = "component.BaseSpell & SpellType.cHelpWiz & " & searchstr
notify field[usrCandid1].text
On my level 12 test character the notify returns 'component.BaseSpell & SpellType.cHelpWiz & ( sLevel.4 | sLevel.3 | sLevel.2 | sLevel.1 | sLevel.0 )' but the selection list only seems to show the Level 0 wizard spells, and I can't figure out why. Help?
Oh yeah, cHelpMaF is the 'Magus Final' class I'm monkeying around with.