Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
DrunkZombie
Senior Member
 
Join Date: Aug 2011
Posts: 224

Old March 3rd, 2016, 01:58 PM
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?

Code:
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.?]

Last edited by DrunkZombie; March 4th, 2016 at 05:52 AM. Reason: correct typo
DrunkZombie is offline   #1 Reply With Quote
DrunkZombie
Senior Member
 
Join Date: Aug 2011
Posts: 224

Old 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.
DrunkZombie is offline   #2 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:28 PM.


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