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

Macro Help for Pulling Spell List from Creature

February 01 (1 year ago)

Edited February 01 (1 year ago)

Hello,

Thanks anyone and everyone in advance if you have any tips/help.

I had mentioned to a friend was in need of a macro to list the spells from my creatures in Roll20 i setup, he found this long one (below) and while it works exactly as i needed it will only work either in "Test Macro" or as a "Token Action".  As a "Token Action" it shows the macro button on all of my creatures even those without spells, mostly a nuisance.

If i link the macro into a macro i add to the spell caster in the "Attributes & Abilities" it lists with a ton of errors.

So if anyone either has a better macro that pulls up the spells from a specific creature token, or sees something wrong with this.  It was found online so maybe there's already been corrections made to it.





[hide]

/w GM &{template:npcaction} {{rname=@{selected|character_name}}} {{description=[-- Cantrips --](" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: #7e2d40; font-weight: bold; display: block@{selected|repeating_spell-cantrip_$0_spellname|max};)[@{selected|repeating_spell-cantrip_$0_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$0_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-cantrip_$0_spellname|max};)[@{selected|repeating_spell-cantrip_$1_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$1_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-cantrip_$1_spellname|max};)[@{selected|repeating_spell-cantrip_$2_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$2_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-cantrip_$2_spellname|max};)[@{selected|repeating_spell-cantrip_$3_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$3_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-cantrip_$3_spellname|max};)[@{selected|repeating_spell-cantrip_$4_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$4_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-cantrip_$4_spellname|max};)[@{selected|repeating_spell-cantrip_$5_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$5_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-cantrip_$5_spellname|max};)[@{selected|repeating_spell-cantrip_$6_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$6_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-cantrip_$6_spellname|max};)[@{selected|repeating_spell-cantrip_$7_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$7_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-cantrip_$7_spellname|max};)[@{selected|repeating_spell-cantrip_$8_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$8_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-cantrip_$8_spellname|max};)[@{selected|repeating_spell-cantrip_$9_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$9_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-cantrip_$9_spellname|max};)[-- Level 1 Spells --](" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: #7e2d40; font-weight: bold; display: block@{selected|repeating_spell-1_$0_spellname|max};)[@{selected|repeating_spell-1_$0_spellname} ](~@{selected|character_name}|repeating_spell-1_$0_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-1_$0_spellname|max};)[@{selected|repeating_spell-1_$1_spellname} ](~@{selected|character_name}|repeating_spell-1_$1_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-1_$1_spellname|max};)[@{selected|repeating_spell-1_$2_spellname} ](~@{selected|character_name}|repeating_spell-1_$2_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-1_$2_spellname|max};)[@{selected|repeating_spell-1_$3_spellname} ](~@{selected|character_name}|repeating_spell-1_$3_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-1_$3_spellname|max};)[@{selected|repeating_spell-1_$4_spellname} ](~@{selected|character_name}|repeating_spell-1_$4_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-1_$4_spellname|max};)[@{selected|repeating_spell-1_$5_spellname} ](~@{selected|character_name}|repeating_spell-1_$5_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-1_$5_spellname|max};)[@{selected|repeating_spell-1_$6_spellname} ](~@{selected|character_name}|repeating_spell-1_$6_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-1_$6_spellname|max};)[@{selected|repeating_spell-1_$7_spellname} ](~@{selected|character_name}|repeating_spell-1_$7_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-1_$7_spellname|max};)[@{selected|repeating_spell-1_$8_spellname} ](~@{selected|character_name}|repeating_spell-1_$8_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-1_$8_spellname|max};)[@{selected|repeating_spell-1_$9_spellname} ](~@{selected|character_name}|repeating_spell-1_$9_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-1_$9_spellname|max};)[-- Level 2 Spells --](" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: #7e2d40; font-weight: bold; display: block@{selected|repeating_spell-2_$0_spellname|max};)[@{selected|repeating_spell-2_$0_spellname} ](~@{selected|character_name}|repeating_spell-2_$0_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-2_$0_spellname|max};)[@{selected|repeating_spell-2_$1_spellname} ](~@{selected|character_name}|repeating_spell-2_$1_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-2_$1_spellname|max};)[@{selected|repeating_spell-2_$2_spellname} ](~@{selected|character_name}|repeating_spell-2_$2_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-2_$2_spellname|max};)[@{selected|repeating_spell-2_$3_spellname} ](~@{selected|character_name}|repeating_spell-2_$3_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-2_$3_spellname|max};)[@{selected|repeating_spell-2_$4_spellname} ](~@{selected|character_name}|repeating_spell-2_$4_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-2_$4_spellname|max};)[@{selected|repeating_spell-2_$5_spellname} ](~@{selected|character_name}|repeating_spell-2_$5_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-2_$5_spellname|max};)[@{selected|repeating_spell-2_$6_spellname} ](~@{selected|character_name}|repeating_spell-2_$6_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-2_$6_spellname|max};)[@{selected|repeating_spell-2_$7_spellname} ](~@{selected|character_name}|repeating_spell-2_$7_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-2_$7_spellname|max};)[@{selected|repeating_spell-2_$8_spellname} ](~@{selected|character_name}|repeating_spell-2_$8_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-2_$8_spellname|max};)[@{selected|repeating_spell-2_$9_spellname} ](~@{selected|character_name}|repeating_spell-2_$9_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-2_$9_spellname|max};)[-- Level 3 Spells --](" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: #7e2d40; font-weight: bold; display: block@{selected|repeating_spell-3_$0_spellname|max};)[@{selected|repeating_spell-3_$0_spellname} ](~@{selected|character_name}|repeating_spell-3_$0_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-3_$0_spellname|max};)[@{selected|repeating_spell-3_$1_spellname} ](~@{selected|character_name}|repeating_spell-3_$1_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-3_$1_spellname|max};)[@{selected|repeating_spell-3_$2_spellname} ](~@{selected|character_name}|repeating_spell-3_$2_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-3_$2_spellname|max};)[@{selected|repeating_spell-3_$3_spellname} ](~@{selected|character_name}|repeating_spell-3_$3_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-3_$3_spellname|max};)[@{selected|repeating_spell-3_$4_spellname} ](~@{selected|character_name}|repeating_spell-3_$4_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-3_$4_spellname|max};)[@{selected|repeating_spell-3_$5_spellname} ](~@{selected|character_name}|repeating_spell-3_$5_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-3_$5_spellname|max};)[@{selected|repeating_spell-3_$6_spellname} ](~@{selected|character_name}|repeating_spell-3_$6_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-3_$6_spellname|max};)[@{selected|repeating_spell-3_$7_spellname} ](~@{selected|character_name}|repeating_spell-3_$7_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-3_$7_spellname|max};)[@{selected|repeating_spell-3_$8_spellname} ](~@{selected|character_name}|repeating_spell-3_$8_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-3_$8_spellname|max};)[@{selected|repeating_spell-3_$9_spellname} ](~@{selected|character_name}|repeating_spell-3_$9_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-3_$9_spellname|max};)[-- Level 4 Spells --](" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: #7e2d40; font-weight: bold; display: block@{selected|repeating_spell-4_$0_spellname|max};)[@{selected|repeating_spell-4_$0_spellname} ](~@{selected|character_name}|repeating_spell-4_$0_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-4_$0_spellname|max};)[@{selected|repeating_spell-4_$1_spellname} ](~@{selected|character_name}|repeating_spell-4_$1_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-4_$1_spellname|max};)[@{selected|repeating_spell-4_$2_spellname} ](~@{selected|character_name}|repeating_spell-4_$2_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-4_$2_spellname|max};)[@{selected|repeating_spell-4_$3_spellname} ](~@{selected|character_name}|repeating_spell-4_$3_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-4_$3_spellname|max};)[@{selected|repeating_spell-4_$4_spellname} ](~@{selected|character_name}|repeating_spell-4_$4_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-4_$4_spellname|max};)[@{selected|repeating_spell-4_$5_spellname} ](~@{selected|character_name}|repeating_spell-4_$5_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-4_$5_spellname|max};)[@{selected|repeating_spell-4_$6_spellname} ](~@{selected|character_name}|repeating_spell-4_$6_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-4_$6_spellname|max};)[@{selected|repeating_spell-4_$7_spellname} ](~@{selected|character_name}|repeating_spell-4_$7_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-4_$7_spellname|max};)[@{selected|repeating_spell-4_$8_spellname} ](~@{selected|character_name}|repeating_spell-4_$8_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-4_$8_spellname|max};)[@{selected|repeating_spell-4_$9_spellname} ](~@{selected|character_name}|repeating_spell-4_$9_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-4_$9_spellname|max};)[-- Level 5 Spells --](" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: #7e2d40; font-weight: bold; display: block@{selected|repeating_spell-5_$0_spellname|max};)[@{selected|repeating_spell-5_$0_spellname} ](~@{selected|character_name}|repeating_spell-5_$0_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-5_$0_spellname|max};)[@{selected|repeating_spell-5_$1_spellname} ](~@{selected|character_name}|repeating_spell-5_$1_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-5_$1_spellname|max};)[@{selected|repeating_spell-5_$2_spellname} ](~@{selected|character_name}|repeating_spell-5_$2_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-5_$2_spellname|max};)[@{selected|repeating_spell-5_$3_spellname} ](~@{selected|character_name}|repeating_spell-5_$3_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-5_$3_spellname|max};)[@{selected|repeating_spell-5_$4_spellname} ](~@{selected|character_name}|repeating_spell-5_$4_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-5_$4_spellname|max};)[@{selected|repeating_spell-5_$5_spellname} ](~@{selected|character_name}|repeating_spell-5_$5_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-5_$5_spellname|max};)[@{selected|repeating_spell-5_$6_spellname} ](~@{selected|character_name}|repeating_spell-5_$6_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-5_$6_spellname|max};)[@{selected|repeating_spell-5_$7_spellname} ](~@{selected|character_name}|repeating_spell-5_$7_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-5_$7_spellname|max};)[@{selected|repeating_spell-5_$8_spellname} ](~@{selected|character_name}|repeating_spell-5_$8_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-5_$8_spellname|max};)[@{selected|repeating_spell-5_$9_spellname} ](~@{selected|character_name}|repeating_spell-5_$9_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-5_$9_spellname|max};)[-- Level 6 Spells --](" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: #7e2d40; font-weight: bold; display: block@{selected|repeating_spell-6_$0_spellname|max};)[@{selected|repeating_spell-6_$0_spellname} ](~@{selected|character_name}|repeating_spell-6_$0_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-6_$0_spellname|max};)[@{selected|repeating_spell-6_$1_spellname} ](~@{selected|character_name}|repeating_spell-6_$1_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-6_$1_spellname|max};)[@{selected|repeating_spell-6_$2_spellname} ](~@{selected|character_name}|repeating_spell-6_$2_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-6_$2_spellname|max};)[@{selected|repeating_spell-6_$3_spellname} ](~@{selected|character_name}|repeating_spell-6_$3_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-6_$3_spellname|max};)[@{selected|repeating_spell-6_$4_spellname} ](~@{selected|character_name}|repeating_spell-6_$4_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-6_$4_spellname|max};)[@{selected|repeating_spell-6_$5_spellname} ](~@{selected|character_name}|repeating_spell-6_$5_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-6_$5_spellname|max};)[@{selected|repeating_spell-6_$6_spellname} ](~@{selected|character_name}|repeating_spell-6_$6_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-6_$6_spellname|max};)[@{selected|repeating_spell-6_$7_spellname} ](~@{selected|character_name}|repeating_spell-6_$7_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-6_$7_spellname|max};)[@{selected|repeating_spell-6_$8_spellname} ](~@{selected|character_name}|repeating_spell-6_$8_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-6_$8_spellname|max};)[@{selected|repeating_spell-6_$9_spellname} ](~@{selected|character_name}|repeating_spell-6_$9_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-6_$9_spellname|max};)[-- Level 7 Spells --](" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: #7e2d40; font-weight: bold; display: block@{selected|repeating_spell-7_$0_spellname|max};)[@{selected|repeating_spell-7_$0_spellname} ](~@{selected|character_name}|repeating_spell-7_$0_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-7_$0_spellname|max};)[@{selected|repeating_spell-7_$1_spellname} ](~@{selected|character_name}|repeating_spell-7_$1_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-7_$1_spellname|max};)[@{selected|repeating_spell-7_$2_spellname} ](~@{selected|character_name}|repeating_spell-7_$2_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-7_$2_spellname|max};)[@{selected|repeating_spell-7_$3_spellname} ](~@{selected|character_name}|repeating_spell-7_$3_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-7_$3_spellname|max};)[@{selected|repeating_spell-7_$4_spellname} ](~@{selected|character_name}|repeating_spell-7_$4_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-7_$4_spellname|max};)[@{selected|repeating_spell-7_$5_spellname} ](~@{selected|character_name}|repeating_spell-7_$5_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-7_$5_spellname|max};)[@{selected|repeating_spell-7_$6_spellname} ](~@{selected|character_name}|repeating_spell-7_$6_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-7_$6_spellname|max};)[@{selected|repeating_spell-7_$7_spellname} ](~@{selected|character_name}|repeating_spell-7_$7_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-7_$7_spellname|max};)[@{selected|repeating_spell-7_$8_spellname} ](~@{selected|character_name}|repeating_spell-7_$8_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-7_$8_spellname|max};)[@{selected|repeating_spell-7_$9_spellname} ](~@{selected|character_name}|repeating_spell-7_$9_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-7_$9_spellname|max};)[-- Level 8 Spells --](" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: #7e2d40; font-weight: bold; display: block@{selected|repeating_spell-8_$0_spellname|max};)[@{selected|repeating_spell-8_$0_spellname} ](~@{selected|character_name}|repeating_spell-8_$0_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-8_$0_spellname|max};)[@{selected|repeating_spell-8_$1_spellname} ](~@{selected|character_name}|repeating_spell-8_$1_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-8_$1_spellname|max};)[@{selected|repeating_spell-8_$2_spellname} ](~@{selected|character_name}|repeating_spell-8_$2_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-8_$2_spellname|max};)[@{selected|repeating_spell-8_$3_spellname} ](~@{selected|character_name}|repeating_spell-8_$3_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-8_$3_spellname|max};)[@{selected|repeating_spell-8_$4_spellname} ](~@{selected|character_name}|repeating_spell-8_$4_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-8_$4_spellname|max};)[@{selected|repeating_spell-8_$5_spellname} ](~@{selected|character_name}|repeating_spell-8_$5_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-8_$5_spellname|max};)[@{selected|repeating_spell-8_$6_spellname} ](~@{selected|character_name}|repeating_spell-8_$6_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-8_$6_spellname|max};)[@{selected|repeating_spell-8_$7_spellname} ](~@{selected|character_name}|repeating_spell-8_$7_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-8_$7_spellname|max};)[@{selected|repeating_spell-8_$8_spellname} ](~@{selected|character_name}|repeating_spell-8_$8_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-8_$8_spellname|max};)[@{selected|repeating_spell-8_$9_spellname} ](~@{selected|character_name}|repeating_spell-8_$9_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-8_$9_spellname|max};)[-- Level 9 Spells --](" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: #7e2d40; font-weight: bold; display: block@{selected|repeating_spell-9_$0_spellname|max};)[@{selected|repeating_spell-9_$0_spellname} ](~@{selected|character_name}|repeating_spell-9_$0_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-9_$0_spellname|max};)[@{selected|repeating_spell-9_$1_spellname} ](~@{selected|character_name}|repeating_spell-9_$1_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-9_$1_spellname|max};)[@{selected|repeating_spell-9_$2_spellname} ](~@{selected|character_name}|repeating_spell-9_$2_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-9_$2_spellname|max};)[@{selected|repeating_spell-9_$3_spellname} ](~@{selected|character_name}|repeating_spell-9_$3_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-9_$3_spellname|max};)[@{selected|repeating_spell-9_$4_spellname} ](~@{selected|character_name}|repeating_spell-9_$4_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-9_$4_spellname|max};)[@{selected|repeating_spell-9_$5_spellname} ](~@{selected|character_name}|repeating_spell-9_$5_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-9_$5_spellname|max};)[@{selected|repeating_spell-9_$6_spellname} ](~@{selected|character_name}|repeating_spell-9_$6_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-9_$6_spellname|max};)[@{selected|repeating_spell-9_$7_spellname} ](~@{selected|character_name}|repeating_spell-9_$7_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-9_$7_spellname|max};)[@{selected|repeating_spell-9_$8_spellname} ](~@{selected|character_name}|repeating_spell-9_$8_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-9_$8_spellname|max};)[@{selected|repeating_spell-9_$9_spellname} ](~@{selected|character_name}|repeating_spell-9_$9_spell" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; color: black;  display: block@{selected|repeating_spell-9_$9_spellname|max};)}} {{name=Spellbook}} &{noerror}

[/hide]

February 01 (1 year ago)

Edited February 01 (1 year ago)
Gauss
Forum Champion

Hi David,

I am the author (with help from Those Who Know More Than I Do) of that one, my guess is that it isn't set up correctly. 

You need to put it in Abilities, then you need to call it from another macro, set to suppress errors. 

Example: 
Ability macro #1 name: Huge Spell Macro
Ability body: the massive macro you had above. 

Ability macro (or Collection tab macro) #2 name: Spell List
Ability macro (or Collection tab macro) body: %{Macro Mule|Huge Spell Macro} &{noerror}

Then you fire "Spell List" as your macro button, and the &{noerror} suppresses the errors from the "Huge Spell Macro" macro. 
A quirk of Roll20 is that &{noerror} does not work on the first macro, but works on the second macro calling the first macro. 

Stick the Huge Spell Macro in a Macro Mule

Regarding it being on creatures that don't have spells, that depends on how you set it up. 
You can put macro #2 on any creature that has spells (in the Ability macro section). That limits it being a token action to only those creatures. 
Or you can put macro #2 in your collection tab, but that means every creature will have it. 

February 01 (1 year ago)

Hello,

I wanted to say thank you, i actually had things set up right but was linking (into my creature) the long macro, not the second (no error) one.

Just in case anyone else has this problem.

Thanks.


February 01 (1 year ago)
Gauss
Forum Champion

Just a note, if you want the original version let me know. I had several breakdowns of this for various purposes. 

Alternately, Jarren has a much better version of this kind of macro than mine. 

February 01 (1 year ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Jarren's solution is phenomenal.