Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Spell Macro works as token Ability, but not global macro

Hi, I've got a spellbook macro that I use in 5e for my spellcasting NPCs. &{template:default} {{name=@{selected|character_name} Spellcasting}} {{Spell Save DC @{selected|spell_save_dc}= @{selected|spell_attack_bonus} to hit with spell attacks}} {{At Will=[@{repeating_spell-cantrip_$0_spellname}](~selected|repeating_spell-cantrip_$0_spell) }} {{1st (4)=[@{repeating_spell-1_$0_spellname}](~selected|repeating_spell-1_$0_spell)}} I've simplified it down to just a couple spells for sharing, but I fill this out entirely. The problem is, this macro only works when I create a Character Ability (in the Attributes & Abilities section) and not when I write it as a game macro. I'd want it to work in both places. I have a feeling it's due to the [text](~selected) syntax, but I'm not sure how to fix it.
The have to be named different. You can't have a global macro and a Character sheet macro with the same name it gets confused
1520928808
Finderski
Plus
Sheet Author
Compendium Curator
Also, you're missing "selected" in a few places like: {{At Will=[@{repeating_spell-cantrip_$0_spellname}] While you have it in the parentheses section, you'd still need it there, too.  There are other places with the same issue.
Ed S. said: The have to be named different. You can't have a global macro and a Character sheet macro with the same name it gets confused They are named differently. Still doesn't work Finderski said: Also, you're missing "selected" in a few places like: {{At Will=[@{repeating_spell-cantrip_$0_spellname}] While you have it in the parentheses section, you'd still need it there, too.  There are other places with the same issue. I think this was it, thank you! I didn't even notice those were missing.