• 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

Editor Help with another House Rule

JustinThomason

Well-known member
My group allows clerics to spontaneously cast domain spells. Basically, the domain spell slot is not memorized with the rest of the spell choices, and the PC can burn off that domain slot with either of the available domain spells on the fly.

Any thoughts of how to add an adjustment in the editor that would allow the PC to have both domain spells for each level selected without causing an error?

Thanks to all for the help.
 
If you can deal with RAW XML here you go:
Code:
  <thing id="pS2SecSpel" name="Spells Per Day, Secondary" description="Select this adjustment to add to the number of secondary spells (ie Domain spells) of a certain spell level a class can cast per day." compset="InPlay">
    <fieldval field="pCandExpr" value="component.Class | (component.BaseRace & SplLookup.?)"/>
    <usesource source="srcS2Adjus"/>
    <tag group="Adjustment" tag="SpellLevel" name="Also Spell Levels" abbrev="Also Spell Levels"/>
    <tag group="OthAdjCat" tag="Class" name="Class" abbrev="Class"/>
    <tag group="Helper" tag="CoreCampOK"/>
    <eval phase="Final" priority="10000"><![CDATA[
      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)
      ~ If nothing chosen, get out now
      doneif (field[pChosen].ischosen = 0)

      ~ Add extra spell levels appropriately
      var spelllevel as number
      spelllevel = field[pSpellLvl].value
      field[pChosen].chosen.field[cSecMax].arrayvalue[spelllevel] += field[pAdjust].value
      ]]></eval>
    </thing>
I will be adding the above in the next release of the Basic Pack.

If not then on the adjustment set:
1) Show Menu: "Also Spell Levels"
2) Custom Expression: "component.Class | (component.BaseRace & SplLookup.?)"
3) Other Adjustment Subcategory: "Class"
4) Eval Script: Final Phase/10000
Code:
      [B][COLOR="SeaGreen"]~ If we're not enabled, get out now[/COLOR][/B]
      doneif (field[pIsOn].value = 0)
      [B][COLOR="SeaGreen"]~ If nothing chosen, get out now[/COLOR][/B]
      doneif (field[pChosen].ischosen = 0)

      [B][COLOR="SeaGreen"]~ Add extra spell levels appropriately[/COLOR][/B]
      var spelllevel as number
      spelllevel = field[pSpellLvl].value
      [B][COLOR="SeaGreen"]~ Update the secondary spells max array[/COLOR][/B]
      field[pChosen].chosen.field[cSecMax].arrayvalue[spelllevel] += field[pAdjust].value
 
Back
Top