
So I'll say up front that this is a little complicated. Sorry! Second, very little of this is my own work. It's almost all cribbed from previous forum posters and YouTube tutorials. I wish I could remember who made all the bits, so I could thank them publicly here, but suffice it to say I'm standing on the shoulders of giants. Next, I have a Pro account. I think everything here just relies on basic macros that work for other subscribers too, though. Here's the setup: I've been a fan of using nested macros to handle spellcasting in D&D 5e, working with the standard character sheet. But it's labor=intensive to build it for each individual spellcasting PC and NPC. So ... I created a character, "S", short for 'Spells' to house the whole shebang. I use three types of macros to make this work, all of which I store on "S": 1) the spellbook hierarchy, named "Spells" This produces a bunch of buttons, one for each level of spell, which is whispered to the chat. There, you click on the button corresponding to the level of the spell you wish to cast. This macro is shown as a token action. All the other ones are not shown; they work behind the scenes and are only accessed by buttons shown in the chat. This macro is universal and never changes whenever it is used. Here's the text: Spells ?{whisper|yes,/w gm|no,} &{template:default} {{name=Spells}}{{Spell Save DC= [[8+@{selected|intelligence_mod}+@{selected|pb}]]}}{{Spell Attack Bonus=[[@{selected|intelligence_mod}+@{selected|pb}]]}}{{Spell Levels= [Cantrips](!&#13;&#37;{selected&#124;0&#125;)[Lvl:1](!&#13;&#37;{selected&#124;1&#125;)[Lvl:2](!&#13;&#37;{selected&#124;2&#125;)[Lvl:3](!&#13;&#37;{selected&#124;3&#125;)[Lvl:4](!&#13;&#37;{selected&#124;4&#125;)[Lvl:5](!&#13;&#37;{selected&#124;5&#125;)[Lvl:6](!&#13;&#37;{selected&#124;6&#125;)[Lvl:7](!&#13;&#37;{selected&#124;7&#125;)[Lvl:8](!&#13;&#37;{selected&#124;8&#125;)[Lvl:9](!&#13;&#37;{selected&#124;9&#125;)}} As you can see, the "Spells" is written with the "selected" tag -- for it to work, a token has to be selected. All of the related macros work this way -- and that's caused what looks to be the problem/issue, which I'll get to in a moment. But unless the forums have advice for a different route, it's the way I've been able to have a single macro work for every spellcasting PC and NPC without customizing anything. 2) The next level of the nested macros is the individual spell level list. These I've named for each related level: "0", "1", "2", etc. Here's an example of the cantrip level, "0": 0 ?{whisper|yes,/w gm|no,} &{template:default}{{name=Spells: 0}}{{Spells= [RayFrostWand](!&#13;&#37;{S&#124;RayfrostWand&#125;)[Firebolt](!&#13;&#37;{S&#124;Firebolt&#125;)[Message](!&#13;&#37;{S&#124;Message&#125;)[MinorIllusion](!&#13;&#37;{S&#124;MinorIllusion&#125;)[Thaumaturgy](!&#13;&#37;{S&#124;Thaumaturgy&#125;)}} As you can see, this level has to be customized to the character in question, by substituting the names of the individual spells that are in the list for the ones in the "standard" macro on the "S" sheet. (This particular one has a macro for a Wand of Frost, "RayFrostWand", but don't let that throw you: it's just a convenient way for me to include spell-like effects rather than cluttering up the screen with additional macro buttons for this sort of thing.) 3) The third level is the macro for each individual spell itself. I've built these to show an emote, then a gif, then the spell itself, the macro for which I found by using the up arrow in the chat window after casting the spell though a character sheet interface; if you'd prefer the simpler version, you could shave off the first two parts. It's a little inelegant at the moment, in that the emote doesn't automatically conform to the gender of the caster: something for me to work on fixing in the future. Each of these macros lives on the "S" character and only there. Here's an example, for Message: Message /em twirls a short piece of copper wire and whispers into his cupped hand.... &{template:desc} {{desc=[x](<a href="https://c.tenor.com/obQiLDg1s_YAAAAC/boss-baby-movie-its-a-secret.gif" rel="nofollow">https://c.tenor.com/obQiLDg1s_YAAAAC/boss-baby-movie-its-a-secret.gif</a>)}} @{selected|wtype}&{template:spell} {{level=transmutation cantrip}} {{name=Message}} {{castingtime=1 action}} {{range=120 feet}} {{target=A creature within range}} {{v=1}} {{s=1}} {{m=1}} {{material=A short piece of copper wire}} {{duration=1 round}} {{description=[ ](<a href="https://media.giphy.com/media/AMmFvTM9VH1qy7WljJ/giphy.gif" rel="nofollow">https://media.giphy.com/media/AMmFvTM9VH1qy7WljJ/giphy.gif</a>) You point your finger toward a creature within range and whisper a message. The target (and only the target) hears the message and can reply in a whisper that only you can hear. You can cast this spell through solid objects if you are familiar with the target and know it is beyond the barrier. Magical silence, 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood blocks the spell. The spell doesn’t have to follow a straight line and can travel freely around corners or through openings.}} {{athigherlevels=}} 0 {{innate=}} {{savedc=@{selected|spell_save_dc}}} 0 @{selected|charname_output} This type of macro works for all PCs and NPCs, whenever it is referenced in the nested macro structure. And now to the problem: for certain spells, which use attack or damage rolls, the spell library approach fails for some reason. Apparently, there's something in the macro that is unique to the caster. For example, here's the macro for Absorb Elements from a high level Diviner (named Urhan the Black): %{-NgQ5MRH03ujIY6QEAHU|repeating_attack_-NjTX2UQy1rT2djgas7a_attack} And the same macro for one of his bodyguards, Eldritch Knights (called God-Emperor's Chosen-Footman): %{-Nj6ivnDXSuWk9QIeJ2K|repeating_attack_-NjDeAvHkYGDZ1reauhZ_attack} For the "S" library, I've entered this macro by replacing the portion before the pipe character with "selected", so it looks like this: /em makes a warding gesture, blunting the attack! &{template:desc} {{desc=[x](<a href="https://media.giphy.com/media/bcJvDLgxVSPulkDYB4/giphy.gif" rel="nofollow">https://media.giphy.com/media/bcJvDLgxVSPulkDYB4/giphy.gif</a>)}} %{selected|repeating_attack_-NjTX2UQy1rT2djgas7a_attack} As you can see, the version I've used is the one that comes from the Urhan the Black character sheet. When I then trigger the spell using the nested macro approach, it casts without a problem if Urhan is the "selected" token. However, if I select one of the God-Emperor's Chosen-Footman and trigger the nested macro, only the emote and gif appear. The spell effect doesn't. Nor does an error message. So, finally, to my question: for this type of spell, is there a way to create a macro that can live on the "S" character sheet which will work properly no matter which token accesses it? Help!