davystyles
Member
need help figuring out problem with this code, i used the same code as the Draconinc Ancestor and am trying to adapt it to the Giant Soul Sorcerous origin here is the code is have,
doneif (tagis[Helper.ShowSpec] = 0)
doneif (tagis[Helper.Disable] <> 0)
~these vars will hold the tag expressions for spells and cantrips
var cantrip as string
var spell as string
var known as string
var first as string
var second as string
var third as string
var fourth as string
var fifth as string
var sixth as string
var seventh as string
var eighth as string
var ninth as string
var tenth as string
var eleventh as string
var twelfth as string
~ fetch spell expressions
spell = hero.childfound[cHelpSor].field[cSpKnoExpr].text
known = hero.childfound[cHelpSor].field[cSpellExpr].text
~ these receive the extra spells for each circle
first = " | thingid.spFogClou | thingid.spMinoIllu "
second = " | thingid.spBurnHand | thingid.spFireBolt"
third = " | thingid.sp5CArmAga | thingid.spRayFros"
fourth = " | thingid.spHeroism | thingid.spShillela"
fifth = " | thingid.spEntangle | thingid.spspResistan"
sixth = " | thingid.spspShocGras | thingid.spThunderw"
seventh = " | thingid.spFogClou | thingid.spMinoIllu | thingid.spInvisibi"
eighth = " | thingid.spBurnHand | thingid.spFireBolt | thingid.spFlamSphe"
ninth = " | thingid.sp5CArmAga | thingid.spRayFros | thingid.spHoldPers"
tenth = " | thingid.spHeroism | thingid.spShillela | thingid.spEnlargeR"
eleventh = " | thingid.spEntangle | thingid.spspResistan | thingid.spSpikGrow"
twelfth = " | thingid.spspShocGras | thingid.spThunderw | thingid.spGustWind"
doneif (tagis[Helper.ShowSpec] = 0)
doneif (tagis[Helper.Disable] <> 0)
if (field[usrIndex].value = 0) then
spell &= first
known &= first
elseif (field[usrIndex].value = 1) then
spell &= second
known &= second
elseif (field[usrIndex].value = 2) then
spell &= third
known &= third
elseif (field[usrIndex].value = 3) then
spell &= fourth
known &= fourth
elseif (field[usrIndex].value = 4) then
spell &= fifth
known &= fifth
elseif (field[usrIndex].value = 5) then
spell &= sixth
known &= sixth
elseif (field[usrIndex].value = 0) & (#levelcount[Sorcerer] >= 3) then
spell &= seventh
known &= seventh
elseif (field[usrIndex].value = 1) & (#levelcount[Sorcerer] >= 3)then
spell &= eighth
known &= eighth
elseif (field[usrIndex].value = 2) & (#levelcount[Sorcerer] >= 3)then
spell &= ninth
known &= ninth
elseif (field[usrIndex].value = 3) & (#levelcount[Sorcerer] >= 3)then
spell &= tenth
known &= tenth
elseif (field[usrIndex].value = 4) & (#levelcount[Sorcerer] >= 3)then
spell &= eleventh
known &= eleventh
elseif (field[usrIndex].value = 5) & (#levelcount[Sorcerer] >= 3)then
spell &= twelfth
known &= twelfth
endif
this is the error i keep getting
invalid use of reserved word elseif in script on line 64
any help is appreciated
doneif (tagis[Helper.ShowSpec] = 0)
doneif (tagis[Helper.Disable] <> 0)
~these vars will hold the tag expressions for spells and cantrips
var cantrip as string
var spell as string
var known as string
var first as string
var second as string
var third as string
var fourth as string
var fifth as string
var sixth as string
var seventh as string
var eighth as string
var ninth as string
var tenth as string
var eleventh as string
var twelfth as string
~ fetch spell expressions
spell = hero.childfound[cHelpSor].field[cSpKnoExpr].text
known = hero.childfound[cHelpSor].field[cSpellExpr].text
~ these receive the extra spells for each circle
first = " | thingid.spFogClou | thingid.spMinoIllu "
second = " | thingid.spBurnHand | thingid.spFireBolt"
third = " | thingid.sp5CArmAga | thingid.spRayFros"
fourth = " | thingid.spHeroism | thingid.spShillela"
fifth = " | thingid.spEntangle | thingid.spspResistan"
sixth = " | thingid.spspShocGras | thingid.spThunderw"
seventh = " | thingid.spFogClou | thingid.spMinoIllu | thingid.spInvisibi"
eighth = " | thingid.spBurnHand | thingid.spFireBolt | thingid.spFlamSphe"
ninth = " | thingid.sp5CArmAga | thingid.spRayFros | thingid.spHoldPers"
tenth = " | thingid.spHeroism | thingid.spShillela | thingid.spEnlargeR"
eleventh = " | thingid.spEntangle | thingid.spspResistan | thingid.spSpikGrow"
twelfth = " | thingid.spspShocGras | thingid.spThunderw | thingid.spGustWind"
doneif (tagis[Helper.ShowSpec] = 0)
doneif (tagis[Helper.Disable] <> 0)
if (field[usrIndex].value = 0) then
spell &= first
known &= first
elseif (field[usrIndex].value = 1) then
spell &= second
known &= second
elseif (field[usrIndex].value = 2) then
spell &= third
known &= third
elseif (field[usrIndex].value = 3) then
spell &= fourth
known &= fourth
elseif (field[usrIndex].value = 4) then
spell &= fifth
known &= fifth
elseif (field[usrIndex].value = 5) then
spell &= sixth
known &= sixth
elseif (field[usrIndex].value = 0) & (#levelcount[Sorcerer] >= 3) then
spell &= seventh
known &= seventh
elseif (field[usrIndex].value = 1) & (#levelcount[Sorcerer] >= 3)then
spell &= eighth
known &= eighth
elseif (field[usrIndex].value = 2) & (#levelcount[Sorcerer] >= 3)then
spell &= ninth
known &= ninth
elseif (field[usrIndex].value = 3) & (#levelcount[Sorcerer] >= 3)then
spell &= tenth
known &= tenth
elseif (field[usrIndex].value = 4) & (#levelcount[Sorcerer] >= 3)then
spell &= eleventh
known &= eleventh
elseif (field[usrIndex].value = 5) & (#levelcount[Sorcerer] >= 3)then
spell &= twelfth
known &= twelfth
endif
this is the error i keep getting
invalid use of reserved word elseif in script on line 64
any help is appreciated