• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Patron spells as secondary class spells

frumple

Well-known member
I am trying to implement a class where they can select a witch's patron and gain the spells as secondary spells (like a cleric's domain).

Currently I have this:




What tags to I need to assign to the patron and/or spells boostrapped by the patron to allow the user to select them as secondary spells, e.g. the portal to select secondary spells comes up on the class helper.
 
Yeah. Either I used the wrong tag or just didn't work.

Looks like domains assign their spells via. a tag (ClsScAllSpl.X), but patrons directly bootstrap the spells in a Custom Ability.

Currently I am trying the following on the class helper
Code:
Post-Attr/14500

~ We want to have our patron spells not auto added to our spellbook, but treated like domain spells.
~ but each spell is only added at the already established level (2,4,6, etc.)

~ if we have not selected a patron, get out
~ we only can have one patron

doneif (hero.haschild[Ability,"abCategory.WitPatron"] <> 1)

~ set focus to our chosen patron
perform hero.findchild[Ability,"abCategory.WitPatron"].setfocus

~ source it to the cultist class
perform focus.assign[SpecSource.cHelpCul]

~ loop through the spells on the patron and give the patron the tag for each spell
~ to make them "domain-like"
 
foreach pick in hero from BaseSpell where "BonusSplAt.? & Spellbook.cHelpWit"
  if (eachpick.isroot <> 0) then
    if (eachpick.root.tagis[component.BaseCustSp] <> 0) then
      perform focus.assignstr["ClsScAllSp." & eachpick.idstring]
      endif
    endif
  nexteach

perform state.clearfocus
 
Last edited:
Back
Top