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

Universal NPC Statblock Abilities and Spells Chat Menus for D&D 5e sheet — No API or Stylus required!

1617858489

Edited 1659127972
Update: 7/29/22 - I have an updated version here . There is a way to generate Universal NPC Skills & Spells chat menus, without using any Stylus extensions or API scripts. These are ready to use as is and will generate a chat menu with buttons, and only display abilities and spells that exist on the character sheet (up to 10 in each category), and won't display categories or spells levels that the character doesn't have. Caveat: to use these in a macro, you have to call them from a second macro because the &{noerror} doesn't work from a single macro call directly.  The simple macros are great and easy to use, but will output all abilities or spells on a character sheet.  The advanced macros take some work to set up (copying from here to a macro mule) but allow for more customization as well as creating more dynamic chat menus that can output individual categories. This is a VERY long read ahead, but I'll break down my post into several posts: Simple universal macros without any styling      These will generate a chat menu with  large pink buttons . Simple universal macros with styling       These will generate a chat menu with  small colored buttons . Simple universal Macro setup instructions     Instructions on how to set up the macro calls in the collections tab or on NPC character sheets. Advanced universal macro part 1: Macro Mule Setup     Instructions on cutting-and-pasting lots of pre-built code into a macro mule,  which allows for customization of appearance and allows you to call each section individually. Advanced universal macro part 2: Calling the Macros     Instructions on how to set up the macro calls in the collections tab or on NPC character sheets.     Instructions on how to customize the appearance. Universal macro for all NPC Prepared Spells, with no style modifications Universal macro for all NPC Prepared Spells, with style modifications     These will only display prepared spells; however the implementation is a little trickier and requires a separate 'macro mule' character. Universal Macro for Ability Checks and Saving Throws       Options for an Ability Check & Saving Throw chat menu with  large pink buttons, or small colored buttons.
1617858498

Edited 1631253017
Universal Macros without styling Universal macro for all NPC Actions, Bonus Actions, Traits, Reactions, Legendary Actions, and Mythic Actions, with no style modifications. ** UPDATED to include Bonus Actions and Mythic Actions ** /w gm &{template:npcaction} {{rname=@{selected|token_name}}} {{name=Abilities}} {{description=[-- Actions --](" style="display:none; display: block@{selected|repeating_npcaction_$0_name|max};)[@{selected|repeating_npcaction_$0_name} ](~@{selected|character_name}|repeating_npcaction_$0_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$0_name|max};)[@{selected|repeating_npcaction_$1_name} ](~@{selected|character_name}|repeating_npcaction_$1_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$1_name|max};)[@{selected|repeating_npcaction_$2_name} ](~@{selected|character_name}|repeating_npcaction_$2_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$2_name|max};)[@{selected|repeating_npcaction_$3_name} ](~@{selected|character_name}|repeating_npcaction_$3_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$3_name|max};)[@{selected|repeating_npcaction_$4_name} ](~@{selected|character_name}|repeating_npcaction_$4_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$4_name|max};)[@{selected|repeating_npcaction_$5_name} ](~@{selected|character_name}|repeating_npcaction_$5_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$5_name|max};)[@{selected|repeating_npcaction_$6_name} ](~@{selected|character_name}|repeating_npcaction_$6_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$6_name|max};)[@{selected|repeating_npcaction_$7_name} ](~@{selected|character_name}|repeating_npcaction_$7_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$7_name|max};)[@{selected|repeating_npcaction_$8_name} ](~@{selected|character_name}|repeating_npcaction_$8_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$8_name|max};)[@{selected|repeating_npcaction_$9_name} ](~@{selected|character_name}|repeating_npcaction_$9_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$9_name|max};)[-- Bonus Actions --](" style="display:none; display: block@{selected|repeating_npcbonusaction_$0_name|max};)[@{selected|repeating_npcbonusaction_$0_name} ](~@{selected|character_name}|repeating_npcbonusaction_$0_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$0_name|max};)[@{selected|repeating_npcbonusaction_$1_name} ](~@{selected|character_name}|repeating_npcbonusaction_$1_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$1_name|max};)[@{selected|repeating_npcbonusaction_$2_name} ](~@{selected|character_name}|repeating_npcbonusaction_$2_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$2_name|max};)[@{selected|repeating_npcbonusaction_$3_name} ](~@{selected|character_name}|repeating_npcbonusaction_$3_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$3_name|max};)[@{selected|repeating_npcbonusaction_$4_name} ](~@{selected|character_name}|repeating_npcbonusaction_$4_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$4_name|max};)[@{selected|repeating_npcbonusaction_$5_name} ](~@{selected|character_name}|repeating_npcbonusaction_$5_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$5_name|max};)[@{selected|repeating_npcbonusaction_$6_name} ](~@{selected|character_name}|repeating_npcbonusaction_$6_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$6_name|max};)[@{selected|repeating_npcbonusaction_$7_name} ](~@{selected|character_name}|repeating_npcbonusaction_$7_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$7_name|max};)[@{selected|repeating_npcbonusaction_$8_name} ](~@{selected|character_name}|repeating_npcbonusaction_$8_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$8_name|max};)[@{selected|repeating_npcbonusaction_$9_name} ](~@{selected|character_name}|repeating_npcbonusaction_$9_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$9_name|max};)[-- Traits --](" style="display:none; display: block@{selected|repeating_npctrait_$0_name|max};)[@{selected|repeating_npctrait_$0_name} ](~@{selected|character_name}|repeating_npctrait_$0_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$0_name|max};)[@{selected|repeating_npctrait_$1_name} ](~@{selected|character_name}|repeating_npctrait_$1_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$1_name|max};)[@{selected|repeating_npctrait_$2_name} ](~@{selected|character_name}|repeating_npctrait_$2_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$2_name|max};)[@{selected|repeating_npctrait_$3_name} ](~@{selected|character_name}|repeating_npctrait_$3_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$3_name|max};)[@{selected|repeating_npctrait_$4_name} ](~@{selected|character_name}|repeating_npctrait_$4_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$4_name|max};)[@{selected|repeating_npctrait_$5_name} ](~@{selected|character_name}|repeating_npctrait_$5_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$5_name|max};)[@{selected|repeating_npctrait_$6_name} ](~@{selected|character_name}|repeating_npctrait_$6_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$6_name|max};)[@{selected|repeating_npctrait_$7_name} ](~@{selected|character_name}|repeating_npctrait_$7_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$7_name|max};)[@{selected|repeating_npctrait_$8_name} ](~@{selected|character_name}|repeating_npctrait_$8_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$8_name|max};)[@{selected|repeating_npctrait_$9_name} ](~@{selected|character_name}|repeating_npctrait_$9_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$9_name|max};)[-- Reactions --](" style="display:none; display: block@{selected|repeating_npcreaction_$0_name|max};)[@{selected|repeating_npcreaction_$0_name} ](~@{selected|character_name}|repeating_npcreaction_$0_npc_roll_output" style="display:none; display: block@{selected|repeating_npcreaction_$0_name|max};)[@{selected|repeating_npcreaction_$1_name} ](~@{selected|character_name}|repeating_npcreaction_$1_npc_roll_output" style="display:none; display: block@{selected|repeating_npcreaction_$1_name|max};)[@{selected|repeating_npcreaction_$2_name} ](~@{selected|character_name}|repeating_npcreaction_$2_npc_roll_output" style="display:none; display: block@{selected|repeating_npcreaction_$2_name|max};)[@{selected|repeating_npcreaction_$3_name} ](~@{selected|character_name}|repeating_npcreaction_$3_npc_roll_output" style="display:none; display: block@{selected|repeating_npcreaction_$3_name|max};)[@{selected|repeating_npcreaction_$4_name} ](~@{selected|character_name}|repeating_npcreaction_$4_npc_roll_output" style="display:none; display: block@{selected|repeating_npcreaction_$4_name|max};)[@{selected|repeating_npcreaction_$5_name} ](~@{selected|character_name}|repeating_npcreaction_$5_npc_roll_output" style="display:none; display: block@{selected|repeating_npcreaction_$5_name|max};)[@{selected|repeating_npcreaction_$6_name} ](~@{selected|character_name}|repeating_npcreaction_$6_npc_roll_output" style="display:none; display: block@{selected|repeating_npcreaction_$6_name|max};)[@{selected|repeating_npcreaction_$7_name} ](~@{selected|character_name}|repeating_npcreaction_$7_npc_roll_output" style="display:none; display: block@{selected|repeating_npcreaction_$7_name|max};)[@{selected|repeating_npcreaction_$8_name} ](~@{selected|character_name}|repeating_npcreaction_$8_npc_roll_output" style="display:none; display: block@{selected|repeating_npcreaction_$8_name|max};)[@{selected|repeating_npcreaction_$9_name} ](~@{selected|character_name}|repeating_npcreaction_$9_npc_roll_output" style="display:none; display: block@{selected|repeating_npcreaction_$9_name|max};)[-- Legendary Actions --](" style="display:none; display: block@{selected|repeating_npcaction-l_$0_name|max};)[@{selected|repeating_npcaction-l_$0_name} ](~@{selected|character_name}|repeating_npcaction-l_$0_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$0_name|max};)[@{selected|repeating_npcaction-l_$1_name} ](~@{selected|character_name}|repeating_npcaction-l_$1_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$1_name|max};)[@{selected|repeating_npcaction-l_$2_name} ](~@{selected|character_name}|repeating_npcaction-l_$2_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$2_name|max};)[@{selected|repeating_npcaction-l_$3_name} ](~@{selected|character_name}|repeating_npcaction-l_$3_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$3_name|max};)[@{selected|repeating_npcaction-l_$4_name} ](~@{selected|character_name}|repeating_npcaction-l_$4_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$4_name|max};)[@{selected|repeating_npcaction-l_$5_name} ](~@{selected|character_name}|repeating_npcaction-l_$5_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$5_name|max};)[@{selected|repeating_npcaction-l_$6_name} ](~@{selected|character_name}|repeating_npcaction-l_$6_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$6_name|max};)[@{selected|repeating_npcaction-l_$7_name} ](~@{selected|character_name}|repeating_npcaction-l_$7_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$7_name|max};)[@{selected|repeating_npcaction-l_$8_name} ](~@{selected|character_name}|repeating_npcaction-l_$8_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$8_name|max};)[@{selected|repeating_npcaction-l_$9_name} ](~@{selected|character_name}|repeating_npcaction-l_$9_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$9_name|max};)[-- Mythic Actions --](" style="display:none; display: block@{selected|repeating_npcaction-m_$0_name|max};)[@{selected|repeating_npcaction-m_$0_name} ](~@{selected|character_name}|repeating_npcaction-m_$0_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$0_name|max};)[@{selected|repeating_npcaction-m_$1_name} ](~@{selected|character_name}|repeating_npcaction-m_$1_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$1_name|max};)[@{selected|repeating_npcaction-m_$2_name} ](~@{selected|character_name}|repeating_npcaction-m_$2_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$2_name|max};)[@{selected|repeating_npcaction-m_$3_name} ](~@{selected|character_name}|repeating_npcaction-m_$3_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$3_name|max};)[@{selected|repeating_npcaction-m_$4_name} ](~@{selected|character_name}|repeating_npcaction-m_$4_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$4_name|max};)[@{selected|repeating_npcaction-m_$5_name} ](~@{selected|character_name}|repeating_npcaction-m_$5_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$5_name|max};)[@{selected|repeating_npcaction-m_$6_name} ](~@{selected|character_name}|repeating_npcaction-m_$6_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$6_name|max};)[@{selected|repeating_npcaction-m_$7_name} ](~@{selected|character_name}|repeating_npcaction-m_$7_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$7_name|max};)[@{selected|repeating_npcaction-m_$8_name} ](~@{selected|character_name}|repeating_npcaction-m_$8_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$8_name|max};)[@{selected|repeating_npcaction-m_$9_name} ](~@{selected|character_name}|repeating_npcaction-m_$9_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$9_name|max};)}}&{noerror} Universal macro for all  NPC Spells , with no style modifications.  /w gm &{template:npcaction} {{rname=@{selected|character_name}}} {{description=[-- Cantrips --](" style="display:none; display: block@{selected|repeating_spell-cantrip_$0_spellname|max};)[@{selected|repeating_spell-cantrip_$0_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$0_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$0_spellname|max};)[@{selected|repeating_spell-cantrip_$1_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$1_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$1_spellname|max};)[@{selected|repeating_spell-cantrip_$2_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$2_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$2_spellname|max};)[@{selected|repeating_spell-cantrip_$3_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$3_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$3_spellname|max};)[@{selected|repeating_spell-cantrip_$4_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$4_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$4_spellname|max};)[@{selected|repeating_spell-cantrip_$5_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$5_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$5_spellname|max};)[@{selected|repeating_spell-cantrip_$6_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$6_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$6_spellname|max};)[@{selected|repeating_spell-cantrip_$7_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$7_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$7_spellname|max};)[@{selected|repeating_spell-cantrip_$8_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$8_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$8_spellname|max};)[@{selected|repeating_spell-cantrip_$9_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$9_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$9_spellname|max};)[-- Level 1 Spells --](" style="display:none; display: block@{selected|repeating_spell-1_$0_spellname|max};)[@{selected|repeating_spell-1_$0_spellname} ](~@{selected|character_name}|repeating_spell-1_$0_spell" style="display:none; display: block@{selected|repeating_spell-1_$0_spellname|max};)[@{selected|repeating_spell-1_$1_spellname} ](~@{selected|character_name}|repeating_spell-1_$1_spell" style="display:none; display: block@{selected|repeating_spell-1_$1_spellname|max};)[@{selected|repeating_spell-1_$2_spellname} ](~@{selected|character_name}|repeating_spell-1_$2_spell" style="display:none; display: block@{selected|repeating_spell-1_$2_spellname|max};)[@{selected|repeating_spell-1_$3_spellname} ](~@{selected|character_name}|repeating_spell-1_$3_spell" style="display:none; display: block@{selected|repeating_spell-1_$3_spellname|max};)[@{selected|repeating_spell-1_$4_spellname} ](~@{selected|character_name}|repeating_spell-1_$4_spell" style="display:none; display: block@{selected|repeating_spell-1_$4_spellname|max};)[@{selected|repeating_spell-1_$5_spellname} ](~@{selected|character_name}|repeating_spell-1_$5_spell" style="display:none; display: block@{selected|repeating_spell-1_$5_spellname|max};)[@{selected|repeating_spell-1_$6_spellname} ](~@{selected|character_name}|repeating_spell-1_$6_spell" style="display:none; display: block@{selected|repeating_spell-1_$6_spellname|max};)[@{selected|repeating_spell-1_$7_spellname} ](~@{selected|character_name}|repeating_spell-1_$7_spell" style="display:none; display: block@{selected|repeating_spell-1_$7_spellname|max};)[@{selected|repeating_spell-1_$8_spellname} ](~@{selected|character_name}|repeating_spell-1_$8_spell" style="display:none; display: block@{selected|repeating_spell-1_$8_spellname|max};)[@{selected|repeating_spell-1_$9_spellname} ](~@{selected|character_name}|repeating_spell-1_$9_spell" style="display:none; display: block@{selected|repeating_spell-1_$9_spellname|max};)[-- Level 2 Spells --](" style="display:none; display: block@{selected|repeating_spell-2_$0_spellname|max};)[@{selected|repeating_spell-2_$0_spellname} ](~@{selected|character_name}|repeating_spell-2_$0_spell" style="display:none; display: block@{selected|repeating_spell-2_$0_spellname|max};)[@{selected|repeating_spell-2_$1_spellname} ](~@{selected|character_name}|repeating_spell-2_$1_spell" style="display:none; display: block@{selected|repeating_spell-2_$1_spellname|max};)[@{selected|repeating_spell-2_$2_spellname} ](~@{selected|character_name}|repeating_spell-2_$2_spell" style="display:none; display: block@{selected|repeating_spell-2_$2_spellname|max};)[@{selected|repeating_spell-2_$3_spellname} ](~@{selected|character_name}|repeating_spell-2_$3_spell" style="display:none; display: block@{selected|repeating_spell-2_$3_spellname|max};)[@{selected|repeating_spell-2_$4_spellname} ](~@{selected|character_name}|repeating_spell-2_$4_spell" style="display:none; display: block@{selected|repeating_spell-2_$4_spellname|max};)[@{selected|repeating_spell-2_$5_spellname} ](~@{selected|character_name}|repeating_spell-2_$5_spell" style="display:none; display: block@{selected|repeating_spell-2_$5_spellname|max};)[@{selected|repeating_spell-2_$6_spellname} ](~@{selected|character_name}|repeating_spell-2_$6_spell" style="display:none; display: block@{selected|repeating_spell-2_$6_spellname|max};)[@{selected|repeating_spell-2_$7_spellname} ](~@{selected|character_name}|repeating_spell-2_$7_spell" style="display:none; display: block@{selected|repeating_spell-2_$7_spellname|max};)[@{selected|repeating_spell-2_$8_spellname} ](~@{selected|character_name}|repeating_spell-2_$8_spell" style="display:none; display: block@{selected|repeating_spell-2_$8_spellname|max};)[@{selected|repeating_spell-2_$9_spellname} ](~@{selected|character_name}|repeating_spell-2_$9_spell" style="display:none; display: block@{selected|repeating_spell-2_$9_spellname|max};)[-- Level 3 Spells --](" style="display:none; display: block@{selected|repeating_spell-3_$0_spellname|max};)[@{selected|repeating_spell-3_$0_spellname} ](~@{selected|character_name}|repeating_spell-3_$0_spell" style="display:none; display: block@{selected|repeating_spell-3_$0_spellname|max};)[@{selected|repeating_spell-3_$1_spellname} ](~@{selected|character_name}|repeating_spell-3_$1_spell" style="display:none; display: block@{selected|repeating_spell-3_$1_spellname|max};)[@{selected|repeating_spell-3_$2_spellname} ](~@{selected|character_name}|repeating_spell-3_$2_spell" style="display:none; display: block@{selected|repeating_spell-3_$2_spellname|max};)[@{selected|repeating_spell-3_$3_spellname} ](~@{selected|character_name}|repeating_spell-3_$3_spell" style="display:none; display: block@{selected|repeating_spell-3_$3_spellname|max};)[@{selected|repeating_spell-3_$4_spellname} ](~@{selected|character_name}|repeating_spell-3_$4_spell" style="display:none; display: block@{selected|repeating_spell-3_$4_spellname|max};)[@{selected|repeating_spell-3_$5_spellname} ](~@{selected|character_name}|repeating_spell-3_$5_spell" style="display:none; display: block@{selected|repeating_spell-3_$5_spellname|max};)[@{selected|repeating_spell-3_$6_spellname} ](~@{selected|character_name}|repeating_spell-3_$6_spell" style="display:none; display: block@{selected|repeating_spell-3_$6_spellname|max};)[@{selected|repeating_spell-3_$7_spellname} ](~@{selected|character_name}|repeating_spell-3_$7_spell" style="display:none; display: block@{selected|repeating_spell-3_$7_spellname|max};)[@{selected|repeating_spell-3_$8_spellname} ](~@{selected|character_name}|repeating_spell-3_$8_spell" style="display:none; display: block@{selected|repeating_spell-3_$8_spellname|max};)[@{selected|repeating_spell-3_$9_spellname} ](~@{selected|character_name}|repeating_spell-3_$9_spell" style="display:none; display: block@{selected|repeating_spell-3_$9_spellname|max};)[-- Level 4 Spells --](" style="display:none; display: block@{selected|repeating_spell-4_$0_spellname|max};)[@{selected|repeating_spell-4_$0_spellname} ](~@{selected|character_name}|repeating_spell-4_$0_spell" style="display:none; display: block@{selected|repeating_spell-4_$0_spellname|max};)[@{selected|repeating_spell-4_$1_spellname} ](~@{selected|character_name}|repeating_spell-4_$1_spell" style="display:none; display: block@{selected|repeating_spell-4_$1_spellname|max};)[@{selected|repeating_spell-4_$2_spellname} ](~@{selected|character_name}|repeating_spell-4_$2_spell" style="display:none; display: block@{selected|repeating_spell-4_$2_spellname|max};)[@{selected|repeating_spell-4_$3_spellname} ](~@{selected|character_name}|repeating_spell-4_$3_spell" style="display:none; display: block@{selected|repeating_spell-4_$3_spellname|max};)[@{selected|repeating_spell-4_$4_spellname} ](~@{selected|character_name}|repeating_spell-4_$4_spell" style="display:none; display: block@{selected|repeating_spell-4_$4_spellname|max};)[@{selected|repeating_spell-4_$5_spellname} ](~@{selected|character_name}|repeating_spell-4_$5_spell" style="display:none; display: block@{selected|repeating_spell-4_$5_spellname|max};)[@{selected|repeating_spell-4_$6_spellname} ](~@{selected|character_name}|repeating_spell-4_$6_spell" style="display:none; display: block@{selected|repeating_spell-4_$6_spellname|max};)[@{selected|repeating_spell-4_$7_spellname} ](~@{selected|character_name}|repeating_spell-4_$7_spell" style="display:none; display: block@{selected|repeating_spell-4_$7_spellname|max};)[@{selected|repeating_spell-4_$8_spellname} ](~@{selected|character_name}|repeating_spell-4_$8_spell" style="display:none; display: block@{selected|repeating_spell-4_$8_spellname|max};)[@{selected|repeating_spell-4_$9_spellname} ](~@{selected|character_name}|repeating_spell-4_$9_spell" style="display:none; display: block@{selected|repeating_spell-4_$9_spellname|max};)[-- Level 5 Spells --](" style="display:none; display: block@{selected|repeating_spell-5_$0_spellname|max};)[@{selected|repeating_spell-5_$0_spellname} ](~@{selected|character_name}|repeating_spell-5_$0_spell" style="display:none; display: block@{selected|repeating_spell-5_$0_spellname|max};)[@{selected|repeating_spell-5_$1_spellname} ](~@{selected|character_name}|repeating_spell-5_$1_spell" style="display:none; display: block@{selected|repeating_spell-5_$1_spellname|max};)[@{selected|repeating_spell-5_$2_spellname} ](~@{selected|character_name}|repeating_spell-5_$2_spell" style="display:none; display: block@{selected|repeating_spell-5_$2_spellname|max};)[@{selected|repeating_spell-5_$3_spellname} ](~@{selected|character_name}|repeating_spell-5_$3_spell" style="display:none; display: block@{selected|repeating_spell-5_$3_spellname|max};)[@{selected|repeating_spell-5_$4_spellname} ](~@{selected|character_name}|repeating_spell-5_$4_spell" style="display:none; display: block@{selected|repeating_spell-5_$4_spellname|max};)[@{selected|repeating_spell-5_$5_spellname} ](~@{selected|character_name}|repeating_spell-5_$5_spell" style="display:none; display: block@{selected|repeating_spell-5_$5_spellname|max};)[@{selected|repeating_spell-5_$6_spellname} ](~@{selected|character_name}|repeating_spell-5_$6_spell" style="display:none; display: block@{selected|repeating_spell-5_$6_spellname|max};)[@{selected|repeating_spell-5_$7_spellname} ](~@{selected|character_name}|repeating_spell-5_$7_spell" style="display:none; display: block@{selected|repeating_spell-5_$7_spellname|max};)[@{selected|repeating_spell-5_$8_spellname} ](~@{selected|character_name}|repeating_spell-5_$8_spell" style="display:none; display: block@{selected|repeating_spell-5_$8_spellname|max};)[@{selected|repeating_spell-5_$9_spellname} ](~@{selected|character_name}|repeating_spell-5_$9_spell" style="display:none; display: block@{selected|repeating_spell-5_$9_spellname|max};)[-- Level 6 Spells --](" style="display:none; display: block@{selected|repeating_spell-6_$0_spellname|max};)[@{selected|repeating_spell-6_$0_spellname} ](~@{selected|character_name}|repeating_spell-6_$0_spell" style="display:none; display: block@{selected|repeating_spell-6_$0_spellname|max};)[@{selected|repeating_spell-6_$1_spellname} ](~@{selected|character_name}|repeating_spell-6_$1_spell" style="display:none; display: block@{selected|repeating_spell-6_$1_spellname|max};)[@{selected|repeating_spell-6_$2_spellname} ](~@{selected|character_name}|repeating_spell-6_$2_spell" style="display:none; display: block@{selected|repeating_spell-6_$2_spellname|max};)[@{selected|repeating_spell-6_$3_spellname} ](~@{selected|character_name}|repeating_spell-6_$3_spell" style="display:none; display: block@{selected|repeating_spell-6_$3_spellname|max};)[@{selected|repeating_spell-6_$4_spellname} ](~@{selected|character_name}|repeating_spell-6_$4_spell" style="display:none; display: block@{selected|repeating_spell-6_$4_spellname|max};)[@{selected|repeating_spell-6_$5_spellname} ](~@{selected|character_name}|repeating_spell-6_$5_spell" style="display:none; display: block@{selected|repeating_spell-6_$5_spellname|max};)[@{selected|repeating_spell-6_$6_spellname} ](~@{selected|character_name}|repeating_spell-6_$6_spell" style="display:none; display: block@{selected|repeating_spell-6_$6_spellname|max};)[@{selected|repeating_spell-6_$7_spellname} ](~@{selected|character_name}|repeating_spell-6_$7_spell" style="display:none; display: block@{selected|repeating_spell-6_$7_spellname|max};)[@{selected|repeating_spell-6_$8_spellname} ](~@{selected|character_name}|repeating_spell-6_$8_spell" style="display:none; display: block@{selected|repeating_spell-6_$8_spellname|max};)[@{selected|repeating_spell-6_$9_spellname} ](~@{selected|character_name}|repeating_spell-6_$9_spell" style="display:none; display: block@{selected|repeating_spell-6_$9_spellname|max};)[-- Level 7 Spells --](" style="display:none; display: block@{selected|repeating_spell-7_$0_spellname|max};)[@{selected|repeating_spell-7_$0_spellname} ](~@{selected|character_name}|repeating_spell-7_$0_spell" style="display:none; display: block@{selected|repeating_spell-7_$0_spellname|max};)[@{selected|repeating_spell-7_$1_spellname} ](~@{selected|character_name}|repeating_spell-7_$1_spell" style="display:none; display: block@{selected|repeating_spell-7_$1_spellname|max};)[@{selected|repeating_spell-7_$2_spellname} ](~@{selected|character_name}|repeating_spell-7_$2_spell" style="display:none; display: block@{selected|repeating_spell-7_$2_spellname|max};)[@{selected|repeating_spell-7_$3_spellname} ](~@{selected|character_name}|repeating_spell-7_$3_spell" style="display:none; display: block@{selected|repeating_spell-7_$3_spellname|max};)[@{selected|repeating_spell-7_$4_spellname} ](~@{selected|character_name}|repeating_spell-7_$4_spell" style="display:none; display: block@{selected|repeating_spell-7_$4_spellname|max};)[@{selected|repeating_spell-7_$5_spellname} ](~@{selected|character_name}|repeating_spell-7_$5_spell" style="display:none; display: block@{selected|repeating_spell-7_$5_spellname|max};)[@{selected|repeating_spell-7_$6_spellname} ](~@{selected|character_name}|repeating_spell-7_$6_spell" style="display:none; display: block@{selected|repeating_spell-7_$6_spellname|max};)[@{selected|repeating_spell-7_$7_spellname} ](~@{selected|character_name}|repeating_spell-7_$7_spell" style="display:none; display: block@{selected|repeating_spell-7_$7_spellname|max};)[@{selected|repeating_spell-7_$8_spellname} ](~@{selected|character_name}|repeating_spell-7_$8_spell" style="display:none; display: block@{selected|repeating_spell-7_$8_spellname|max};)[@{selected|repeating_spell-7_$9_spellname} ](~@{selected|character_name}|repeating_spell-7_$9_spell" style="display:none; display: block@{selected|repeating_spell-7_$9_spellname|max};)[-- Level 8 Spells --](" style="display:none; display: block@{selected|repeating_spell-8_$0_spellname|max};)[@{selected|repeating_spell-8_$0_spellname} ](~@{selected|character_name}|repeating_spell-8_$0_spell" style="display:none; display: block@{selected|repeating_spell-8_$0_spellname|max};)[@{selected|repeating_spell-8_$1_spellname} ](~@{selected|character_name}|repeating_spell-8_$1_spell" style="display:none; display: block@{selected|repeating_spell-8_$1_spellname|max};)[@{selected|repeating_spell-8_$2_spellname} ](~@{selected|character_name}|repeating_spell-8_$2_spell" style="display:none; display: block@{selected|repeating_spell-8_$2_spellname|max};)[@{selected|repeating_spell-8_$3_spellname} ](~@{selected|character_name}|repeating_spell-8_$3_spell" style="display:none; display: block@{selected|repeating_spell-8_$3_spellname|max};)[@{selected|repeating_spell-8_$4_spellname} ](~@{selected|character_name}|repeating_spell-8_$4_spell" style="display:none; display: block@{selected|repeating_spell-8_$4_spellname|max};)[@{selected|repeating_spell-8_$5_spellname} ](~@{selected|character_name}|repeating_spell-8_$5_spell" style="display:none; display: block@{selected|repeating_spell-8_$5_spellname|max};)[@{selected|repeating_spell-8_$6_spellname} ](~@{selected|character_name}|repeating_spell-8_$6_spell" style="display:none; display: block@{selected|repeating_spell-8_$6_spellname|max};)[@{selected|repeating_spell-8_$7_spellname} ](~@{selected|character_name}|repeating_spell-8_$7_spell" style="display:none; display: block@{selected|repeating_spell-8_$7_spellname|max};)[@{selected|repeating_spell-8_$8_spellname} ](~@{selected|character_name}|repeating_spell-8_$8_spell" style="display:none; display: block@{selected|repeating_spell-8_$8_spellname|max};)[@{selected|repeating_spell-8_$9_spellname} ](~@{selected|character_name}|repeating_spell-8_$9_spell" style="display:none; display: block@{selected|repeating_spell-8_$9_spellname|max};)[-- Level 9 Spells --](" style="display:none; display: block@{selected|repeating_spell-9_$0_spellname|max};)[@{selected|repeating_spell-9_$0_spellname} ](~@{selected|character_name}|repeating_spell-9_$0_spell" style="display:none; display: block@{selected|repeating_spell-9_$0_spellname|max};)[@{selected|repeating_spell-9_$1_spellname} ](~@{selected|character_name}|repeating_spell-9_$1_spell" style="display:none; display: block@{selected|repeating_spell-9_$1_spellname|max};)[@{selected|repeating_spell-9_$2_spellname} ](~@{selected|character_name}|repeating_spell-9_$2_spell" style="display:none; display: block@{selected|repeating_spell-9_$2_spellname|max};)[@{selected|repeating_spell-9_$3_spellname} ](~@{selected|character_name}|repeating_spell-9_$3_spell" style="display:none; display: block@{selected|repeating_spell-9_$3_spellname|max};)[@{selected|repeating_spell-9_$4_spellname} ](~@{selected|character_name}|repeating_spell-9_$4_spell" style="display:none; display: block@{selected|repeating_spell-9_$4_spellname|max};)[@{selected|repeating_spell-9_$5_spellname} ](~@{selected|character_name}|repeating_spell-9_$5_spell" style="display:none; display: block@{selected|repeating_spell-9_$5_spellname|max};)[@{selected|repeating_spell-9_$6_spellname} ](~@{selected|character_name}|repeating_spell-9_$6_spell" style="display:none; display: block@{selected|repeating_spell-9_$6_spellname|max};)[@{selected|repeating_spell-9_$7_spellname} ](~@{selected|character_name}|repeating_spell-9_$7_spell" style="display:none; display: block@{selected|repeating_spell-9_$7_spellname|max};)[@{selected|repeating_spell-9_$8_spellname} ](~@{selected|character_name}|repeating_spell-9_$8_spell" style="display:none; display: block@{selected|repeating_spell-9_$8_spellname|max};)[@{selected|repeating_spell-9_$9_spellname} ](~@{selected|character_name}|repeating_spell-9_$9_spell" style="display:none; display: block@{selected|repeating_spell-9_$9_spellname|max};)}} {{name=Spellbook}} &{noerror}
1617858516

Edited 1631252994
Universal macros  with styling Universal macro for all NPC Actions, Bonus Actions, Traits, Reactions, Legendary Actions, and Mythic Actions, with style modifications. ** UPDATED to include Bonus Actions and Mythic Actions ** /w gm &{template:npcaction} {{rname=@{selected|token_name}}} {{name=Abilities}} {{description=[-- Actions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcaction_$0_name|max};)[@{selected|repeating_npcaction_$0_name} ](~@{selected|character_name}|repeating_npcaction_$0_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$0_name|max};)[@{selected|repeating_npcaction_$1_name} ](~@{selected|character_name}|repeating_npcaction_$1_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$1_name|max};)[@{selected|repeating_npcaction_$2_name} ](~@{selected|character_name}|repeating_npcaction_$2_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$2_name|max};)[@{selected|repeating_npcaction_$3_name} ](~@{selected|character_name}|repeating_npcaction_$3_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$3_name|max};)[@{selected|repeating_npcaction_$4_name} ](~@{selected|character_name}|repeating_npcaction_$4_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$4_name|max};)[@{selected|repeating_npcaction_$5_name} ](~@{selected|character_name}|repeating_npcaction_$5_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$5_name|max};)[@{selected|repeating_npcaction_$6_name} ](~@{selected|character_name}|repeating_npcaction_$6_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$6_name|max};)[@{selected|repeating_npcaction_$7_name} ](~@{selected|character_name}|repeating_npcaction_$7_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$7_name|max};)[@{selected|repeating_npcaction_$8_name} ](~@{selected|character_name}|repeating_npcaction_$8_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$8_name|max};)[@{selected|repeating_npcaction_$9_name} ](~@{selected|character_name}|repeating_npcaction_$9_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$9_name|max};)[-- Bonus Actions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcbonusaction_$0_name|max};)[@{selected|repeating_npcbonusaction_$0_name} ](~@{selected|character_name}|repeating_npcbonusaction_$0_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$0_name|max};)[@{selected|repeating_npcbonusaction_$1_name} ](~@{selected|character_name}|repeating_npcbonusaction_$1_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$1_name|max};)[@{selected|repeating_npcbonusaction_$2_name} ](~@{selected|character_name}|repeating_npcbonusaction_$2_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$2_name|max};)[@{selected|repeating_npcbonusaction_$3_name} ](~@{selected|character_name}|repeating_npcbonusaction_$3_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$3_name|max};)[@{selected|repeating_npcbonusaction_$4_name} ](~@{selected|character_name}|repeating_npcbonusaction_$4_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$4_name|max};)[@{selected|repeating_npcbonusaction_$5_name} ](~@{selected|character_name}|repeating_npcbonusaction_$5_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$5_name|max};)[@{selected|repeating_npcbonusaction_$6_name} ](~@{selected|character_name}|repeating_npcbonusaction_$6_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$6_name|max};)[@{selected|repeating_npcbonusaction_$7_name} ](~@{selected|character_name}|repeating_npcbonusaction_$7_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$7_name|max};)[@{selected|repeating_npcbonusaction_$8_name} ](~@{selected|character_name}|repeating_npcbonusaction_$8_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$8_name|max};)[@{selected|repeating_npcbonusaction_$9_name} ](~@{selected|character_name}|repeating_npcbonusaction_$9_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$9_name|max};)[-- Traits --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npctrait_$0_name|max};)[@{selected|repeating_npctrait_$0_name} ](~@{selected|character_name}|repeating_npctrait_$0_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$0_name|max};)[@{selected|repeating_npctrait_$1_name} ](~@{selected|character_name}|repeating_npctrait_$1_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$1_name|max};)[@{selected|repeating_npctrait_$2_name} ](~@{selected|character_name}|repeating_npctrait_$2_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$2_name|max};)[@{selected|repeating_npctrait_$3_name} ](~@{selected|character_name}|repeating_npctrait_$3_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$3_name|max};)[@{selected|repeating_npctrait_$4_name} ](~@{selected|character_name}|repeating_npctrait_$4_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$4_name|max};)[@{selected|repeating_npctrait_$5_name} ](~@{selected|character_name}|repeating_npctrait_$5_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$5_name|max};)[@{selected|repeating_npctrait_$6_name} ](~@{selected|character_name}|repeating_npctrait_$6_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$6_name|max};)[@{selected|repeating_npctrait_$7_name} ](~@{selected|character_name}|repeating_npctrait_$7_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$7_name|max};)[@{selected|repeating_npctrait_$8_name} ](~@{selected|character_name}|repeating_npctrait_$8_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$8_name|max};)[@{selected|repeating_npctrait_$9_name} ](~@{selected|character_name}|repeating_npctrait_$9_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$9_name|max};)[-- Reactions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcreaction_$0_name|max};)[@{selected|repeating_npcreaction_$0_name} ](~@{selected|character_name}|repeating_npcreaction_$0_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$0_name|max};)[@{selected|repeating_npcreaction_$1_name} ](~@{selected|character_name}|repeating_npcreaction_$1_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$1_name|max};)[@{selected|repeating_npcreaction_$2_name} ](~@{selected|character_name}|repeating_npcreaction_$2_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$2_name|max};)[@{selected|repeating_npcreaction_$3_name} ](~@{selected|character_name}|repeating_npcreaction_$3_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$3_name|max};)[@{selected|repeating_npcreaction_$4_name} ](~@{selected|character_name}|repeating_npcreaction_$4_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$4_name|max};)[@{selected|repeating_npcreaction_$5_name} ](~@{selected|character_name}|repeating_npcreaction_$5_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$5_name|max};)[@{selected|repeating_npcreaction_$6_name} ](~@{selected|character_name}|repeating_npcreaction_$6_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$6_name|max};)[@{selected|repeating_npcreaction_$7_name} ](~@{selected|character_name}|repeating_npcreaction_$7_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$7_name|max};)[@{selected|repeating_npcreaction_$8_name} ](~@{selected|character_name}|repeating_npcreaction_$8_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$8_name|max};)[@{selected|repeating_npcreaction_$9_name} ](~@{selected|character_name}|repeating_npcreaction_$9_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$9_name|max};)[-- Legendary Actions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcaction-l_$0_name|max};)[@{selected|repeating_npcaction-l_$0_name} ](~@{selected|character_name}|repeating_npcaction-l_$0_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$0_name|max};)[@{selected|repeating_npcaction-l_$1_name} ](~@{selected|character_name}|repeating_npcaction-l_$1_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$1_name|max};)[@{selected|repeating_npcaction-l_$2_name} ](~@{selected|character_name}|repeating_npcaction-l_$2_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$2_name|max};)[@{selected|repeating_npcaction-l_$3_name} ](~@{selected|character_name}|repeating_npcaction-l_$3_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$3_name|max};)[@{selected|repeating_npcaction-l_$4_name} ](~@{selected|character_name}|repeating_npcaction-l_$4_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$4_name|max};)[@{selected|repeating_npcaction-l_$5_name} ](~@{selected|character_name}|repeating_npcaction-l_$5_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$5_name|max};)[@{selected|repeating_npcaction-l_$6_name} ](~@{selected|character_name}|repeating_npcaction-l_$6_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$6_name|max};)[@{selected|repeating_npcaction-l_$7_name} ](~@{selected|character_name}|repeating_npcaction-l_$7_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$7_name|max};)[@{selected|repeating_npcaction-l_$8_name} ](~@{selected|character_name}|repeating_npcaction-l_$8_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$8_name|max};)[@{selected|repeating_npcaction-l_$9_name} ](~@{selected|character_name}|repeating_npcaction-l_$9_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$9_name|max};)[-- Mythic Actions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcaction-m_$0_name|max};)[@{selected|repeating_npcaction-m_$0_name} ](~@{selected|character_name}|repeating_npcaction-m_$0_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$0_name|max};)[@{selected|repeating_npcaction-m_$1_name} ](~@{selected|character_name}|repeating_npcaction-m_$1_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$1_name|max};)[@{selected|repeating_npcaction-m_$2_name} ](~@{selected|character_name}|repeating_npcaction-m_$2_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$2_name|max};)[@{selected|repeating_npcaction-m_$3_name} ](~@{selected|character_name}|repeating_npcaction-m_$3_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$3_name|max};)[@{selected|repeating_npcaction-m_$4_name} ](~@{selected|character_name}|repeating_npcaction-m_$4_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$4_name|max};)[@{selected|repeating_npcaction-m_$5_name} ](~@{selected|character_name}|repeating_npcaction-m_$5_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$5_name|max};)[@{selected|repeating_npcaction-m_$6_name} ](~@{selected|character_name}|repeating_npcaction-m_$6_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$6_name|max};)[@{selected|repeating_npcaction-m_$7_name} ](~@{selected|character_name}|repeating_npcaction-m_$7_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$7_name|max};)[@{selected|repeating_npcaction-m_$8_name} ](~@{selected|character_name}|repeating_npcaction-m_$8_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$8_name|max};)[@{selected|repeating_npcaction-m_$9_name} ](~@{selected|character_name}|repeating_npcaction-m_$9_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$9_name|max};)}}&{noerror} Universal macro for all  NPC Spells, with style modifications /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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; display: block@{selected|repeating_spell-9_$9_spellname|max};)}} {{name=Spellbook}} &{noerror}
Universal Macro setup instructions Choose to either set up collections macros or 'Macro Mule' macros Collections Macro setup instructions (option 1) Step 1:  Create a macro called 'AbilitiesMacro' with the entire NPC Abilities code in it (choose either with styling or without). Then create another macro called 'Abilities' with this: #AbilitiesMacro &{noerror} Step 2:  Create a macro called 'SpellsMacro' with the entire NPC Spells code in it ( choose either with styling or without) . Then create another macro called 'Spells' with this: #SpellsMacro &{noerror} Step 3:  Then set the 'Spells' macro and 'Abilities' macro as Token Actions or visible in the macro bar and you're all set. 'Macro Mule' Macro setup instructions (option 2) Another option is to create a character named 'NPC Macros'.  By putting the macro on the 'NPC Macros' character, you can easily move the macro to other games with the Character Vault, or the Transmogrifier (if you have a Pro subscription). Step 1:  Create an Ability called 'AbilitiesMacro' on the 'NPC Macros' character sheet  with the entire NPC Abilities code in it (choose either with styling or without). Then create another collection macro called 'Abilities' with this: %{NPC Macros|AbilitiesMacro} &{noerror} Step 2:  Create an Ability called 'SpellsMacro' on the 'NPC Macros' character sheet with the entire NPC Spells code in it (choose either with styling or without). Then create another collection macro called 'Spells' with this: %{NPC Macros|SpellsMacro} &{noerror} Step 3:  Then set the 'Spells' macro and 'Abilities' macro as Token Actions or visible in the macro bar and you're all set.
1617858538

Edited 1631252938
Advanced approach for customization of abilities - part 1: Macro Mule setup This is an advanced approach that will allow you to customize the appearance and call each section (Actions/Traits/Reactions/Legendarys/Spells) individually. It takes a bit of setup of cutting and pasting into a 'Macro Mule' character sheet, but then it's used universally for all NPCs. (The header '-- Actions --' can be clicked on to display only the Actions section; or the Actions section can be called individually from a macro) ** UPDATED to include Bonus Actions and Mythic Actions ** NPC Abilities & Spells macro setup instructions (option 3 - advanced approach) Step 1:  Create a character named NPCAbilities Step 2:  Create the following 15  21 abilities on NPCAbilities: Template /w gm &{template:npcaction} &{noerror} {{rname=@{selected|character_name}}} {{description= Abilities %{NPCAbilities|Template}%{NPCAbilities|ActionsList}%{NPCAbilities|BonusActionsList}%{NPCAbilities|TraitsList}%{NPCAbilities|ReactionsList}%{NPCAbilities|LegendarysList}%{NPCAbilities|MythicsList}}} {{name=Abilities}} &{noerror} Actions %{NPCAbilities|Template}%{NPCAbilities|ActionsList}}} {{name=Actions}} &{noerror} BonusActions %{NPCAbilities|Template}%{NPCAbilities|BonusActionsList}}} {{name=Bonus Actions}} &{noerror} Traits %{NPCAbilities|Template}%{NPCAbilities|TraitsList}}} {{name=Traits}} &{noerror} Reactions %{NPCAbilities|Template}%{NPCAbilities|ReactionsList}}} {{name=Reactions}} &{noerror} Legendarys %{NPCAbilities|Template}%{NPCAbilities|LegendarysList}}} {{name=Legendary Actions}} &{noerror} Mythics %{NPCAbilities|Template}%{NPCAbilities|MythicsList}}} {{name=Mythic Actions}} &{noerror} LinkStyle " style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; display:none; AbilityLinkStyle %{NPCAbilities|LinkStyle}color: #7e2d40; font-weight: bold; ActionLinkStyle %{NPCAbilities|LinkStyle}color: red; BonusActionLinkStyle %{NPCAbilities|LinkStyle}color: red;  TraitLinkStyle %{NPCAbilities|LinkStyle}color: blue; ReactionLinkStyle %{NPCAbilities|LinkStyle}color: green; LegendaryLinkStyle %{NPCAbilities|LinkStyle}color: orange; MythicLinkStyle %{NPCAbilities|LinkStyle}color: orange;  ActionsList [-- Actions --](~NPCAbilities|Actions%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_npcaction_$0_name|max};)[@{selected|repeating_npcaction_$0_name} ](~@{selected|character_name}|repeating_npcaction_$0_npc_action%{NPCAbilities|ActionLinkStyle} display: block@{selected|repeating_npcaction_$0_name|max};)[@{selected|repeating_npcaction_$1_name} ](~@{selected|character_name}|repeating_npcaction_$1_npc_action%{NPCAbilities|ActionLinkStyle} display: block@{selected|repeating_npcaction_$1_name|max};)[@{selected|repeating_npcaction_$2_name} ](~@{selected|character_name}|repeating_npcaction_$2_npc_action%{NPCAbilities|ActionLinkStyle} display: block@{selected|repeating_npcaction_$2_name|max};)[@{selected|repeating_npcaction_$3_name} ](~@{selected|character_name}|repeating_npcaction_$3_npc_action%{NPCAbilities|ActionLinkStyle} display: block@{selected|repeating_npcaction_$3_name|max};)[@{selected|repeating_npcaction_$4_name} ](~@{selected|character_name}|repeating_npcaction_$4_npc_action%{NPCAbilities|ActionLinkStyle} display: block@{selected|repeating_npcaction_$4_name|max};)[@{selected|repeating_npcaction_$5_name} ](~@{selected|character_name}|repeating_npcaction_$5_npc_action%{NPCAbilities|ActionLinkStyle} display: block@{selected|repeating_npcaction_$5_name|max};)[@{selected|repeating_npcaction_$6_name} ](~@{selected|character_name}|repeating_npcaction_$6_npc_action%{NPCAbilities|ActionLinkStyle} display: block@{selected|repeating_npcaction_$6_name|max};)[@{selected|repeating_npcaction_$7_name} ](~@{selected|character_name}|repeating_npcaction_$7_npc_action%{NPCAbilities|ActionLinkStyle} display: block@{selected|repeating_npcaction_$7_name|max};)[@{selected|repeating_npcaction_$8_name} ](~@{selected|character_name}|repeating_npcaction_$8_npc_action%{NPCAbilities|ActionLinkStyle} display: block@{selected|repeating_npcaction_$8_name|max};)[@{selected|repeating_npcaction_$9_name} ](~@{selected|character_name}|repeating_npcaction_$9_npc_action%{NPCAbilities|ActionLinkStyle} display: block@{selected|repeating_npcaction_$9_name|max};) BonusActionsList [-- Bonus Actions --](~NPCAbilities|BonusActions%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_npcbonusaction_$0_name|max};)[@{selected|repeating_npcbonusaction_$0_name} ](~@{selected|character_name}|repeating_npcbonusaction_$0_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$0_name|max};)[@{selected|repeating_npcbonusaction_$1_name} ](~@{selected|character_name}|repeating_npcbonusaction_$1_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$1_name|max};)[@{selected|repeating_npcbonusaction_$2_name} ](~@{selected|character_name}|repeating_npcbonusaction_$2_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$2_name|max};)[@{selected|repeating_npcbonusaction_$3_name} ](~@{selected|character_name}|repeating_npcbonusaction_$3_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$3_name|max};)[@{selected|repeating_npcbonusaction_$4_name} ](~@{selected|character_name}|repeating_npcbonusaction_$4_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$4_name|max};)[@{selected|repeating_npcbonusaction_$5_name} ](~@{selected|character_name}|repeating_npcbonusaction_$5_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$5_name|max};)[@{selected|repeating_npcbonusaction_$6_name} ](~@{selected|character_name}|repeating_npcbonusaction_$6_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$6_name|max};)[@{selected|repeating_npcbonusaction_$7_name} ](~@{selected|character_name}|repeating_npcbonusaction_$7_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$7_name|max};)[@{selected|repeating_npcbonusaction_$8_name} ](~@{selected|character_name}|repeating_npcbonusaction_$8_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$8_name|max};)[@{selected|repeating_npcbonusaction_$9_name} ](~@{selected|character_name}|repeating_npcbonusaction_$9_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$9_name|max};) TraitsList [-- Traits --](~NPCAbilities|Traits%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_npctrait_$0_name|max};)[@{selected|repeating_npctrait_$0_name} ](~@{selected|character_name}|repeating_npctrait_$0_npc_roll_output%{NPCAbilities|TraitLinkStyle} display: block@{selected|repeating_npctrait_$0_name|max};)[@{selected|repeating_npctrait_$1_name} ](~@{selected|character_name}|repeating_npctrait_$1_npc_roll_output%{NPCAbilities|TraitLinkStyle} display: block@{selected|repeating_npctrait_$1_name|max};)[@{selected|repeating_npctrait_$2_name} ](~@{selected|character_name}|repeating_npctrait_$2_npc_roll_output%{NPCAbilities|TraitLinkStyle} display: block@{selected|repeating_npctrait_$2_name|max};)[@{selected|repeating_npctrait_$3_name} ](~@{selected|character_name}|repeating_npctrait_$3_npc_roll_output%{NPCAbilities|TraitLinkStyle} display: block@{selected|repeating_npctrait_$3_name|max};)[@{selected|repeating_npctrait_$4_name} ](~@{selected|character_name}|repeating_npctrait_$4_npc_roll_output%{NPCAbilities|TraitLinkStyle} display: block@{selected|repeating_npctrait_$4_name|max};)[@{selected|repeating_npctrait_$5_name} ](~@{selected|character_name}|repeating_npctrait_$5_npc_roll_output%{NPCAbilities|TraitLinkStyle} display: block@{selected|repeating_npctrait_$5_name|max};)[@{selected|repeating_npctrait_$6_name} ](~@{selected|character_name}|repeating_npctrait_$6_npc_roll_output%{NPCAbilities|TraitLinkStyle} display: block@{selected|repeating_npctrait_$6_name|max};)[@{selected|repeating_npctrait_$7_name} ](~@{selected|character_name}|repeating_npctrait_$7_npc_roll_output%{NPCAbilities|TraitLinkStyle} display: block@{selected|repeating_npctrait_$7_name|max};)[@{selected|repeating_npctrait_$8_name} ](~@{selected|character_name}|repeating_npctrait_$8_npc_roll_output%{NPCAbilities|TraitLinkStyle} display: block@{selected|repeating_npctrait_$8_name|max};)[@{selected|repeating_npctrait_$9_name} ](~@{selected|character_name}|repeating_npctrait_$9_npc_roll_output%{NPCAbilities|TraitLinkStyle} display: block@{selected|repeating_npctrait_$9_name|max};) ReactionsList [-- Reactions --](~NPCAbilities|Reactions%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_npcreaction_$0_name|max};)[@{selected|repeating_npcreaction_$0_name} ](~@{selected|character_name}|repeating_npcreaction_$0_npc_roll_output%{NPCAbilities|ReactionLinkStyle}display: block@{selected|repeating_npcreaction_$0_name|max};)[@{selected|repeating_npcreaction_$1_name} ](~@{selected|character_name}|repeating_npcreaction_$1_npc_roll_output%{NPCAbilities|ReactionLinkStyle}display: block@{selected|repeating_npcreaction_$1_name|max};)[@{selected|repeating_npcreaction_$2_name} ](~@{selected|character_name}|repeating_npcreaction_$2_npc_roll_output%{NPCAbilities|ReactionLinkStyle}display: block@{selected|repeating_npcreaction_$2_name|max};)[@{selected|repeating_npcreaction_$3_name} ](~@{selected|character_name}|repeating_npcreaction_$3_npc_roll_output%{NPCAbilities|ReactionLinkStyle}display: block@{selected|repeating_npcreaction_$3_name|max};)[@{selected|repeating_npcreaction_$4_name} ](~@{selected|character_name}|repeating_npcreaction_$4_npc_roll_output%{NPCAbilities|ReactionLinkStyle}display: block@{selected|repeating_npcreaction_$4_name|max};)[@{selected|repeating_npcreaction_$5_name} ](~@{selected|character_name}|repeating_npcreaction_$5_npc_roll_output%{NPCAbilities|ReactionLinkStyle}display: block@{selected|repeating_npcreaction_$5_name|max};)[@{selected|repeating_npcreaction_$6_name} ](~@{selected|character_name}|repeating_npcreaction_$6_npc_roll_output%{NPCAbilities|ReactionLinkStyle}display: block@{selected|repeating_npcreaction_$6_name|max};)[@{selected|repeating_npcreaction_$7_name} ](~@{selected|character_name}|repeating_npcreaction_$7_npc_roll_output%{NPCAbilities|ReactionLinkStyle}display: block@{selected|repeating_npcreaction_$7_name|max};)[@{selected|repeating_npcreaction_$8_name} ](~@{selected|character_name}|repeating_npcreaction_$8_npc_roll_output%{NPCAbilities|ReactionLinkStyle}display: block@{selected|repeating_npcreaction_$8_name|max};)[@{selected|repeating_npcreaction_$9_name} ](~@{selected|character_name}|repeating_npcreaction_$9_npc_roll_output%{NPCAbilities|ReactionLinkStyle}display: block@{selected|repeating_npcreaction_$9_name|max};) LegendarysList [-- Legendary Actions --](~NPCAbilities|Legendarys%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_npcaction-l_$0_name|max};)[@{selected|repeating_npcaction-l_$0_name} ](~@{selected|character_name}|repeating_npcaction-l_$0_npc_action%{NPCAbilities|LegendaryLinkStyle}display: block@{selected|repeating_npcaction-l_$0_name|max};)[@{selected|repeating_npcaction-l_$1_name} ](~@{selected|character_name}|repeating_npcaction-l_$1_npc_action%{NPCAbilities|LegendaryLinkStyle}display: block@{selected|repeating_npcaction-l_$1_name|max};)[@{selected|repeating_npcaction-l_$2_name} ](~@{selected|character_name}|repeating_npcaction-l_$2_npc_action%{NPCAbilities|LegendaryLinkStyle}display: block@{selected|repeating_npcaction-l_$2_name|max};)[@{selected|repeating_npcaction-l_$3_name} ](~@{selected|character_name}|repeating_npcaction-l_$3_npc_action%{NPCAbilities|LegendaryLinkStyle}display: block@{selected|repeating_npcaction-l_$3_name|max};)[@{selected|repeating_npcaction-l_$4_name} ](~@{selected|character_name}|repeating_npcaction-l_$4_npc_action%{NPCAbilities|LegendaryLinkStyle}display: block@{selected|repeating_npcaction-l_$4_name|max};)[@{selected|repeating_npcaction-l_$5_name} ](~@{selected|character_name}|repeating_npcaction-l_$5_npc_action%{NPCAbilities|LegendaryLinkStyle}display: block@{selected|repeating_npcaction-l_$5_name|max};)[@{selected|repeating_npcaction-l_$6_name} ](~@{selected|character_name}|repeating_npcaction-l_$6_npc_action%{NPCAbilities|LegendaryLinkStyle}display: block@{selected|repeating_npcaction-l_$6_name|max};)[@{selected|repeating_npcaction-l_$7_name} ](~@{selected|character_name}|repeating_npcaction-l_$7_npc_action%{NPCAbilities|LegendaryLinkStyle}display: block@{selected|repeating_npcaction-l_$7_name|max};)[@{selected|repeating_npcaction-l_$8_name} ](~@{selected|character_name}|repeating_npcaction-l_$8_npc_action%{NPCAbilities|LegendaryLinkStyle}display: block@{selected|repeating_npcaction-l_$8_name|max};)[@{selected|repeating_npcaction-l_$9_name} ](~@{selected|character_name}|repeating_npcaction-l_$9_npc_action%{NPCAbilities|LegendaryLinkStyle}display: block@{selected|repeating_npcaction-l_$9_name|max};) MythicsList [-- Mythic Actions --](~NPCAbilities|Mythics%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_npcaction-m_$0_name|max};)[@{selected|repeating_npcaction-m_$0_name} ](~@{selected|character_name}|repeating_npcaction-l_$0_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$0_name|max};)[@{selected|repeating_npcaction-m_$1_name} ](~@{selected|character_name}|repeating_npcaction-l_$1_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$1_name|max};)[@{selected|repeating_npcaction-m_$2_name} ](~@{selected|character_name}|repeating_npcaction-l_$2_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$2_name|max};)[@{selected|repeating_npcaction-m_$3_name} ](~@{selected|character_name}|repeating_npcaction-l_$3_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$3_name|max};)[@{selected|repeating_npcaction-m_$4_name} ](~@{selected|character_name}|repeating_npcaction-l_$4_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$4_name|max};)[@{selected|repeating_npcaction-m_$5_name} ](~@{selected|character_name}|repeating_npcaction-l_$5_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$5_name|max};)[@{selected|repeating_npcaction-m_$6_name} ](~@{selected|character_name}|repeating_npcaction-l_$6_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$6_name|max};)[@{selected|repeating_npcaction-m_$7_name} ](~@{selected|character_name}|repeating_npcaction-l_$7_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$7_name|max};)[@{selected|repeating_npcaction-m_$8_name} ](~@{selected|character_name}|repeating_npcaction-l_$8_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$8_name|max};)[@{selected|repeating_npcaction-m_$9_name} ](~@{selected|character_name}|repeating_npcaction-l_$9_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$9_name|max};) Step 3:  Create the following 24 abilities on NPCAbilities: SpellsTemplate /w gm &{template:npcaction} &{noerror} {{rname=@{selected|character_name}}} {{description=%{NPCAbilities|SpellDCAtk} SpellDCAtk Save **DC [[@{selected|spell_save_dc}]]** | Attack **+[[@{selected|spell_attack_bonus}]]** Spells %{NPCAbilities|SpellsTemplate}%{NPCAbilities|CantripsList}%{NPCAbilities|Lvl1List}%{NPCAbilities|Lvl2List}%{NPCAbilities|Lvl3List}%{NPCAbilities|Lvl4List}%{NPCAbilities|Lvl5List}%{NPCAbilities|Lvl6List}%{NPCAbilities|Lvl7List}%{NPCAbilities|Lvl8List}%{NPCAbilities|Lvl9List}}} {{name=Spellbook}} &{noerror} Cantrips %{NPCAbilities|SpellsTemplate}%{NPCAbilities|CantripsList}}} {{name=Cantrips}} &{noerror} Lvl1 %{NPCAbilities|SpellsTemplate}%{NPCAbilities|Lvl1List}}} {{name=Level 1 Spells}} &{noerror} Lvl2 %{NPCAbilities|SpellsTemplate}%{NPCAbilities|Lvl2List}}} {{name=Level 2 Spells}} &{noerror} Lvl3 %{NPCAbilities|SpellsTemplate}%{NPCAbilities|Lvl3List}}} {{name=Level 3 Spells}} &{noerror} Lvl4 %{NPCAbilities|SpellsTemplate}%{NPCAbilities|Lvl4List}}} {{name=Level 4 Spells}} &{noerror} Lvl5 %{NPCAbilities|SpellsTemplate}%{NPCAbilities|Lvl5List}}} {{name=Level 5 Spells}} &{noerror} Lvl6 %{NPCAbilities|SpellsTemplate}%{NPCAbilities|Lvl6List}}} {{name=Level 6 Spells}} &{noerror} Lvl7 %{NPCAbilities|SpellsTemplate}%{NPCAbilities|Lvl7List}}} {{name=Level 7 Spells}} &{noerror} Lvl8 %{NPCAbilities|SpellsTemplate}%{NPCAbilities|Lvl8List}}} {{name=Level 8 Spells}} &{noerror} Lvl9 %{NPCAbilities|SpellsTemplate}%{NPCAbilities|Lvl9List}}} {{name=Level 9 Spells}} &{noerror} SpellLinkStyle %{NPCAbilities|LinkStyle}color: purple; CantripsList [-- Cantrips --](~NPCAbilities|Cantrips%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_spell-cantrip_$0_spellname|max};)[@{selected|repeating_spell-cantrip_$0_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$0_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-cantrip_$0_spellname|max};)[@{selected|repeating_spell-cantrip_$1_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$1_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-cantrip_$1_spellname|max};)[@{selected|repeating_spell-cantrip_$2_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$2_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-cantrip_$2_spellname|max};)[@{selected|repeating_spell-cantrip_$3_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$3_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-cantrip_$3_spellname|max};)[@{selected|repeating_spell-cantrip_$4_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$4_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-cantrip_$4_spellname|max};)[@{selected|repeating_spell-cantrip_$5_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$5_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-cantrip_$5_spellname|max};)[@{selected|repeating_spell-cantrip_$6_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$6_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-cantrip_$6_spellname|max};)[@{selected|repeating_spell-cantrip_$7_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$7_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-cantrip_$7_spellname|max};)[@{selected|repeating_spell-cantrip_$8_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$8_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-cantrip_$8_spellname|max};)[@{selected|repeating_spell-cantrip_$9_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$9_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-cantrip_$9_spellname|max};) Lvl1List [-- Level 1 Spells --](~NPCAbilities|Lvl1%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_spell-1_$0_spellname|max};)[@{selected|repeating_spell-1_$0_spellname} ](~@{selected|character_name}|repeating_spell-1_$0_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-1_$0_spellname|max};)[@{selected|repeating_spell-1_$1_spellname} ](~@{selected|character_name}|repeating_spell-1_$1_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-1_$1_spellname|max};)[@{selected|repeating_spell-1_$2_spellname} ](~@{selected|character_name}|repeating_spell-1_$2_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-1_$2_spellname|max};)[@{selected|repeating_spell-1_$3_spellname} ](~@{selected|character_name}|repeating_spell-1_$3_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-1_$3_spellname|max};)[@{selected|repeating_spell-1_$4_spellname} ](~@{selected|character_name}|repeating_spell-1_$4_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-1_$4_spellname|max};)[@{selected|repeating_spell-1_$5_spellname} ](~@{selected|character_name}|repeating_spell-1_$5_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-1_$5_spellname|max};)[@{selected|repeating_spell-1_$6_spellname} ](~@{selected|character_name}|repeating_spell-1_$6_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-1_$6_spellname|max};)[@{selected|repeating_spell-1_$7_spellname} ](~@{selected|character_name}|repeating_spell-1_$7_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-1_$7_spellname|max};)[@{selected|repeating_spell-1_$8_spellname} ](~@{selected|character_name}|repeating_spell-1_$8_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-1_$8_spellname|max};)[@{selected|repeating_spell-1_$9_spellname} ](~@{selected|character_name}|repeating_spell-1_$9_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-1_$9_spellname|max};) Lvl2List [-- Level 2 Spells --](~NPCAbilities|Lvl2%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_spell-2_$0_spellname|max};)[@{selected|repeating_spell-2_$0_spellname} ](~@{selected|character_name}|repeating_spell-2_$0_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-2_$0_spellname|max};)[@{selected|repeating_spell-2_$1_spellname} ](~@{selected|character_name}|repeating_spell-2_$1_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-2_$1_spellname|max};)[@{selected|repeating_spell-2_$2_spellname} ](~@{selected|character_name}|repeating_spell-2_$2_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-2_$2_spellname|max};)[@{selected|repeating_spell-2_$3_spellname} ](~@{selected|character_name}|repeating_spell-2_$3_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-2_$3_spellname|max};)[@{selected|repeating_spell-2_$4_spellname} ](~@{selected|character_name}|repeating_spell-2_$4_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-2_$4_spellname|max};)[@{selected|repeating_spell-2_$5_spellname} ](~@{selected|character_name}|repeating_spell-2_$5_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-2_$5_spellname|max};)[@{selected|repeating_spell-2_$6_spellname} ](~@{selected|character_name}|repeating_spell-2_$6_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-2_$6_spellname|max};)[@{selected|repeating_spell-2_$7_spellname} ](~@{selected|character_name}|repeating_spell-2_$7_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-2_$7_spellname|max};)[@{selected|repeating_spell-2_$8_spellname} ](~@{selected|character_name}|repeating_spell-2_$8_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-2_$8_spellname|max};)[@{selected|repeating_spell-2_$9_spellname} ](~@{selected|character_name}|repeating_spell-2_$9_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-2_$9_spellname|max};) Lvl3List [-- Level 3 Spells --](~NPCAbilities|Lvl3%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_spell-3_$0_spellname|max};)[@{selected|repeating_spell-3_$0_spellname} ](~@{selected|character_name}|repeating_spell-3_$0_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-3_$0_spellname|max};)[@{selected|repeating_spell-3_$1_spellname} ](~@{selected|character_name}|repeating_spell-3_$1_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-3_$1_spellname|max};)[@{selected|repeating_spell-3_$2_spellname} ](~@{selected|character_name}|repeating_spell-3_$2_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-3_$2_spellname|max};)[@{selected|repeating_spell-3_$3_spellname} ](~@{selected|character_name}|repeating_spell-3_$3_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-3_$3_spellname|max};)[@{selected|repeating_spell-3_$4_spellname} ](~@{selected|character_name}|repeating_spell-3_$4_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-3_$4_spellname|max};)[@{selected|repeating_spell-3_$5_spellname} ](~@{selected|character_name}|repeating_spell-3_$5_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-3_$5_spellname|max};)[@{selected|repeating_spell-3_$6_spellname} ](~@{selected|character_name}|repeating_spell-3_$6_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-3_$6_spellname|max};)[@{selected|repeating_spell-3_$7_spellname} ](~@{selected|character_name}|repeating_spell-3_$7_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-3_$7_spellname|max};)[@{selected|repeating_spell-3_$8_spellname} ](~@{selected|character_name}|repeating_spell-3_$8_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-3_$8_spellname|max};)[@{selected|repeating_spell-3_$9_spellname} ](~@{selected|character_name}|repeating_spell-3_$9_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-3_$9_spellname|max};) Lvl4List [-- Level 4 Spells --](~NPCAbilities|Lvl4%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_spell-4_$0_spellname|max};)[@{selected|repeating_spell-4_$0_spellname} ](~@{selected|character_name}|repeating_spell-4_$0_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-4_$0_spellname|max};)[@{selected|repeating_spell-4_$1_spellname} ](~@{selected|character_name}|repeating_spell-4_$1_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-4_$1_spellname|max};)[@{selected|repeating_spell-4_$2_spellname} ](~@{selected|character_name}|repeating_spell-4_$2_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-4_$2_spellname|max};)[@{selected|repeating_spell-4_$3_spellname} ](~@{selected|character_name}|repeating_spell-4_$3_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-4_$3_spellname|max};)[@{selected|repeating_spell-4_$4_spellname} ](~@{selected|character_name}|repeating_spell-4_$4_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-4_$4_spellname|max};)[@{selected|repeating_spell-4_$5_spellname} ](~@{selected|character_name}|repeating_spell-4_$5_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-4_$5_spellname|max};)[@{selected|repeating_spell-4_$6_spellname} ](~@{selected|character_name}|repeating_spell-4_$6_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-4_$6_spellname|max};)[@{selected|repeating_spell-4_$7_spellname} ](~@{selected|character_name}|repeating_spell-4_$7_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-4_$7_spellname|max};)[@{selected|repeating_spell-4_$8_spellname} ](~@{selected|character_name}|repeating_spell-4_$8_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-4_$8_spellname|max};)[@{selected|repeating_spell-4_$9_spellname} ](~@{selected|character_name}|repeating_spell-4_$9_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-4_$9_spellname|max};) Lvl5List [-- Level 5 Spells --](~NPCAbilities|Lvl5%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_spell-5_$0_spellname|max};)[@{selected|repeating_spell-5_$0_spellname} ](~@{selected|character_name}|repeating_spell-5_$0_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-5_$0_spellname|max};)[@{selected|repeating_spell-5_$1_spellname} ](~@{selected|character_name}|repeating_spell-5_$1_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-5_$1_spellname|max};)[@{selected|repeating_spell-5_$2_spellname} ](~@{selected|character_name}|repeating_spell-5_$2_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-5_$2_spellname|max};)[@{selected|repeating_spell-5_$3_spellname} ](~@{selected|character_name}|repeating_spell-5_$3_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-5_$3_spellname|max};)[@{selected|repeating_spell-5_$4_spellname} ](~@{selected|character_name}|repeating_spell-5_$4_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-5_$4_spellname|max};)[@{selected|repeating_spell-5_$5_spellname} ](~@{selected|character_name}|repeating_spell-5_$5_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-5_$5_spellname|max};)[@{selected|repeating_spell-5_$6_spellname} ](~@{selected|character_name}|repeating_spell-5_$6_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-5_$6_spellname|max};)[@{selected|repeating_spell-5_$7_spellname} ](~@{selected|character_name}|repeating_spell-5_$7_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-5_$7_spellname|max};)[@{selected|repeating_spell-5_$8_spellname} ](~@{selected|character_name}|repeating_spell-5_$8_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-5_$8_spellname|max};)[@{selected|repeating_spell-5_$9_spellname} ](~@{selected|character_name}|repeating_spell-5_$9_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-5_$9_spellname|max};) Lvl6List [-- Level 6 Spells --](~NPCAbilities|Lvl6%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_spell-6_$0_spellname|max};)[@{selected|repeating_spell-6_$0_spellname} ](~@{selected|character_name}|repeating_spell-6_$0_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-6_$0_spellname|max};)[@{selected|repeating_spell-6_$1_spellname} ](~@{selected|character_name}|repeating_spell-6_$1_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-6_$1_spellname|max};)[@{selected|repeating_spell-6_$2_spellname} ](~@{selected|character_name}|repeating_spell-6_$2_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-6_$2_spellname|max};)[@{selected|repeating_spell-6_$3_spellname} ](~@{selected|character_name}|repeating_spell-6_$3_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-6_$3_spellname|max};)[@{selected|repeating_spell-6_$4_spellname} ](~@{selected|character_name}|repeating_spell-6_$4_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-6_$4_spellname|max};)[@{selected|repeating_spell-6_$5_spellname} ](~@{selected|character_name}|repeating_spell-6_$5_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-6_$5_spellname|max};)[@{selected|repeating_spell-6_$6_spellname} ](~@{selected|character_name}|repeating_spell-6_$6_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-6_$6_spellname|max};)[@{selected|repeating_spell-6_$7_spellname} ](~@{selected|character_name}|repeating_spell-6_$7_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-6_$7_spellname|max};)[@{selected|repeating_spell-6_$8_spellname} ](~@{selected|character_name}|repeating_spell-6_$8_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-6_$8_spellname|max};)[@{selected|repeating_spell-6_$9_spellname} ](~@{selected|character_name}|repeating_spell-6_$9_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-6_$9_spellname|max};) Lvl7List [-- Level 7 Spells --](~NPCAbilities|Lvl7%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_spell-7_$0_spellname|max};)[@{selected|repeating_spell-7_$0_spellname} ](~@{selected|character_name}|repeating_spell-7_$0_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-7_$0_spellname|max};)[@{selected|repeating_spell-7_$1_spellname} ](~@{selected|character_name}|repeating_spell-7_$1_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-7_$1_spellname|max};)[@{selected|repeating_spell-7_$2_spellname} ](~@{selected|character_name}|repeating_spell-7_$2_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-7_$2_spellname|max};)[@{selected|repeating_spell-7_$3_spellname} ](~@{selected|character_name}|repeating_spell-7_$3_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-7_$3_spellname|max};)[@{selected|repeating_spell-7_$4_spellname} ](~@{selected|character_name}|repeating_spell-7_$4_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-7_$4_spellname|max};)[@{selected|repeating_spell-7_$5_spellname} ](~@{selected|character_name}|repeating_spell-7_$5_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-7_$5_spellname|max};)[@{selected|repeating_spell-7_$6_spellname} ](~@{selected|character_name}|repeating_spell-7_$6_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-7_$6_spellname|max};)[@{selected|repeating_spell-7_$7_spellname} ](~@{selected|character_name}|repeating_spell-7_$7_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-7_$7_spellname|max};)[@{selected|repeating_spell-7_$8_spellname} ](~@{selected|character_name}|repeating_spell-7_$8_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-7_$8_spellname|max};)[@{selected|repeating_spell-7_$9_spellname} ](~@{selected|character_name}|repeating_spell-7_$9_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-7_$9_spellname|max};) Lvl8List [-- Level 8 Spells --](~NPCAbilities|Lvl8%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_spell-8_$0_spellname|max};)[@{selected|repeating_spell-8_$0_spellname} ](~@{selected|character_name}|repeating_spell-8_$0_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-8_$0_spellname|max};)[@{selected|repeating_spell-8_$1_spellname} ](~@{selected|character_name}|repeating_spell-8_$1_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-8_$1_spellname|max};)[@{selected|repeating_spell-8_$2_spellname} ](~@{selected|character_name}|repeating_spell-8_$2_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-8_$2_spellname|max};)[@{selected|repeating_spell-8_$3_spellname} ](~@{selected|character_name}|repeating_spell-8_$3_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-8_$3_spellname|max};)[@{selected|repeating_spell-8_$4_spellname} ](~@{selected|character_name}|repeating_spell-8_$4_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-8_$4_spellname|max};)[@{selected|repeating_spell-8_$5_spellname} ](~@{selected|character_name}|repeating_spell-8_$5_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-8_$5_spellname|max};)[@{selected|repeating_spell-8_$6_spellname} ](~@{selected|character_name}|repeating_spell-8_$6_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-8_$6_spellname|max};)[@{selected|repeating_spell-8_$7_spellname} ](~@{selected|character_name}|repeating_spell-8_$7_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-8_$7_spellname|max};)[@{selected|repeating_spell-8_$8_spellname} ](~@{selected|character_name}|repeating_spell-8_$8_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-8_$8_spellname|max};)[@{selected|repeating_spell-8_$9_spellname} ](~@{selected|character_name}|repeating_spell-8_$9_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-8_$9_spellname|max};) Lvl9List [-- Level 9 Spells --](~NPCAbilities|Lvl9%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_spell-9_$0_spellname|max};)[@{selected|repeating_spell-9_$0_spellname} ](~@{selected|character_name}|repeating_spell-9_$0_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-9_$0_spellname|max};)[@{selected|repeating_spell-9_$1_spellname} ](~@{selected|character_name}|repeating_spell-9_$1_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-9_$1_spellname|max};)[@{selected|repeating_spell-9_$2_spellname} ](~@{selected|character_name}|repeating_spell-9_$2_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-9_$2_spellname|max};)[@{selected|repeating_spell-9_$3_spellname} ](~@{selected|character_name}|repeating_spell-9_$3_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-9_$3_spellname|max};)[@{selected|repeating_spell-9_$4_spellname} ](~@{selected|character_name}|repeating_spell-9_$4_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-9_$4_spellname|max};)[@{selected|repeating_spell-9_$5_spellname} ](~@{selected|character_name}|repeating_spell-9_$5_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-9_$5_spellname|max};)[@{selected|repeating_spell-9_$6_spellname} ](~@{selected|character_name}|repeating_spell-9_$6_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-9_$6_spellname|max};)[@{selected|repeating_spell-9_$7_spellname} ](~@{selected|character_name}|repeating_spell-9_$7_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-9_$7_spellname|max};)[@{selected|repeating_spell-9_$8_spellname} ](~@{selected|character_name}|repeating_spell-9_$8_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-9_$8_spellname|max};)[@{selected|repeating_spell-9_$9_spellname} ](~@{selected|character_name}|repeating_spell-9_$9_spell%{NPCAbilities|SpellLinkStyle} display: block@{selected|repeating_spell-9_$9_spellname|max};)
1617858548

Edited 1628086000
Advanced approach for customization of abilities - part 2: Calling the macros Step 4:  Next, decide if you want to call these macros from the Collections Tab as universal Token Actions or on the Macrobar, or from NPC character sheets. There are advantages/disadvantages to each approach: Calling from the Collections Tab:  You only need to set up 5  7 macros, and you are done. However, they will be visible for all NPCs (as universal Token Actions) or always on the Macrobar, so it will not be obvious which traits each NPC has. You can simplify this a bit by only using a universal 'Abilities' macro. Calling from each NPC character sheet:  You will have to duplicate the Abilities/Actions/Traits/Reactions/Legendarys abilities individually to each NPC you want to use them on, and use the 'Show as Token Action' to display when the NPC token is clicked on. This has the advantage of only displaying each type of ability that is available to that specific NPC.  ** UPDATED to include Bonus Actions and Mythic Actions ** Here are the 5  7 macros for abilities: Abilities %{NPCAbilities|Abilities} &{noerror} Actions %{NPCAbilities|Actions} &{noerror} Bonus Actions %{NPCAbilities|BonusActions} &{noerror} Traits %{NPCAbilities|Traits} &{noerror} Reactions %{NPCAbilities|Reactions} &{noerror} Legendarys %{NPCAbilities|Legendarys} &{noerror} Mythics %{NPCAbilities|Mythics} &{noerror} Here are the 11 macros for spells: Spells %{NPCAbilities|Spells} &{noerror} Cantrips %{NPCAbilities|Cantrips} &{noerror} Lvl1 %{NPCAbilities|Lvl1} &{noerror} Lvl2 %{NPCAbilities|Lvl2} &{noerror} Lvl3 %{NPCAbilities|Lvl3} &{noerror} Lvl4 %{NPCAbilities|Lvl4} &{noerror} Lvl5 %{NPCAbilities|Lvl5} &{noerror} Lvl6 %{NPCAbilities|Lvl6} &{noerror} Lvl7 %{NPCAbilities|Lvl7} &{noerror} Lvl8 %{NPCAbilities|Lvl8} &{noerror} Lvl9 %{NPCAbilities|Lvl9} &{noerror} Customizing the appearance You can easily adjust the appearance of the output by changing the code in any of the macros that have the word 'Style' in the name . For example, if you decide that you want Actions to be black instead of red, you simply change the ActionLinkStyle to: %{NPCAbilities|LinkStyle}color: black;
1617863183
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Bravo! That's superhuman macro weaving there!
1619474118

Edited 1619477036
I'm sure this has been covered elsewhere, but I haven't seen such a thorough macro before. Non-API, is there a change that can be made to this for prepared spells? I assume there is a way to similarly "hide" non-prepared spells? Maybe not - you are "hiding" by not showing error. Is there a way to do a calculation to divide by spellprepared value to get divide by zero error and use that to hide? NVM  no divide by zero error.
Leonard Z.  said: I'm sure this has been covered elsewhere, but I haven't seen such a thorough macro before. Non-API, is there a change that can be made to this for prepared spells? I assume there is a way to similarly "hide" non-prepared spells? Maybe not - you are "hiding" by not showing error. Is there a way to do a calculation to divide by spellprepared value to get divide by zero error and use that to hide? NVM  no divide by zero error. It is possible, but it's even uglier than before.  It also requires you to create a character named 'DIV' and create an attribute named 'sel' with '@{selected' in the current value.  And you'll have to call it from a macro in order to not get any error messages, because of Roll20 Order of Operations. Universal macro for all  NPC Prepared Spells, with no style modifications /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:none; display: block@{selected|repeating_spell-cantrip_$0_spellname|max};)[@{selected|repeating_spell-cantrip_$0_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$0_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$0_spellname|max}; )[@{selected|repeating_spell-cantrip_$1_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$1_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$1_spellname|max}; )[@{selected|repeating_spell-cantrip_$2_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$2_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$2_spellname|max}; )[@{selected|repeating_spell-cantrip_$3_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$3_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$3_spellname|max}; )[@{selected|repeating_spell-cantrip_$4_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$4_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$4_spellname|max}; )[@{selected|repeating_spell-cantrip_$5_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$5_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$5_spellname|max}; )[@{selected|repeating_spell-cantrip_$6_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$6_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$6_spellname|max}; )[@{selected|repeating_spell-cantrip_$7_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$7_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$7_spellname|max}; )[@{selected|repeating_spell-cantrip_$8_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$8_spell" style="display:none; display: block@{selected|repeating_spell-cantrip_$8_spellname|max}; )[@{selected|repeating_spell-cantrip_$9_spellname} ](~@{selected|character_name}|repeating_spell-cantrip_$9_spell" style="display:none; 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:none; display: block@{selected|repeating_spell-1_$0_spellname|max};)[@{selected|repeating_spell-1_$0_spellname} ](~@{selected|character_name}|repeating_spell-1_$0_spell" style="display:none; display: block@{selected|repeating_spell-1_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$0_spellprepared}0_spellname|max};)[@{selected|repeating_spell-1_$1_spellname} ](~@{selected|character_name}|repeating_spell-1_$1_spell" style="display:none; display: block@{selected|repeating_spell-1_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$1_spellprepared}1_spellname|max};)[@{selected|repeating_spell-1_$2_spellname} ](~@{selected|character_name}|repeating_spell-1_$2_spell" style="display:none; display: block@{selected|repeating_spell-1_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$2_spellprepared}2_spellname|max};)[@{selected|repeating_spell-1_$3_spellname} ](~@{selected|character_name}|repeating_spell-1_$3_spell" style="display:none; display: block@{selected|repeating_spell-1_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$3_spellprepared}3_spellname|max};)[@{selected|repeating_spell-1_$4_spellname} ](~@{selected|character_name}|repeating_spell-1_$4_spell" style="display:none; display: block@{selected|repeating_spell-1_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$4_spellprepared}4_spellname|max};)[@{selected|repeating_spell-1_$5_spellname} ](~@{selected|character_name}|repeating_spell-1_$5_spell" style="display:none; display: block@{selected|repeating_spell-1_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$5_spellprepared}5_spellname|max};)[@{selected|repeating_spell-1_$6_spellname} ](~@{selected|character_name}|repeating_spell-1_$6_spell" style="display:none; display: block@{selected|repeating_spell-1_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$6_spellprepared}6_spellname|max};)[@{selected|repeating_spell-1_$7_spellname} ](~@{selected|character_name}|repeating_spell-1_$7_spell" style="display:none; display: block@{selected|repeating_spell-1_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$7_spellprepared}7_spellname|max};)[@{selected|repeating_spell-1_$8_spellname} ](~@{selected|character_name}|repeating_spell-1_$8_spell" style="display:none; display: block@{selected|repeating_spell-1_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$8_spellprepared}8_spellname|max};)[@{selected|repeating_spell-1_$9_spellname} ](~@{selected|character_name}|repeating_spell-1_$9_spell" style="display:none; display: block@{selected|repeating_spell-1_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$9_spellprepared}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:none; display: block@{selected|repeating_spell-2_$0_spellname|max};)[@{selected|repeating_spell-2_$0_spellname} ](~@{selected|character_name}|repeating_spell-2_$0_spell" style="display:none; display: block@{selected|repeating_spell-2_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$0_spellprepared}0_spellname|max};)[@{selected|repeating_spell-2_$1_spellname} ](~@{selected|character_name}|repeating_spell-2_$1_spell" style="display:none; display: block@{selected|repeating_spell-2_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$1_spellprepared}1_spellname|max};)[@{selected|repeating_spell-2_$2_spellname} ](~@{selected|character_name}|repeating_spell-2_$2_spell" style="display:none; display: block@{selected|repeating_spell-2_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$2_spellprepared}2_spellname|max};)[@{selected|repeating_spell-2_$3_spellname} ](~@{selected|character_name}|repeating_spell-2_$3_spell" style="display:none; display: block@{selected|repeating_spell-2_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$3_spellprepared}3_spellname|max};)[@{selected|repeating_spell-2_$4_spellname} ](~@{selected|character_name}|repeating_spell-2_$4_spell" style="display:none; display: block@{selected|repeating_spell-2_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$4_spellprepared}4_spellname|max};)[@{selected|repeating_spell-2_$5_spellname} ](~@{selected|character_name}|repeating_spell-2_$5_spell" style="display:none; display: block@{selected|repeating_spell-2_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$5_spellprepared}5_spellname|max};)[@{selected|repeating_spell-2_$6_spellname} ](~@{selected|character_name}|repeating_spell-2_$6_spell" style="display:none; display: block@{selected|repeating_spell-2_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$6_spellprepared}6_spellname|max};)[@{selected|repeating_spell-2_$7_spellname} ](~@{selected|character_name}|repeating_spell-2_$7_spell" style="display:none; display: block@{selected|repeating_spell-2_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$7_spellprepared}7_spellname|max};)[@{selected|repeating_spell-2_$8_spellname} ](~@{selected|character_name}|repeating_spell-2_$8_spell" style="display:none; display: block@{selected|repeating_spell-2_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$8_spellprepared}8_spellname|max};)[@{selected|repeating_spell-2_$9_spellname} ](~@{selected|character_name}|repeating_spell-2_$9_spell" style="display:none; display: block@{selected|repeating_spell-2_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$9_spellprepared}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:none; display: block@{selected|repeating_spell-3_$0_spellname|max};)[@{selected|repeating_spell-3_$0_spellname} ](~@{selected|character_name}|repeating_spell-3_$0_spell" style="display:none; display: block@{selected|repeating_spell-3_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$0_spellprepared}0_spellname|max};)[@{selected|repeating_spell-3_$1_spellname} ](~@{selected|character_name}|repeating_spell-3_$1_spell" style="display:none; display: block@{selected|repeating_spell-3_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$1_spellprepared}1_spellname|max};)[@{selected|repeating_spell-3_$2_spellname} ](~@{selected|character_name}|repeating_spell-3_$2_spell" style="display:none; display: block@{selected|repeating_spell-3_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$2_spellprepared}2_spellname|max};)[@{selected|repeating_spell-3_$3_spellname} ](~@{selected|character_name}|repeating_spell-3_$3_spell" style="display:none; display: block@{selected|repeating_spell-3_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$3_spellprepared}3_spellname|max};)[@{selected|repeating_spell-3_$4_spellname} ](~@{selected|character_name}|repeating_spell-3_$4_spell" style="display:none; display: block@{selected|repeating_spell-3_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$4_spellprepared}4_spellname|max};)[@{selected|repeating_spell-3_$5_spellname} ](~@{selected|character_name}|repeating_spell-3_$5_spell" style="display:none; display: block@{selected|repeating_spell-3_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$5_spellprepared}5_spellname|max};)[@{selected|repeating_spell-3_$6_spellname} ](~@{selected|character_name}|repeating_spell-3_$6_spell" style="display:none; display: block@{selected|repeating_spell-3_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$6_spellprepared}6_spellname|max};)[@{selected|repeating_spell-3_$7_spellname} ](~@{selected|character_name}|repeating_spell-3_$7_spell" style="display:none; display: block@{selected|repeating_spell-3_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$7_spellprepared}7_spellname|max};)[@{selected|repeating_spell-3_$8_spellname} ](~@{selected|character_name}|repeating_spell-3_$8_spell" style="display:none; display: block@{selected|repeating_spell-3_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$8_spellprepared}8_spellname|max};)[@{selected|repeating_spell-3_$9_spellname} ](~@{selected|character_name}|repeating_spell-3_$9_spell" style="display:none; display: block@{selected|repeating_spell-3_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$9_spellprepared}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:none; display: block@{selected|repeating_spell-4_$0_spellname|max};)[@{selected|repeating_spell-4_$0_spellname} ](~@{selected|character_name}|repeating_spell-4_$0_spell" style="display:none; display: block@{selected|repeating_spell-4_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$0_spellprepared}0_spellname|max};)[@{selected|repeating_spell-4_$1_spellname} ](~@{selected|character_name}|repeating_spell-4_$1_spell" style="display:none; display: block@{selected|repeating_spell-4_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$1_spellprepared}1_spellname|max};)[@{selected|repeating_spell-4_$2_spellname} ](~@{selected|character_name}|repeating_spell-4_$2_spell" style="display:none; display: block@{selected|repeating_spell-4_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$2_spellprepared}2_spellname|max};)[@{selected|repeating_spell-4_$3_spellname} ](~@{selected|character_name}|repeating_spell-4_$3_spell" style="display:none; display: block@{selected|repeating_spell-4_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$3_spellprepared}3_spellname|max};)[@{selected|repeating_spell-4_$4_spellname} ](~@{selected|character_name}|repeating_spell-4_$4_spell" style="display:none; display: block@{selected|repeating_spell-4_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$4_spellprepared}4_spellname|max};)[@{selected|repeating_spell-4_$5_spellname} ](~@{selected|character_name}|repeating_spell-4_$5_spell" style="display:none; display: block@{selected|repeating_spell-4_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$5_spellprepared}5_spellname|max};)[@{selected|repeating_spell-4_$6_spellname} ](~@{selected|character_name}|repeating_spell-4_$6_spell" style="display:none; display: block@{selected|repeating_spell-4_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$6_spellprepared}6_spellname|max};)[@{selected|repeating_spell-4_$7_spellname} ](~@{selected|character_name}|repeating_spell-4_$7_spell" style="display:none; display: block@{selected|repeating_spell-4_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$7_spellprepared}7_spellname|max};)[@{selected|repeating_spell-4_$8_spellname} ](~@{selected|character_name}|repeating_spell-4_$8_spell" style="display:none; display: block@{selected|repeating_spell-4_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$8_spellprepared}8_spellname|max};)[@{selected|repeating_spell-4_$9_spellname} ](~@{selected|character_name}|repeating_spell-4_$9_spell" style="display:none; display: block@{selected|repeating_spell-4_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$9_spellprepared}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:none; display: block@{selected|repeating_spell-5_$0_spellname|max};)[@{selected|repeating_spell-5_$0_spellname} ](~@{selected|character_name}|repeating_spell-5_$0_spell" style="display:none; display: block@{selected|repeating_spell-5_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$0_spellprepared}0_spellname|max};)[@{selected|repeating_spell-5_$1_spellname} ](~@{selected|character_name}|repeating_spell-5_$1_spell" style="display:none; display: block@{selected|repeating_spell-5_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$1_spellprepared}1_spellname|max};)[@{selected|repeating_spell-5_$2_spellname} ](~@{selected|character_name}|repeating_spell-5_$2_spell" style="display:none; display: block@{selected|repeating_spell-5_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$2_spellprepared}2_spellname|max};)[@{selected|repeating_spell-5_$3_spellname} ](~@{selected|character_name}|repeating_spell-5_$3_spell" style="display:none; display: block@{selected|repeating_spell-5_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$3_spellprepared}3_spellname|max};)[@{selected|repeating_spell-5_$4_spellname} ](~@{selected|character_name}|repeating_spell-5_$4_spell" style="display:none; display: block@{selected|repeating_spell-5_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$4_spellprepared}4_spellname|max};)[@{selected|repeating_spell-5_$5_spellname} ](~@{selected|character_name}|repeating_spell-5_$5_spell" style="display:none; display: block@{selected|repeating_spell-5_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$5_spellprepared}5_spellname|max};)[@{selected|repeating_spell-5_$6_spellname} ](~@{selected|character_name}|repeating_spell-5_$6_spell" style="display:none; display: block@{selected|repeating_spell-5_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$6_spellprepared}6_spellname|max};)[@{selected|repeating_spell-5_$7_spellname} ](~@{selected|character_name}|repeating_spell-5_$7_spell" style="display:none; display: block@{selected|repeating_spell-5_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$7_spellprepared}7_spellname|max};)[@{selected|repeating_spell-5_$8_spellname} ](~@{selected|character_name}|repeating_spell-5_$8_spell" style="display:none; display: block@{selected|repeating_spell-5_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$8_spellprepared}8_spellname|max};)[@{selected|repeating_spell-5_$9_spellname} ](~@{selected|character_name}|repeating_spell-5_$9_spell" style="display:none; display: block@{selected|repeating_spell-5_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$9_spellprepared}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:none; display: block@{selected|repeating_spell-6_$0_spellname|max};)[@{selected|repeating_spell-6_$0_spellname} ](~@{selected|character_name}|repeating_spell-6_$0_spell" style="display:none; display: block@{selected|repeating_spell-6_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$0_spellprepared}0_spellname|max};)[@{selected|repeating_spell-6_$1_spellname} ](~@{selected|character_name}|repeating_spell-6_$1_spell" style="display:none; display: block@{selected|repeating_spell-6_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$1_spellprepared}1_spellname|max};)[@{selected|repeating_spell-6_$2_spellname} ](~@{selected|character_name}|repeating_spell-6_$2_spell" style="display:none; display: block@{selected|repeating_spell-6_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$2_spellprepared}2_spellname|max};)[@{selected|repeating_spell-6_$3_spellname} ](~@{selected|character_name}|repeating_spell-6_$3_spell" style="display:none; display: block@{selected|repeating_spell-6_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$3_spellprepared}3_spellname|max};)[@{selected|repeating_spell-6_$4_spellname} ](~@{selected|character_name}|repeating_spell-6_$4_spell" style="display:none; display: block@{selected|repeating_spell-6_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$4_spellprepared}4_spellname|max};)[@{selected|repeating_spell-6_$5_spellname} ](~@{selected|character_name}|repeating_spell-6_$5_spell" style="display:none; display: block@{selected|repeating_spell-6_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$5_spellprepared}5_spellname|max};)[@{selected|repeating_spell-6_$6_spellname} ](~@{selected|character_name}|repeating_spell-6_$6_spell" style="display:none; display: block@{selected|repeating_spell-6_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$6_spellprepared}6_spellname|max};)[@{selected|repeating_spell-6_$7_spellname} ](~@{selected|character_name}|repeating_spell-6_$7_spell" style="display:none; display: block@{selected|repeating_spell-6_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$7_spellprepared}7_spellname|max};)[@{selected|repeating_spell-6_$8_spellname} ](~@{selected|character_name}|repeating_spell-6_$8_spell" style="display:none; display: block@{selected|repeating_spell-6_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$8_spellprepared}8_spellname|max};)[@{selected|repeating_spell-6_$9_spellname} ](~@{selected|character_name}|repeating_spell-6_$9_spell" style="display:none; display: block@{selected|repeating_spell-6_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$9_spellprepared}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:none; display: block@{selected|repeating_spell-7_$0_spellname|max};)[@{selected|repeating_spell-7_$0_spellname} ](~@{selected|character_name}|repeating_spell-7_$0_spell" style="display:none; display: block@{selected|repeating_spell-7_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$0_spellprepared}0_spellname|max};)[@{selected|repeating_spell-7_$1_spellname} ](~@{selected|character_name}|repeating_spell-7_$1_spell" style="display:none; display: block@{selected|repeating_spell-7_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$1_spellprepared}1_spellname|max};)[@{selected|repeating_spell-7_$2_spellname} ](~@{selected|character_name}|repeating_spell-7_$2_spell" style="display:none; display: block@{selected|repeating_spell-7_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$2_spellprepared}2_spellname|max};)[@{selected|repeating_spell-7_$3_spellname} ](~@{selected|character_name}|repeating_spell-7_$3_spell" style="display:none; display: block@{selected|repeating_spell-7_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$3_spellprepared}3_spellname|max};)[@{selected|repeating_spell-7_$4_spellname} ](~@{selected|character_name}|repeating_spell-7_$4_spell" style="display:none; display: block@{selected|repeating_spell-7_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$4_spellprepared}4_spellname|max};)[@{selected|repeating_spell-7_$5_spellname} ](~@{selected|character_name}|repeating_spell-7_$5_spell" style="display:none; display: block@{selected|repeating_spell-7_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$5_spellprepared}5_spellname|max};)[@{selected|repeating_spell-7_$6_spellname} ](~@{selected|character_name}|repeating_spell-7_$6_spell" style="display:none; display: block@{selected|repeating_spell-7_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$6_spellprepared}6_spellname|max};)[@{selected|repeating_spell-7_$7_spellname} ](~@{selected|character_name}|repeating_spell-7_$7_spell" style="display:none; display: block@{selected|repeating_spell-7_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$7_spellprepared}7_spellname|max};)[@{selected|repeating_spell-7_$8_spellname} ](~@{selected|character_name}|repeating_spell-7_$8_spell" style="display:none; display: block@{selected|repeating_spell-7_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$8_spellprepared}8_spellname|max};)[@{selected|repeating_spell-7_$9_spellname} ](~@{selected|character_name}|repeating_spell-7_$9_spell" style="display:none; display: block@{selected|repeating_spell-7_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$9_spellprepared}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:none; display: block@{selected|repeating_spell-8_$0_spellname|max};)[@{selected|repeating_spell-8_$0_spellname} ](~@{selected|character_name}|repeating_spell-8_$0_spell" style="display:none; display: block@{selected|repeating_spell-8_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$0_spellprepared}0_spellname|max};)[@{selected|repeating_spell-8_$1_spellname} ](~@{selected|character_name}|repeating_spell-8_$1_spell" style="display:none; display: block@{selected|repeating_spell-8_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$1_spellprepared}1_spellname|max};)[@{selected|repeating_spell-8_$2_spellname} ](~@{selected|character_name}|repeating_spell-8_$2_spell" style="display:none; display: block@{selected|repeating_spell-8_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$2_spellprepared}2_spellname|max};)[@{selected|repeating_spell-8_$3_spellname} ](~@{selected|character_name}|repeating_spell-8_$3_spell" style="display:none; display: block@{selected|repeating_spell-8_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$3_spellprepared}3_spellname|max};)[@{selected|repeating_spell-8_$4_spellname} ](~@{selected|character_name}|repeating_spell-8_$4_spell" style="display:none; display: block@{selected|repeating_spell-8_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$4_spellprepared}4_spellname|max};)[@{selected|repeating_spell-8_$5_spellname} ](~@{selected|character_name}|repeating_spell-8_$5_spell" style="display:none; display: block@{selected|repeating_spell-8_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$5_spellprepared}5_spellname|max};)[@{selected|repeating_spell-8_$6_spellname} ](~@{selected|character_name}|repeating_spell-8_$6_spell" style="display:none; display: block@{selected|repeating_spell-8_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$6_spellprepared}6_spellname|max};)[@{selected|repeating_spell-8_$7_spellname} ](~@{selected|character_name}|repeating_spell-8_$7_spell" style="display:none; display: block@{selected|repeating_spell-8_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$7_spellprepared}7_spellname|max};)[@{selected|repeating_spell-8_$8_spellname} ](~@{selected|character_name}|repeating_spell-8_$8_spell" style="display:none; display: block@{selected|repeating_spell-8_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$8_spellprepared}8_spellname|max};)[@{selected|repeating_spell-8_$9_spellname} ](~@{selected|character_name}|repeating_spell-8_$9_spell" style="display:none; display: block@{selected|repeating_spell-8_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$9_spellprepared}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:none; display: block@{selected|repeating_spell-9_$0_spellname|max};)[@{selected|repeating_spell-9_$0_spellname} ](~@{selected|character_name}|repeating_spell-9_$0_spell" style="display:none; display: block@{selected|repeating_spell-9_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$0_spellprepared}0_spellname|max};)[@{selected|repeating_spell-9_$1_spellname} ](~@{selected|character_name}|repeating_spell-9_$1_spell" style="display:none; display: block@{selected|repeating_spell-9_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$1_spellprepared}1_spellname|max};)[@{selected|repeating_spell-9_$2_spellname} ](~@{selected|character_name}|repeating_spell-9_$2_spell" style="display:none; display: block@{selected|repeating_spell-9_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$2_spellprepared}2_spellname|max};)[@{selected|repeating_spell-9_$3_spellname} ](~@{selected|character_name}|repeating_spell-9_$3_spell" style="display:none; display: block@{selected|repeating_spell-9_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$3_spellprepared}3_spellname|max};)[@{selected|repeating_spell-9_$4_spellname} ](~@{selected|character_name}|repeating_spell-9_$4_spell" style="display:none; display: block@{selected|repeating_spell-9_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$4_spellprepared}4_spellname|max};)[@{selected|repeating_spell-9_$5_spellname} ](~@{selected|character_name}|repeating_spell-9_$5_spell" style="display:none; display: block@{selected|repeating_spell-9_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$5_spellprepared}5_spellname|max};)[@{selected|repeating_spell-9_$6_spellname} ](~@{selected|character_name}|repeating_spell-9_$6_spell" style="display:none; display: block@{selected|repeating_spell-9_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$6_spellprepared}6_spellname|max};)[@{selected|repeating_spell-9_$7_spellname} ](~@{selected|character_name}|repeating_spell-9_$7_spell" style="display:none; display: block@{selected|repeating_spell-9_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$7_spellprepared}7_spellname|max};)[@{selected|repeating_spell-9_$8_spellname} ](~@{selected|character_name}|repeating_spell-9_$8_spell" style="display:none; display: block@{selected|repeating_spell-9_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$8_spellprepared}8_spellname|max};)[@{selected|repeating_spell-9_$9_spellname} ](~@{selected|character_name}|repeating_spell-9_$9_spell" style="display:none; display: block@{selected|repeating_spell-9_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$9_spellprepared}9_spellname|max};)}} {{name=Spellbook}} &{noerror}
Universal macro for all  NPC Prepared Spells, with style modifications /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:none; 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; color: purple; display:none; 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; color: purple; display:none; 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; color: purple; display:none; 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; color: purple; display:none; 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; color: purple; display:none; 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; color: purple; display:none; 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; color: purple; display:none; 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; color: purple; display:none; 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; color: purple; display:none; 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; color: purple; display:none; 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:none; 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; color: purple; display:none; display: block@{selected|repeating_spell-1_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$0_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-1_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$1_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-1_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$2_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-1_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$3_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-1_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$4_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-1_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$5_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-1_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$6_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-1_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$7_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-1_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$8_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-1_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-1_$@{selected|repeating_spell-1_$9_spellprepared}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:none; 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; color: purple; display:none; display: block@{selected|repeating_spell-2_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$0_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-2_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$1_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-2_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$2_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-2_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$3_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-2_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$4_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-2_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$5_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-2_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$6_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-2_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$7_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-2_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$8_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-2_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-2_$@{selected|repeating_spell-2_$9_spellprepared}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:none; 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; color: purple; display:none; display: block@{selected|repeating_spell-3_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$0_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-3_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$1_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-3_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$2_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-3_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$3_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-3_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$4_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-3_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$5_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-3_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$6_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-3_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$7_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-3_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$8_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-3_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-3_$@{selected|repeating_spell-3_$9_spellprepared}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:none; 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; color: purple; display:none; display: block@{selected|repeating_spell-4_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$0_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-4_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$1_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-4_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$2_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-4_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$3_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-4_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$4_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-4_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$5_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-4_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$6_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-4_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$7_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-4_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$8_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-4_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-4_$@{selected|repeating_spell-4_$9_spellprepared}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:none; 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; color: purple; display:none; display: block@{selected|repeating_spell-5_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$0_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-5_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$1_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-5_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$2_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-5_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$3_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-5_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$4_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-5_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$5_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-5_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$6_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-5_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$7_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-5_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$8_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-5_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-5_$@{selected|repeating_spell-5_$9_spellprepared}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:none; 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; color: purple; display:none; display: block@{selected|repeating_spell-6_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$0_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-6_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$1_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-6_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$2_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-6_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$3_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-6_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$4_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-6_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$5_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-6_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$6_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-6_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$7_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-6_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$8_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-6_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-6_$@{selected|repeating_spell-6_$9_spellprepared}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:none; 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; color: purple; display:none; display: block@{selected|repeating_spell-7_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$0_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-7_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$1_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-7_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$2_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-7_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$3_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-7_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$4_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-7_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$5_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-7_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$6_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-7_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$7_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-7_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$8_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-7_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-7_$@{selected|repeating_spell-7_$9_spellprepared}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:none; 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; color: purple; display:none; display: block@{selected|repeating_spell-8_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$0_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-8_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$1_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-8_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$2_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-8_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$3_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-8_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$4_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-8_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$5_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-8_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$6_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-8_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$7_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-8_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$8_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-8_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-8_$@{selected|repeating_spell-8_$9_spellprepared}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:none; 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; color: purple; display:none; display: block@{selected|repeating_spell-9_$0_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$0_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-9_$1_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$1_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-9_$2_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$2_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-9_$3_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$3_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-9_$4_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$4_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-9_$5_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$5_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-9_$6_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$6_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-9_$7_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$7_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-9_$8_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$8_spellprepared}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; color: purple; display:none; display: block@{selected|repeating_spell-9_$9_spellname|max}; display: none@{DIV|sel}|repeating_spell-9_$@{selected|repeating_spell-9_$9_spellprepared}9_spellname|max};)}} {{name=Spellbook}} &{noerror} This is much longer than it needs to be, as it allows for 10 spells per level.  I've got the whole thing in an Excel spreadsheet, so it would be pretty easy to pare it down to only 5 or 6 spells per level if needed. I also wrote a nice long explanation of why the prepared spells work differently than simply not displaying a spell... but then I hit submit and Roll20 deleted it all... so I'm not sure I want to write it all over again. :)
Universal macro for all  NPC Abilities and Saving Throws, without style modifications Borrowed the initial structure from Keith here . /w gm &{template:npcaction} &{noerror}{{rname=@{selected|npc_name}}}{{name=Ability Rolls, Saves, & Skill Checks}}{{description=**Abilities** [**Str @{selected|strength}** *(@{selected|strength_mod})*](~selected|npc_str) | [save](~selected|npc_str_save) [**Dex @{selected|dexterity}** *(@{selected|dexterity_mod})*](~selected|npc_dex) | [save](~selected|npc_dex_save) [**Con @{selected|constitution}** *(@{selected|constitution_mod})*](~selected|npc_con) | [save](~selected|npc_con_save) [**Int @{selected|intelligence}** *(@{selected|intelligence_mod})*](~selected|npc_int) | [save](~selected|npc_int_save) [**Wis @{selected|wisdom}** *(@{selected|wisdom_mod})*](~selected|npc_wis) | [save](~selected|npc_wis_save) [**Cha @{selected|charisma}** *(@{selected|charisma_mod})*](~selected|npc_cha) | [save](~selected|npc_cha_save) **Skills** [Acrobatics](~selected|npc_Acrobatics) | [Animal Handling](~selected|npc_Animal_Handling) | [Arcana](~selected|npc_Arcana) | [Athletics](~selected|npc_Athletics) | [Deception](~selected|npc_Deception) | [History](~selected|npc_History) | [Insight](~selected|npc_Insight) | [Intimidation](~selected|npc_Intimidation) | [Investigation](~selected|npc_Investigation) | [Medicine](~selected|npc_Medicine) | [Nature](~selected|npc_Nature) | [Perception](~selected|npc_Perception) | [Performance](~selected|npc_Performance) | [Persuasion](~selected|npc_Persuasion) | [Religion](~selected|npc_Religion) | [Sleight of Hand](~selected|npc_Sleight_of_Hand) | [Stealth](~selected|npc_stealth) | [Survival](~selected|npc_survival)}} Universal macro for all  NPC Abilities and Saving Throws, with style modifications Prettier color-coded version: /w gm &{template:npcaction} &{noerror}{{rname=@{selected|npc_name}}}{{name=Ability Rolls, Saves, & Skill Checks}}{{description=**Abilities** [**Str @{selected|strength}** *(@{selected|strength_mod})*](~selected|npc_str" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: red;) | [save](~selected|npc_str_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: red;) [**Dex @{selected|dexterity}** *(@{selected|dexterity_mod})*](~selected|npc_dex" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: darkorange;) | [save](~selected|npc_dex_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: darkorange;) [**Con @{selected|constitution}** *(@{selected|constitution_mod})*](~selected|npc_con" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: gold;) | [save](~selected|npc_con_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: gold;) [**Int @{selected|intelligence}** *(@{selected|intelligence_mod})*](~selected|npc_int" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: green;) | [save](~selected|npc_int_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: green;) [**Wis @{selected|wisdom}** *(@{selected|wisdom_mod})*](~selected|npc_wis" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: blue;) | [save](~selected|npc_wis_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: blue;) [**Cha @{selected|charisma}** *(@{selected|charisma_mod})*](~selected|npc_cha" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: purple;) | [save](~selected|npc_cha_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: purple;) **Skills** [Acrobatics](~selected|npc_Acrobatics" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: darkorange;) | [Animal Handling](~selected|npc_Animal_Handling" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: blue;) | [Arcana](~selected|npc_Arcana" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: green;) | [Athletics](~selected|npc_Athletics" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: red;) | [Deception](~selected|npc_Deception" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: purple;) | [History](~selected|npc_History" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: green;) | [Insight](~selected|npc_Insight" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: blue;) | [Intimidation](~selected|npc_Intimidation" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: purple;) | [Investigation](~selected|npc_Investigation" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: green;) | [Medicine](~selected|npc_Medicine" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: blue;) | [Nature](~selected|npc_Nature" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: green;) | [Perception](~selected|npc_Perception" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: blue;) | [Performance](~selected|npc_Performance" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: purple;) | [Persuasion](~selected|npc_Persuasion" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: purple;) | [Religion](~selected|npc_Religion" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: green;) | [Sleight of Hand](~selected|npc_Sleight_of_Hand" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: darkorange;) | [Stealth](~selected|npc_stealth" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: darkorange;) | [Survival](~selected|npc_survival" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: blue;)}} Or all black text: /w gm &{template:npcaction} &{noerror}{{rname=@{selected|npc_name}}}{{name=Ability Rolls, Saves, & Skill Checks}}{{description=**Abilities** [**Str @{selected|strength}** *(@{selected|strength_mod})*](~selected|npc_str" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [save](~selected|npc_str_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) [**Dex @{selected|dexterity}** *(@{selected|dexterity_mod})*](~selected|npc_dex" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [save](~selected|npc_dex_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) [**Con @{selected|constitution}** *(@{selected|constitution_mod})*](~selected|npc_con" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [save](~selected|npc_con_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) [**Int @{selected|intelligence}** *(@{selected|intelligence_mod})*](~selected|npc_int" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [save](~selected|npc_int_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) [**Wis @{selected|wisdom}** *(@{selected|wisdom_mod})*](~selected|npc_wis" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [save](~selected|npc_wis_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) [**Cha @{selected|charisma}** *(@{selected|charisma_mod})*](~selected|npc_cha" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [save](~selected|npc_cha_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) **Skills** [Acrobatics](~selected|npc_Acrobatics" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Animal Handling](~selected|npc_Animal_Handling" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Arcana](~selected|npc_Arcana" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Athletics](~selected|npc_Athletics" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Deception](~selected|npc_Deception" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [History](~selected|npc_History" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Insight](~selected|npc_Insight" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Intimidation](~selected|npc_Intimidation" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Investigation](~selected|npc_Investigation" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Medicine](~selected|npc_Medicine" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Nature](~selected|npc_Nature" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Perception](~selected|npc_Perception" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Performance](~selected|npc_Performance" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Persuasion](~selected|npc_Persuasion" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Religion](~selected|npc_Religion" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Sleight of Hand](~selected|npc_Sleight_of_Hand" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Stealth](~selected|npc_stealth" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;) | [Survival](~selected|npc_survival" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: black;)}} Or one with the nice pink font so it's easy to tell they're all links: /w gm &{template:npcaction} &{noerror}{{rname=@{selected|npc_name}}}{{name=Ability Rolls, Saves, & Skill Checks}}{{description=**Abilities** [**Str @{selected|strength}** *(@{selected|strength_mod})*](~selected|npc_str" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [save](~selected|npc_str_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) [**Dex @{selected|dexterity}** *(@{selected|dexterity_mod})*](~selected|npc_dex" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [save](~selected|npc_dex_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) [**Con @{selected|constitution}** *(@{selected|constitution_mod})*](~selected|npc_con" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [save](~selected|npc_con_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) [**Int @{selected|intelligence}** *(@{selected|intelligence_mod})*](~selected|npc_int" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [save](~selected|npc_int_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) [**Wis @{selected|wisdom}** *(@{selected|wisdom_mod})*](~selected|npc_wis" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [save](~selected|npc_wis_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) [**Cha @{selected|charisma}** *(@{selected|charisma_mod})*](~selected|npc_cha" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [save](~selected|npc_cha_save" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) **Skills** [Acrobatics](~selected|npc_Acrobatics" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Animal Handling](~selected|npc_Animal_Handling" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Arcana](~selected|npc_Arcana" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Athletics](~selected|npc_Athletics" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Deception](~selected|npc_Deception" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [History](~selected|npc_History" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Insight](~selected|npc_Insight" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Intimidation](~selected|npc_Intimidation" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Investigation](~selected|npc_Investigation" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Medicine](~selected|npc_Medicine" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Nature](~selected|npc_Nature" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Perception](~selected|npc_Perception" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Performance](~selected|npc_Performance" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Persuasion](~selected|npc_Persuasion" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Religion](~selected|npc_Religion" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Sleight of Hand](~selected|npc_Sleight_of_Hand" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Stealth](~selected|npc_stealth" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;) | [Survival](~selected|npc_survival" style="background: none; background-color: transparent; border: none; padding: 0px; text-decoration: none; color: #ce0f69;)}}
When I test the macro it doesn't show any errors about attributes not being found, however when I use it as a token action all the missing attributes show up in chat
1625589425
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Do you have a token selected when you run it?
Which macro? Is the token action the macro itself, or is it calling a separate macro/token action?  Because of how the &{noerror} works, it has to be called separately.
It's the universal macros you posted above for actions, spells, etc. they all have the same issue. The token action is calling the macro directly, so how do I work around that? Thank you for the help, I'm slowly getting the hang of this since subscribing about a week ago, I've had so many Eureka! moments getting stuff to work!
The setup can be a little tricky and has to be done in a specific way. Where  each macro is saved is important to how they are called. If your macro is named "AbilitiesMacro" and is on the Collections tab (not on a macro mule), then your character has an ability macro named "Abilities" that is set up as a Token Action, this is what it should look like: #AbilitiesMacro &{noerror}
So would I need to save that as an ability for each npc?
1625600082

Edited 1625600315
Chris B. said: So would I need to save that as an ability for each npc? You could  save it as an ability for each NPC. I misunderstood you and thought that's what you were trying to do.  If you want to have a "universal" Collections macro, you have to create two  macros on the Collections tab. Step 1:  Create a macro called ' AbilitiesMacro ' with the entire NPC Abilities code in it (choose either with styling or without). This should not have the 'Show as Token Action' box checked . Step 2: Then create a second macro called ' Abilities ' with this: #AbilitiesMacro &{noerror} Step 3:  Then set the ' Abilities ' macro to 'Show as Token Action'. The 'Abilities' macro is used to call the 'AbilitiesMacro' macro, which makes the &{noerror} work.  If you try to use the 'AbilitiesMacro' directly, the &{noerror} doesn't work for some reason, even though &{noerror} is included there.  I don't know why. If this still isn't working, feel free to send me an invite to your game and I'll take a look.
That worked perfectly, thank you!
Out of curiosity, is there any way to set this up to pull data directly out of the compendium? say, for the conjured animals spell (and similar spells), and wildshapes, so as to avoid having a folder of, well, all the beasts, fey, minor elementals, elementals, and wildshape variants in it?  asking for a... me.
Dalton said: Out of curiosity, is there any way to set this up to pull data directly out of the compendium? say, for the conjured animals spell (and similar spells), and wildshapes, so as to avoid having a folder of, well, all the beasts, fey, minor elementals, elementals, and wildshape variants in it?  asking for a... me. There’s no way to pull information directly from the compendium. All this macro does is reference attributes from a linked character sheet and hide all the ones that are not present. 
1628020645

Edited 1628022629
Just amazing! I had a one-week-long project of doing individual token macros for all my NPCs actions, traits, and abilities when the google algorithm decided to have pity on me and showed me this thread in an unrelated search.  Also, I tried to put some bonus action on the macro and failed. Since you seem to be someone who vows for nothing but perfectionism, could you be so kind to show me how to add bonus actions? I´ll leave you a hug and some thoughts on my prayers nonetheless. 
1628022854

Edited 1628023750
Ronaldo said: Just amazing! I had a one-week-long project of doing individual token macros for all my NPCs actions, traits, and abilities when the google algorithm decided to have pity on me and showed me this thread in an unrelated search.  I tried to put some bonus action on the macro and failed. Since you seem to be someone who vows for nothing but perfectionism, could you be so kind to show me how to add bonus actions? I´ll leave you a hug and some thoughts on my prayers nonetheless.  Sure. I've updated the macros above as well. Universal macro for all NPC Actions, Bonus Actions, Traits, Reactions, Legendary Actions, and Mythic Actions, with no style modifications. /w gm &{template:npcaction} {{rname=@{selected|token_name}}} {{name=Abilities}} {{description=[-- Actions --](" style="display:none; display: block@{selected|repeating_npcaction_$0_name|max};)[@{selected|repeating_npcaction_$0_name} ](~@{selected|character_name}|repeating_npcaction_$0_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$0_name|max};)[@{selected|repeating_npcaction_$1_name} ](~@{selected|character_name}|repeating_npcaction_$1_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$1_name|max};)[@{selected|repeating_npcaction_$2_name} ](~@{selected|character_name}|repeating_npcaction_$2_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$2_name|max};)[@{selected|repeating_npcaction_$3_name} ](~@{selected|character_name}|repeating_npcaction_$3_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$3_name|max};)[@{selected|repeating_npcaction_$4_name} ](~@{selected|character_name}|repeating_npcaction_$4_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$4_name|max};)[@{selected|repeating_npcaction_$5_name} ](~@{selected|character_name}|repeating_npcaction_$5_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$5_name|max};)[@{selected|repeating_npcaction_$6_name} ](~@{selected|character_name}|repeating_npcaction_$6_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$6_name|max};)[@{selected|repeating_npcaction_$7_name} ](~@{selected|character_name}|repeating_npcaction_$7_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$7_name|max};)[@{selected|repeating_npcaction_$8_name} ](~@{selected|character_name}|repeating_npcaction_$8_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$8_name|max};)[@{selected|repeating_npcaction_$9_name} ](~@{selected|character_name}|repeating_npcaction_$9_npc_action" style="display:none; display: block@{selected|repeating_npcaction_$9_name|max};)[-- Bonus Actions --](" style="display:none; display: block@{selected|repeating_npcbonusaction_$0_name|max};)[@{selected|repeating_npcbonusaction_$0_name} ](~@{selected|character_name}|repeating_npcbonusaction_$0_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$0_name|max};)[@{selected|repeating_npcbonusaction_$1_name} ](~@{selected|character_name}|repeating_npcbonusaction_$1_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$1_name|max};)[@{selected|repeating_npcbonusaction_$2_name} ](~@{selected|character_name}|repeating_npcbonusaction_$2_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$2_name|max};)[@{selected|repeating_npcbonusaction_$3_name} ](~@{selected|character_name}|repeating_npcbonusaction_$3_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$3_name|max};)[@{selected|repeating_npcbonusaction_$4_name} ](~@{selected|character_name}|repeating_npcbonusaction_$4_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$4_name|max};)[@{selected|repeating_npcbonusaction_$5_name} ](~@{selected|character_name}|repeating_npcbonusaction_$5_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$5_name|max};)[@{selected|repeating_npcbonusaction_$6_name} ](~@{selected|character_name}|repeating_npcbonusaction_$6_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$6_name|max};)[@{selected|repeating_npcbonusaction_$7_name} ](~@{selected|character_name}|repeating_npcbonusaction_$7_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$7_name|max};)[@{selected|repeating_npcbonusaction_$8_name} ](~@{selected|character_name}|repeating_npcbonusaction_$8_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$8_name|max};)[@{selected|repeating_npcbonusaction_$9_name} ](~@{selected|character_name}|repeating_npcbonusaction_$9_npc_action" style="display:none; display: block@{selected|repeating_npcbonusaction_$9_name|max};)[-- Traits --](" style="display:none; display: block@{selected|repeating_npctrait_$0_name|max};)[@{selected|repeating_npctrait_$0_name} ](~@{selected|character_name}|repeating_npctrait_$0_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$0_name|max};)[@{selected|repeating_npctrait_$1_name} ](~@{selected|character_name}|repeating_npctrait_$1_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$1_name|max};)[@{selected|repeating_npctrait_$2_name} ](~@{selected|character_name}|repeating_npctrait_$2_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$2_name|max};)[@{selected|repeating_npctrait_$3_name} ](~@{selected|character_name}|repeating_npctrait_$3_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$3_name|max};)[@{selected|repeating_npctrait_$4_name} ](~@{selected|character_name}|repeating_npctrait_$4_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$4_name|max};)[@{selected|repeating_npctrait_$5_name} ](~@{selected|character_name}|repeating_npctrait_$5_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$5_name|max};)[@{selected|repeating_npctrait_$6_name} ](~@{selected|character_name}|repeating_npctrait_$6_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$6_name|max};)[@{selected|repeating_npctrait_$7_name} ](~@{selected|character_name}|repeating_npctrait_$7_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$7_name|max};)[@{selected|repeating_npctrait_$8_name} ](~@{selected|character_name}|repeating_npctrait_$8_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$8_name|max};)[@{selected|repeating_npctrait_$9_name} ](~@{selected|character_name}|repeating_npctrait_$9_npc_roll_output" style="display:none; display: block@{selected|repeating_npctrait_$9_name|max};)[-- Reactions --](" style="display:none; display: block@{selected|repeating_npcreaction_$0_name|max};)[@{selected|repeating_npcreaction_$0_name} ](~@{selected|character_name}|repeating_npcreaction_$0_oll_output" style="display:none; display: block@{selected|repeating_npcreaction_$0_name|max};)[@{selected|repeating_npcreaction_$1_name} ](~@{selected|character_name}|repeating_npcreaction_$1_oll_output" style="display:none; display: block@{selected|repeating_npcreaction_$1_name|max};)[@{selected|repeating_npcreaction_$2_name} ](~@{selected|character_name}|repeating_npcreaction_$2_oll_output" style="display:none; display: block@{selected|repeating_npcreaction_$2_name|max};)[@{selected|repeating_npcreaction_$3_name} ](~@{selected|character_name}|repeating_npcreaction_$3_oll_output" style="display:none; display: block@{selected|repeating_npcreaction_$3_name|max};)[@{selected|repeating_npcreaction_$4_name} ](~@{selected|character_name}|repeating_npcreaction_$4_oll_output" style="display:none; display: block@{selected|repeating_npcreaction_$4_name|max};)[@{selected|repeating_npcreaction_$5_name} ](~@{selected|character_name}|repeating_npcreaction_$5_oll_output" style="display:none; display: block@{selected|repeating_npcreaction_$5_name|max};)[@{selected|repeating_npcreaction_$6_name} ](~@{selected|character_name}|repeating_npcreaction_$6_oll_output" style="display:none; display: block@{selected|repeating_npcreaction_$6_name|max};)[@{selected|repeating_npcreaction_$7_name} ](~@{selected|character_name}|repeating_npcreaction_$7_oll_output" style="display:none; display: block@{selected|repeating_npcreaction_$7_name|max};)[@{selected|repeating_npcreaction_$8_name} ](~@{selected|character_name}|repeating_npcreaction_$8_oll_output" style="display:none; display: block@{selected|repeating_npcreaction_$8_name|max};)[@{selected|repeating_npcreaction_$9_name} ](~@{selected|character_name}|repeating_npcreaction_$9_oll_output" style="display:none; display: block@{selected|repeating_npcreaction_$9_name|max};)[-- Legendary Actions --](" style="display:none; display: block@{selected|repeating_npcaction-l_$0_name|max};)[@{selected|repeating_npcaction-l_$0_name} ](~@{selected|character_name}|repeating_npcaction-l_$0_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$0_name|max};)[@{selected|repeating_npcaction-l_$1_name} ](~@{selected|character_name}|repeating_npcaction-l_$1_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$1_name|max};)[@{selected|repeating_npcaction-l_$2_name} ](~@{selected|character_name}|repeating_npcaction-l_$2_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$2_name|max};)[@{selected|repeating_npcaction-l_$3_name} ](~@{selected|character_name}|repeating_npcaction-l_$3_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$3_name|max};)[@{selected|repeating_npcaction-l_$4_name} ](~@{selected|character_name}|repeating_npcaction-l_$4_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$4_name|max};)[@{selected|repeating_npcaction-l_$5_name} ](~@{selected|character_name}|repeating_npcaction-l_$5_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$5_name|max};)[@{selected|repeating_npcaction-l_$6_name} ](~@{selected|character_name}|repeating_npcaction-l_$6_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$6_name|max};)[@{selected|repeating_npcaction-l_$7_name} ](~@{selected|character_name}|repeating_npcaction-l_$7_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$7_name|max};)[@{selected|repeating_npcaction-l_$8_name} ](~@{selected|character_name}|repeating_npcaction-l_$8_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$8_name|max};)[@{selected|repeating_npcaction-l_$9_name} ](~@{selected|character_name}|repeating_npcaction-l_$9_npc_action" style="display:none; display: block@{selected|repeating_npcaction-l_$9_name|max};)[-- Mythic Actions --](" style="display:none; display: block@{selected|repeating_npcaction-m_$0_name|max};)[@{selected|repeating_npcaction-m_$0_name} ](~@{selected|character_name}|repeating_npcaction-m_$0_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$0_name|max};)[@{selected|repeating_npcaction-m_$1_name} ](~@{selected|character_name}|repeating_npcaction-m_$1_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$1_name|max};)[@{selected|repeating_npcaction-m_$2_name} ](~@{selected|character_name}|repeating_npcaction-m_$2_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$2_name|max};)[@{selected|repeating_npcaction-m_$3_name} ](~@{selected|character_name}|repeating_npcaction-m_$3_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$3_name|max};)[@{selected|repeating_npcaction-m_$4_name} ](~@{selected|character_name}|repeating_npcaction-m_$4_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$4_name|max};)[@{selected|repeating_npcaction-m_$5_name} ](~@{selected|character_name}|repeating_npcaction-m_$5_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$5_name|max};)[@{selected|repeating_npcaction-m_$6_name} ](~@{selected|character_name}|repeating_npcaction-m_$6_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$6_name|max};)[@{selected|repeating_npcaction-m_$7_name} ](~@{selected|character_name}|repeating_npcaction-m_$7_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$7_name|max};)[@{selected|repeating_npcaction-m_$8_name} ](~@{selected|character_name}|repeating_npcaction-m_$8_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$8_name|max};)[@{selected|repeating_npcaction-m_$9_name} ](~@{selected|character_name}|repeating_npcaction-m_$9_npc_action" style="display:none; display: block@{selected|repeating_npcaction-m_$9_name|max};)}}&{noerror} Universal macro for all NPC Actions, Bonus Actions, Traits, Reactions, Legendary Actions, and Mythic Actions, with style modifications. /w gm &{template:npcaction} {{rname=@{selected|token_name}}} {{name=Abilities}} {{description=[-- Actions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcaction_$0_name|max};)[@{selected|repeating_npcaction_$0_name} ](~@{selected|character_name}|repeating_npcaction_$0_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$0_name|max};)[@{selected|repeating_npcaction_$1_name} ](~@{selected|character_name}|repeating_npcaction_$1_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$1_name|max};)[@{selected|repeating_npcaction_$2_name} ](~@{selected|character_name}|repeating_npcaction_$2_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$2_name|max};)[@{selected|repeating_npcaction_$3_name} ](~@{selected|character_name}|repeating_npcaction_$3_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$3_name|max};)[@{selected|repeating_npcaction_$4_name} ](~@{selected|character_name}|repeating_npcaction_$4_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$4_name|max};)[@{selected|repeating_npcaction_$5_name} ](~@{selected|character_name}|repeating_npcaction_$5_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$5_name|max};)[@{selected|repeating_npcaction_$6_name} ](~@{selected|character_name}|repeating_npcaction_$6_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$6_name|max};)[@{selected|repeating_npcaction_$7_name} ](~@{selected|character_name}|repeating_npcaction_$7_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$7_name|max};)[@{selected|repeating_npcaction_$8_name} ](~@{selected|character_name}|repeating_npcaction_$8_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$8_name|max};)[@{selected|repeating_npcaction_$9_name} ](~@{selected|character_name}|repeating_npcaction_$9_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcaction_$9_name|max};)[-- Bonus Actions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcbonusaction_$0_name|max};)[@{selected|repeating_npcbonusaction_$0_name} ](~@{selected|character_name}|repeating_npcbonusaction_$0_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$0_name|max};)[@{selected|repeating_npcbonusaction_$1_name} ](~@{selected|character_name}|repeating_npcbonusaction_$1_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$1_name|max};)[@{selected|repeating_npcbonusaction_$2_name} ](~@{selected|character_name}|repeating_npcbonusaction_$2_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$2_name|max};)[@{selected|repeating_npcbonusaction_$3_name} ](~@{selected|character_name}|repeating_npcbonusaction_$3_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$3_name|max};)[@{selected|repeating_npcbonusaction_$4_name} ](~@{selected|character_name}|repeating_npcbonusaction_$4_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$4_name|max};)[@{selected|repeating_npcbonusaction_$5_name} ](~@{selected|character_name}|repeating_npcbonusaction_$5_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$5_name|max};)[@{selected|repeating_npcbonusaction_$6_name} ](~@{selected|character_name}|repeating_npcbonusaction_$6_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$6_name|max};)[@{selected|repeating_npcbonusaction_$7_name} ](~@{selected|character_name}|repeating_npcbonusaction_$7_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$7_name|max};)[@{selected|repeating_npcbonusaction_$8_name} ](~@{selected|character_name}|repeating_npcbonusaction_$8_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$8_name|max};)[@{selected|repeating_npcbonusaction_$9_name} ](~@{selected|character_name}|repeating_npcbonusaction_$9_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: red; text-decoration: none; display:none; display: block@{selected|repeating_npcbonusaction_$9_name|max};)[-- Traits --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npctrait_$0_name|max};)[@{selected|repeating_npctrait_$0_name} ](~@{selected|character_name}|repeating_npctrait_$0_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$0_name|max};)[@{selected|repeating_npctrait_$1_name} ](~@{selected|character_name}|repeating_npctrait_$1_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$1_name|max};)[@{selected|repeating_npctrait_$2_name} ](~@{selected|character_name}|repeating_npctrait_$2_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$2_name|max};)[@{selected|repeating_npctrait_$3_name} ](~@{selected|character_name}|repeating_npctrait_$3_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$3_name|max};)[@{selected|repeating_npctrait_$4_name} ](~@{selected|character_name}|repeating_npctrait_$4_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$4_name|max};)[@{selected|repeating_npctrait_$5_name} ](~@{selected|character_name}|repeating_npctrait_$5_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$5_name|max};)[@{selected|repeating_npctrait_$6_name} ](~@{selected|character_name}|repeating_npctrait_$6_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$6_name|max};)[@{selected|repeating_npctrait_$7_name} ](~@{selected|character_name}|repeating_npctrait_$7_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$7_name|max};)[@{selected|repeating_npctrait_$8_name} ](~@{selected|character_name}|repeating_npctrait_$8_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$8_name|max};)[@{selected|repeating_npctrait_$9_name} ](~@{selected|character_name}|repeating_npctrait_$9_npc_roll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: blue; text-decoration: none; display:none; display: block@{selected|repeating_npctrait_$9_name|max};)[-- Reactions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcreaction_$0_name|max};)[@{selected|repeating_npcreaction_$0_name} ](~@{selected|character_name}|repeating_npcreaction_$0_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$0_name|max};)[@{selected|repeating_npcreaction_$1_name} ](~@{selected|character_name}|repeating_npcreaction_$1_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$1_name|max};)[@{selected|repeating_npcreaction_$2_name} ](~@{selected|character_name}|repeating_npcreaction_$2_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$2_name|max};)[@{selected|repeating_npcreaction_$3_name} ](~@{selected|character_name}|repeating_npcreaction_$3_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$3_name|max};)[@{selected|repeating_npcreaction_$4_name} ](~@{selected|character_name}|repeating_npcreaction_$4_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$4_name|max};)[@{selected|repeating_npcreaction_$5_name} ](~@{selected|character_name}|repeating_npcreaction_$5_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$5_name|max};)[@{selected|repeating_npcreaction_$6_name} ](~@{selected|character_name}|repeating_npcreaction_$6_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$6_name|max};)[@{selected|repeating_npcreaction_$7_name} ](~@{selected|character_name}|repeating_npcreaction_$7_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$7_name|max};)[@{selected|repeating_npcreaction_$8_name} ](~@{selected|character_name}|repeating_npcreaction_$8_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$8_name|max};)[@{selected|repeating_npcreaction_$9_name} ](~@{selected|character_name}|repeating_npcreaction_$9_oll_output" style="background: none; background-color: transparent; border: none; padding: 0px; color: green; text-decoration: none; display:none; display: block@{selected|repeating_npcreaction_$9_name|max};)[-- Legendary Actions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcaction-l_$0_name|max};)[@{selected|repeating_npcaction-l_$0_name} ](~@{selected|character_name}|repeating_npcaction-l_$0_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$0_name|max};)[@{selected|repeating_npcaction-l_$1_name} ](~@{selected|character_name}|repeating_npcaction-l_$1_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$1_name|max};)[@{selected|repeating_npcaction-l_$2_name} ](~@{selected|character_name}|repeating_npcaction-l_$2_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$2_name|max};)[@{selected|repeating_npcaction-l_$3_name} ](~@{selected|character_name}|repeating_npcaction-l_$3_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$3_name|max};)[@{selected|repeating_npcaction-l_$4_name} ](~@{selected|character_name}|repeating_npcaction-l_$4_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$4_name|max};)[@{selected|repeating_npcaction-l_$5_name} ](~@{selected|character_name}|repeating_npcaction-l_$5_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$5_name|max};)[@{selected|repeating_npcaction-l_$6_name} ](~@{selected|character_name}|repeating_npcaction-l_$6_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$6_name|max};)[@{selected|repeating_npcaction-l_$7_name} ](~@{selected|character_name}|repeating_npcaction-l_$7_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$7_name|max};)[@{selected|repeating_npcaction-l_$8_name} ](~@{selected|character_name}|repeating_npcaction-l_$8_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$8_name|max};)[@{selected|repeating_npcaction-l_$9_name} ](~@{selected|character_name}|repeating_npcaction-l_$9_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-l_$9_name|max};)[-- Mythic Actions --](" style="color: #7e2d40; font-weight: bold; text-decoration: none; background: none; background-color: transparent; border: none; padding: 0px; white-space: pre; display:none; display: block@{selected|repeating_npcaction-m_$0_name|max};)[@{selected|repeating_npcaction-m_$0_name} ](~@{selected|character_name}|repeating_npcaction-m_$0_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$0_name|max};)[@{selected|repeating_npcaction-m_$1_name} ](~@{selected|character_name}|repeating_npcaction-m_$1_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$1_name|max};)[@{selected|repeating_npcaction-m_$2_name} ](~@{selected|character_name}|repeating_npcaction-m_$2_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$2_name|max};)[@{selected|repeating_npcaction-m_$3_name} ](~@{selected|character_name}|repeating_npcaction-m_$3_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$3_name|max};)[@{selected|repeating_npcaction-m_$4_name} ](~@{selected|character_name}|repeating_npcaction-m_$4_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$4_name|max};)[@{selected|repeating_npcaction-m_$5_name} ](~@{selected|character_name}|repeating_npcaction-m_$5_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$5_name|max};)[@{selected|repeating_npcaction-m_$6_name} ](~@{selected|character_name}|repeating_npcaction-m_$6_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$6_name|max};)[@{selected|repeating_npcaction-m_$7_name} ](~@{selected|character_name}|repeating_npcaction-m_$7_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$7_name|max};)[@{selected|repeating_npcaction-m_$8_name} ](~@{selected|character_name}|repeating_npcaction-m_$8_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$8_name|max};)[@{selected|repeating_npcaction-m_$9_name} ](~@{selected|character_name}|repeating_npcaction-m_$9_npc_action" style="background: none; background-color: transparent; border: none; padding: 0px; color: orange; text-decoration: none; display:none; display: block@{selected|repeating_npcaction-m_$9_name|max};)}}&{noerror} Advanced approach for customization of abilities - part 1: Macro Mule setup - additional fields NPC Abilities & Spells macro setup instructions (option 3 - advanced approach) Abilities %{NPCAbilities|Template}%{NPCAbilities|ActionsList}%{NPCAbilities|BonusActionsList}%{NPCAbilities|TraitsList}%{NPCAbilities|ReactionsList}%{NPCAbilities|LegendarysList}%{NPCAbilities|MythicsList}}} {{name=Abilities}} &{noerror} BonusActions %{NPCAbilities|Template}%{NPCAbilities|BonusActionsList}}} {{name=Bonus Actions}} &{noerror} Mythics %{NPCAbilities|Template}%{NPCAbilities|MythicsList}}} {{name=Mythic Actions}} &{noerror} BonusActionLinkStyle %{NPCAbilities|LinkStyle}color: red;  MythicLinkStyle %{NPCAbilities|LinkStyle}color: orange;  BonusActionsList [-- Bonus Actions --](~NPCAbilities|BonusActions%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_npcbonusaction_$0_name|max};)[@{selected|repeating_npcbonusaction_$0_name} ](~@{selected|character_name}|repeating_npcbonusaction_$0_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$0_name|max};)[@{selected|repeating_npcbonusaction_$1_name} ](~@{selected|character_name}|repeating_npcbonusaction_$1_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$1_name|max};)[@{selected|repeating_npcbonusaction_$2_name} ](~@{selected|character_name}|repeating_npcbonusaction_$2_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$2_name|max};)[@{selected|repeating_npcbonusaction_$3_name} ](~@{selected|character_name}|repeating_npcbonusaction_$3_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$3_name|max};)[@{selected|repeating_npcbonusaction_$4_name} ](~@{selected|character_name}|repeating_npcbonusaction_$4_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$4_name|max};)[@{selected|repeating_npcbonusaction_$5_name} ](~@{selected|character_name}|repeating_npcbonusaction_$5_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$5_name|max};)[@{selected|repeating_npcbonusaction_$6_name} ](~@{selected|character_name}|repeating_npcbonusaction_$6_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$6_name|max};)[@{selected|repeating_npcbonusaction_$7_name} ](~@{selected|character_name}|repeating_npcbonusaction_$7_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$7_name|max};)[@{selected|repeating_npcbonusaction_$8_name} ](~@{selected|character_name}|repeating_npcbonusaction_$8_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$8_name|max};)[@{selected|repeating_npcbonusaction_$9_name} ](~@{selected|character_name}|repeating_npcbonusaction_$9_npc_action%{NPCAbilities|BonusActionLinkStyle} display: block@{selected|repeating_npcbonusaction_$9_name|max};) MythicsList [-- Mythic Actions --](~NPCAbilities|Mythics%{NPCAbilities|AbilityLinkStyle} display: block@{selected|repeating_npcaction-m_$0_name|max};)[@{selected|repeating_npcaction-m_$0_name} ](~@{selected|character_name}|repeating_npcaction-l_$0_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$0_name|max};)[@{selected|repeating_npcaction-m_$1_name} ](~@{selected|character_name}|repeating_npcaction-l_$1_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$1_name|max};)[@{selected|repeating_npcaction-m_$2_name} ](~@{selected|character_name}|repeating_npcaction-l_$2_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$2_name|max};)[@{selected|repeating_npcaction-m_$3_name} ](~@{selected|character_name}|repeating_npcaction-l_$3_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$3_name|max};)[@{selected|repeating_npcaction-m_$4_name} ](~@{selected|character_name}|repeating_npcaction-l_$4_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$4_name|max};)[@{selected|repeating_npcaction-m_$5_name} ](~@{selected|character_name}|repeating_npcaction-l_$5_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$5_name|max};)[@{selected|repeating_npcaction-m_$6_name} ](~@{selected|character_name}|repeating_npcaction-l_$6_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$6_name|max};)[@{selected|repeating_npcaction-m_$7_name} ](~@{selected|character_name}|repeating_npcaction-l_$7_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$7_name|max};)[@{selected|repeating_npcaction-m_$8_name} ](~@{selected|character_name}|repeating_npcaction-l_$8_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$8_name|max};)[@{selected|repeating_npcaction-m_$9_name} ](~@{selected|character_name}|repeating_npcaction-l_$9_npc_action%{NPCAbilities|MythicLinkStyle}display: block@{selected|repeating_npcaction-m_$9_name|max};) Advanced approach for customization of abilities - part 2: Calling the macros - additional fields Bonus Actions %{NPCAbilities|BonusActions} &{noerror} Mythics %{NPCAbilities|Mythics} &{noerror}
1629016772

Edited 1629017809
Using the Universal Macro without Styling (although actually pushing it onto a different macro mule) - I have strange behaviour where the &{noerror} seems to work when using the test ability function, but once confirmed stops working giving me the following... any thoughts?
MykeMyke  said: Using the Universal Macro without Styling (although actually pushing it onto a different macro mule) - I have strange behaviour where the &{noerror} seems to work when using the test ability function, but once confirmed stops working giving me the following... any thoughts? Did you do Step 2  of 'Macro Mule' Macro setup instructions (option 2)? Jarren K. said: Caveat: to use these in a macro, you have to call them from a second macro because the &{noerror} doesn't work from a single macro call directly.  Jarren K. said: The 'Abilities' macro is used to call the 'AbilitiesMacro' macro, which makes the &{noerror} work.  If you try to use the 'AbilitiesMacro' directly, the &{noerror} doesn't work for some reason, even though &{noerror} is included there.  I don't know why.
1629055755

Edited 1629055825
I very stupidly thought this didn't matter when I initially read through because I was going to call it as an ability instead. It then vanished from my brain while troubleshooting... doing what you told me to in the first place solved the "issue". :-) This is awesome, thanks for all your hard work! Jarren K. said: MykeMyke  said: Using the Universal Macro without Styling (although actually pushing it onto a different macro mule) - I have strange behaviour where the &{noerror} seems to work when using the test ability function, but once confirmed stops working giving me the following... any thoughts? Did you do Step 2  of 'Macro Mule' Macro setup instructions (option 2)? Jarren K. said: Caveat: to use these in a macro, you have to call them from a second macro because the &{noerror} doesn't work from a single macro call directly.  Jarren K. said: The 'Abilities' macro is used to call the 'AbilitiesMacro' macro, which makes the &{noerror} work.  If you try to use the 'AbilitiesMacro' directly, the &{noerror} doesn't work for some reason, even though &{noerror} is included there.  I don't know why.
Small edit needed I think at least when I did it. SpellsTemplate /w gm &{template:npcaction} &{noerror} {{rname=@{selected|character_name}}} {{description=%{ NPCSpellsMacros NPCAbilities|SpellDCAtk}
Kilter said: Small edit needed I think at least when I did it. SpellsTemplate /w gm &{template:npcaction} &{noerror} {{rname=@{selected|character_name}}} {{description=%{ NPCSpellsMacros NPCAbilities|SpellDCAtk} Good catch! I think that was a holdover from my initial testing that didn't get caught. I've updated the macro above, thanks!
I see that the spell book works from the player side as well, this is amazing work - I am sure that there is a lot of utility for this from both sides of play and wonder how it might be tuned to incorporate player character functions?
1633132796

Edited 1633132816
Are you able to squeeze in the Available / Total spell slots into the block headers for when PCs are using this, and as a reminder for NPCs?
/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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; display: block@{selected|repeating_spell-cantrip_$9_spellname|max};)[-- Level 1 Spells @{selected|lvl1_slots_expended}/@{selected|lvl1_slots_total}--](" 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; display: block@{selected|repeating_spell-1_$9_spellname|max};)[-- Level 2 Spells @{selected|lvl2_slots_expended}/@{selected|lvl2_slots_total}--](" 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; display: block@{selected|repeating_spell-2_$9_spellname|max};)[-- Level 3 Spells @{selected|lvl3_slots_expended}/@{selected|lvl3_slots_total}--](" 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; display: block@{selected|repeating_spell-3_$9_spellname|max};)[-- Level 4 Spells @{selected|lvl4_slots_expended}/@{selected|lvl4_slots_total}--](" 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; display: block@{selected|repeating_spell-4_$9_spellname|max};)[-- Level 5 Spells @{selected|lvl5_slots_expended}/@{selected|lvl5_slots_total}--](" 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; display: block@{selected|repeating_spell-5_$9_spellname|max};)[-- Level 6 Spells @{selected|lvl6_slots_expended}/@{selected|lvl6_slots_total}--](" 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; display: block@{selected|repeating_spell-6_$9_spellname|max};)[-- Level 7 Spells @{selected|lvl6_slots_expended}/@{selected|lvl6_slots_total}--](" 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; display: block@{selected|repeating_spell-7_$9_spellname|max};)[-- Level 8 Spells @{selected|lvl8_slots_expended}/@{selected|lvl8_slots_total}--](" 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; display: block@{selected|repeating_spell-8_$9_spellname|max};)[-- Level 9 Spells @{selected|lvl9_slots_expended}/@{selected|lvl9_slots_total}--](" 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; 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: purple; display: block@{selected|repeating_spell-9_$9_spellname|max};)}} {{name=Spellbook}} &{noerror}
1633139782

Edited 1633139803
Magic! (get it?) 😀 Thanks
For ideas to improve this further - appending the spell slots / max is very useful. Additionally, if you can figure out how to append the range of attacks that would be amazingly useful when running monsters your not as familiar with! (How far do these  tentacles reach I wonder?)
MykeMyke said: For ideas to improve this further - appending the spell slots / max is very useful. Additionally, if you can figure out how to append the range of attacks that would be amazingly useful when running monsters your not as familiar with! (How far do these  tentacles reach I wonder?) That's actually something I've already started working on (and yes it is possible) - I've been busy with some other stuff so I haven't had a chance to convert it from my testing macros and validate it all yet, but it's in the works!
1640411102

Edited 1640411189
This is great!&nbsp; I am using&nbsp; Universal macro for all&nbsp; NPC Prepared Spells, with style modifications I am having 1 issue.&nbsp; I've created both macros in the collections tab.&nbsp; I've selected "Show as a token action?" for the SpellsMacro.&nbsp; The action is displayed when I select a token.&nbsp; When I activate the call, it shows 60 or so&nbsp; No character was found for 'DIV'&nbsp; and then follows with the nice spell list box.&nbsp; Functionality is fine, just need to know why I'm getting&nbsp; No character was found for 'DIV'&nbsp; and how to resolve it. <a href="https://gyazo.com/fdc4d86e6ca70972c39b055a2a376b70" rel="nofollow">https://gyazo.com/fdc4d86e6ca70972c39b055a2a376b70</a>
Joe S. said: This is great!&nbsp; I am using&nbsp; Universal macro for all&nbsp; NPC Prepared Spells, with style modifications I am having 1 issue.&nbsp; I've created both macros in the collections tab.&nbsp; I've selected "Show as a token action?" for the SpellsMacro.&nbsp; The action is displayed when I select a token.&nbsp; When I activate the call, it shows 60 or so&nbsp; No character was found for 'DIV'&nbsp; and then follows with the nice spell list box.&nbsp; Functionality is fine, just need to know why I'm getting&nbsp; No character was found for 'DIV'&nbsp; and how to resolve it. <a href="https://gyazo.com/fdc4d86e6ca70972c39b055a2a376b70" rel="nofollow">https://gyazo.com/fdc4d86e6ca70972c39b055a2a376b70</a> Jarren said: Leonard Z. &nbsp;said: I'm sure this has been covered elsewhere, but I haven't seen such a thorough macro before. Non-API, is there a change that can be made to this for prepared spells? I assume there is a way to similarly "hide" non-prepared spells? Maybe not - you are "hiding" by not showing error. Is there a way to do a calculation to divide by spellprepared value to get divide by zero error and use that to hide? NVM&nbsp; no divide by zero error. It is possible, but it's even uglier than before.&nbsp; It also requires you to create a character named 'DIV' and create an attribute named 'sel' with '@{selected' in the current value.&nbsp; And you'll have to call it from a macro in order to not get any error messages, because of Roll20 Order of Operations.
Adding a character named DIV, and adding the attribute&nbsp; @{selected} to the character, worked well.&nbsp; I also created a folder and put the DIV character inside to keep things organized.&nbsp; No need to ever touch that folder again.&nbsp; Love it!
Joe S. said: Adding a character named DIV, and adding the attribute&nbsp; @{selected} to the character, worked well.&nbsp; I also created a folder and put the DIV character inside to keep things organized.&nbsp; No need to ever touch that folder again.&nbsp; Love it! Just to be clear for the setup above: The character should be named DIV The attribute is sel And the 'current' field for 'sel' should be&nbsp; @{selected There should not be a closing brace after '@{selected'.&nbsp; If there is a closing brace I'm pretty sure that you won't get any more error messages, but the prepared/unprepared portion won't work correctly.
Got it. No closing bracket.&nbsp; Thanks.&nbsp;&nbsp;
Jarren - Did Roll20 push an update that broke something with reactions yet again? Any quick fix? I'm now getting this when I trigger a Reaction from the chat menu for any NPC sheet (new or old, compendium or from scratch): No ability was found for %{Gladiator of Geryon|repeating_npcreaction_oll_output} MykeMyke (GM): Gladiator of Geryon|repeating_npcreaction_$0_oll_output
1642812233
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
That should be [@{selected|repeating_npcreaction_$0_name}&amp;nbsp;](~@{selected|character_name}|repeating_npcreaction_$0_npc_roll_output" style="display:none; display: block@{selected|repeating_npcreaction_$0_name|max};) on each of the reactions. Not sure why it's listed two different ways up there. Maybe Roll20 broke it and then broke it back?
It’s certainly possible - I’ll have to check when I get a moment to log in tonight or tomorrow. If it’s changed I’ll find the updated command and plug it into my spreadsheet and update the post here. :)
1642813501
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I have a dim memory of this causing a temporary issue in Token Action Maker.
MykeMyke said: Jarren - Did Roll20 push an update that broke something with reactions yet again? Any quick fix? I'm now getting this when I trigger a Reaction from the chat menu for any NPC sheet (new or old, compendium or from scratch): No ability was found for %{Gladiator of Geryon|repeating_npcreaction_oll_output} MykeMyke (GM): Gladiator of Geryon|repeating_npcreaction_$0_oll_output I think you just had some old code laying around... when I first wrote this, the D&amp;D 5E sheet had an update and changed all the "repeating_npcreaction_$#_npc_roll_output" to "repeating_npcreaction_$#_oll_output".&nbsp; Once the sheet was fixed, I updated the code above back to the full attribute name.&nbsp; So if you just cut and paste the code above back into your macros it should work. If you see anywhere that has code that doesn't work, please link it directly so I can take a look again, but I'm not seeing anything right now.
Thx, both of you, for these macros. They save tons of time. One question, before I find a text processor that lets me just search and replace. Can I just replace "{selected|character_name}" with "{selected|token_name}" globally [in those macros] and get the output shown to everybody in chat to use the token name and not the character name?&nbsp; I ask b/c I like to change the token names during play to reflect PC knowledge of who they are facing. My current practice is to use character name for their real, DM-known name. The macros work (as I would like things to be) if I have character name set to&nbsp;{selected|token_name}, like for mooks. But fails for named NPCs, where the secret vampire, let's say, displays in the chat as "Secret Death Vampire" or what not. I realize I could change all character names to&nbsp;{selected|token_name}, but was wondering if I could just globally change the text in the macros. And perhaps there was some reason I am unaware of that the macro was written the way it was. Thx.
Paul said: Can I just replace "{selected|character_name}" with "{selected|token_name}" globally [in those macros] and get the output shown to everybody in chat to use the token name and not the character name?&nbsp; I’m doing this from memory and on my phone but I’m 90% sure you do not want to do a full text replacement for every @{selected|character_name}. &nbsp;I think you only need to change the ones that are in the ‘rname’ field. &nbsp;So you should be able to just replace: &nbsp; {{rname=@{selected|character_name}}} With: &nbsp; {{rname=@{selected|token_name}}}
1647897045

Edited 1647897378
Paul
Plus
Hmm. I found "rname" only twice in the thing. One at the very end, perhaps for error control, and one at the very start, but there it was {{rname=@{selected|token_name}}}. That seems to my newbie brain to be the one that makes the chat text box use the token name. Maybe? Which I would want in my ideal setup. It's whispered to gm anyways. I want the ability macro to display the token name so PCs cannot see the character name, only the token name (in chat). Edit: I tested the global replace and it broke something. I get that "No ability was found..." msg.
Where are you seeing a character name that you want to see as token name instead? If you post a screenshot I can take a look when I’m at a computer to see where any changes need to be made. I’ve got the whole thing in an excel spreadsheet so it should be pretty easy to swap it out where necessary and leave it where it’s needed.&nbsp;
I think I may have figured out what is going on differently for you. There are three places that a name is stored (that are relevant for this macro at least): The character_name is the name of the character sheet, which is changed on the edit screen of the character sheet . The token_name is the name of the token . The npc_name is the name that is usually displayed in rolls and things from a given character sheet.&nbsp; This is set on the 'Character Sheet' tab when you open the character sheet , not &nbsp;on the edit screen of the character sheet. ** I have the npc_name set to be @{selected|token_name} on all of the characters in my game .&nbsp; ** I quickly made up a demo character to show you what happens with the macro. The name of the character is 'Character Sheet Name'. The name on the token is 'Token Name'. And the value of the npc_name is 'NPC Name'. I ran the macro, then clicked on the action in the chat menu, and you can see the output: You can compare this to a hobgoblin. The name of the hobgoblin is 'Hobgoblin LMoP'. The name on the token is 'Hobgoblin 5'. And the value of the npc_name is '@{selected|token_name}': The output of running ~@{selected|character_name}|repeating_npcaction_$0_npc_action} is controlled by the sheet, and it automatically pulls the npc_name.&nbsp; There's nothing in the macro that can change that. If I'm totally off base, let me know!&nbsp; But I'm pretty sure that is what is happening - you have the 'npc_name' set to the "true name" of your character. If you change that to be something generic, or to be @{selected|token_name} then I think the macro should work for you.
The output of running ~@{selected|character_name}|repeating_npcaction_$0_npc_action} is controlled by the sheet, and it automatically pulls the npc_name.&nbsp; There's nothing in the macro that can change that. Ah, that is what I feared. Thx for working thru it all. I can adjust my naming scheme for a few NPCs. It's worth it to get access to actions with many, many fewer clicks. Next step is voice control .... ;-) Thx v much.&nbsp;