Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Fenris447
Senior Member
 
Join Date: Sep 2017
Posts: 600

Old April 9th, 2019, 11:40 AM
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!
Fenris447 is offline   #1 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old April 9th, 2019, 07:17 PM
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!
Mergon is offline   #2 Reply With Quote
Fenris447
Senior Member
 
Join Date: Sep 2017
Posts: 600

Old April 10th, 2019, 10:43 AM
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.?]
I don't know exactly how that root.linkage thing works, but I think since this ability is bootstrapped to the subclass/class special, that command sets the focus back to the class itself. Since ours is a background feature, I don't think we can use this root linkage functionality, right?

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.
Fenris447 is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 10th, 2019, 01:25 PM
Quote:
Originally Posted by Fenris447 View Post
TL;DR How do we pull the tags of a predetermined spell, then push those tags to ClsAllowSp in every class on the hero?
In this case you don't need to PULL tags because you can just assign the tags directly to the Thing that will execute the script. Do this using the blue button named "Tags" in the editor.

Then to push those tags to all classes do a foreach loop:
Code:
foreach pick in hero from Class
  perform eachpick.pushtags[ClsAllowSp.?]
  nexteach
The above loops through each Class Helper Pick that is live on the character and pushes all the ClsAllowSp tags to them.

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   #4 Reply With Quote
Fenris447
Senior Member
 
Join Date: Sep 2017
Posts: 600

Old April 10th, 2019, 02:02 PM
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!
Fenris447 is offline   #5 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old April 10th, 2019, 07:47 PM
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!
Mergon is offline   #6 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:31 AM.


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