Senior Member
Join Date: Jan 2012
Location: Los Angeles, CA
Posts: 281
|
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. |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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> 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. |
#2 |
|
|