@{selected|wtype} &{noerror} &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=Legendary Actions}} {{description=The @{selected|npc_name} can take @{selected|npc_legendary_actions} legendary actions, choosing from the options below. [@{selected|repeating_npcaction-l_$0_name}](~selected|repeating_npcaction-l_$0_npc_action) [@{selected|repeating_npcaction-l_$1_name}](~selected|repeating_npcaction_$3_npc_action) [@{selected|repeating_npcaction-l_$2_name}](~selected|repeating_npcaction-l_$2_npc_action) Only one legendary option can be used at a time and only at the end of another creature's turn. The @{selected|npc_name} regains spent legendary actions at the start of its turn.}} 1. You want to add &{noerror} to suppress error messages. FYI there's a bug if you call using a macro, that you'll need to call that macro with a separate call that includes &{noerror} to work. If you cut and paste the above and put it directly into chat it'll work, but if you have it in a collection macro the &{noerror} will not work. To fix that, if the above was in a collection macro called 'Legendary-Actions', you'd need a separate macro that has this to correctly use the &{noerror}: #Legendary-Actions &{noerror} 2. Your ability calls are not written correctly: (~@{selected}|repeating_npcaction-l_$0_npc_action) Should be: (~selected|repeating_npcaction-l_$0_npc_action) 3. Or if you want some more advanced code ( taken from here ), this will show all available Legendary Actions without displaying anything if there are no Legendary actions available: /w gm &{template:npcaction} {{rname=@{selected|token_name}}} {{name=Abilities}} {{description=[-- 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};)}}&{noerror}