Okay, so I thought I had this working (and it does, sort of). I am working on a feat hat gives you a favored class in addition to the one you get to choose (this one is chosen between the bard, sorcerer, or wizard). The script I have will make the chosen class a favored class, but only for one level, after that it is no longer a favored class. Any help would be appreciated. Here is what I have.
Code:
~assign Bard as a favored class
if (field[usrChosen1].chosen.pulltags[thingid.cBard] = 1) then
perform hero.assign[FavClass.cBard]
perform hero.childfound[cBard].assign[Helper.FavorClass]
~assign Sorcerer as a favored class
elseif (field[usrChosen1].chosen.pulltags[thingid.cSorcerer] = 1) then
perform hero.assign[FavClass.cSorcerer]
perform hero.childfound[cSorcerer].assign[Helper.FavorClass]
~assign wizard as a favored class
elseif (field[usrChosen1].chosen.pulltags[thingid.cWizard] = 1) then
perform hero.assign[FavClass.cWizard]
perform hero.childfound[cWizard].assign[Helper.FavorClass]
endif