Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
JustinThomason
Senior Member
 
Join Date: Jan 2012
Location: Los Angeles, CA
Posts: 281

Old February 9th, 2015, 11:43 PM
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.
JustinThomason is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 10th, 2015, 06:09 PM
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 &amp; 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:
      ~ 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
      ~ Update the secondary spells max array
      field[pChosen].chosen.field[cSecMax].arrayvalue[spelllevel] += field[pAdjust].value

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #2 Reply With Quote
Reply


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 10:01 PM.


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