Senior Member
Join Date: Sep 2017
Posts: 600
|
The Ravnica file is coming along, but there's one major nut that I have yet to crack. The backgrounds grant specific cantrips and spells to any caster (Locks included) with that background. These are not free spells; they're simply added to that caster's existing spell list.
How do I do it? I honestly have no idea where to start. I've thought something similar to the spells granted by Domains or Circles, or maybe something like racial spells (though those are usually granted as 1/long rest or similar). But how do we check to see if they're a caster, half caster, third caster, and/or pact magic? Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
#1 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
You might want to take a look at how the Death Domain cleric allows the adding of bonus cantrips. It is a bit kludgy but it is the only way that I, thanks ti ShadowChemosh, found to do something like you are asking.
Basically, it allows you to pick a cantrip from a list, then you have to go to where you add your spells and add it (them) there. Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#2 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
That pointed me in the right direction, thanks! We don't need to worry about making them select the spell, since all we need is for the spell to be available in their spell list if they want it. Think Warlock subclass style; it's not automatically chosen, just another option when selecting your spells.
So the Reaper ability in the Death domain has a drop-down to select from a list that it generates in the usrChosen1 field. The eval script then does this: Code:
~ Pull the spells Class Allow tag perform field[usrChosen1].chosen.pulltags[ClsAllowSp.?] ~ Set the Class Allow Tag onto the class perform root.linkage[table].pushtags[ClsAllowSp.?] What we need instead is to list out the spells (I'm using spMessage and spCommand for the purposes of testing), pull each of their tags, then push them to every class on the Hero. If someone can help me with the code to just do one spell, I'll be able to take it from there with all the rest of them. Code:
~pull the ClsAllowSp tags of spMessage ~add those ClsAllowSp tags to every class present on the Hero TL;DR How do we pull the tags of a predetermined spell, then push those tags to ClsAllowSp in every class on the hero? Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! Last edited by Fenris447; April 10th, 2019 at 10:48 AM. |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Then to push those tags to all classes do a foreach loop: Code:
foreach pick in hero from Class perform eachpick.pushtags[ClsAllowSp.?] nexteach 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. |
|
#4 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
Shadow, you're a god amongst mortals. You just implemented Guild Spells in the file for Ravnica.
Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
#5 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
Shadow is the one who helped me figure out the Death Domain scriprs in the first place.
Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#6 |
|
|