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?