Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Custom Favored Class Option Spells Known Issue (http://forums.wolflair.com/showthread.php?t=55229)

DrunkZombie March 3rd, 2016 01:58 PM

Custom Favored Class Option Spells Known Issue
I am created a custom favored class option where a sorcerer gets to select a druid spell of 1 less than current max spell level to be added to spells known. I haven't found a way to add it directly to the spells known, so I have made it get added to the spells allowed list, so the user can then select it. It works the first time, but if selected multiple times, the additional ones do not.

First off the line isn't automatically added to the "Customize Favored Class Options" for selections beyond the first, you have to manually add it. Second, even after doing that the additional spells are not added to the allowed spells list. Is this just an engine limitation or is there something else I need to add?


post-attributes 36000

~generate the expression saying what spells we're able to search for
~we're looking for spells that are druid spells but not sorcerer spells and are of a level one or more less than we can cast

var spellmax as number

spellmax = hero.childfound[cHelpSor].field[cMaxSpLev].value

field[usrCandid1].text = "component.BaseSpell & sClass.cHelpDrd & !sClass.cHelpSor & (val:sLevel.? < " & spellmax & ")"

post-levels 10000
      ~if we've chosen something, add that spell to the spells we're allowed to choose.
      doneif (field[fcCount].value = 0)
      doneif (field[usrChosen1].ischosen = 0)
      ~retrieve the spell info tag from the thing we've chosen
perform field[usrChosen1].chosen.pulltags[ClsAllowSp.?]
perform hero.childfound[cHelpSor].pushtags[ClsAllowSp.?]

DrunkZombie March 3rd, 2016 02:09 PM

Update, ok I guess it does work, but not in a very user friendly way. After you manually add the second "Customize Favored Class Option", you then select it in the "favored bonus" dropdown. There will be multiple instances and you need to select the unused one.

All times are GMT -8. The time now is 01:41 PM.

Powered by vBulletin® - Copyright ©2000 - 2022, vBulletin Solutions, Inc.
wolflair.com copyright 1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.