I have been working on learning macros today for the first time, and came across some helpful ones by AndruRC on reddit here . On his github was a macro for making chat menus that would automatically populate with the actions listed for the creature. However. His original macro only had one button written in it for the first ability ($0), and he simply states that one can "increment" to include more. Not exactly sure what that means, but I figured out the addition of more buttons. My problem is that I can't find a way to allow for the automatic adding of enough buttons to creatures with many actions without errors getting thrown for creatures with fewer actions than the number of buttons. Any ideas? My current macro: @{selected|wtype}&{template:default}{{name=@{selected|character_name} Actions}} {{ Actions =[@{selected|repeating_npcaction_$0_name}](~selected|repeating_npcaction_$0_npc_action)[@{selected|repeating_npcaction_$1_name}](~selected|repeating_npcaction_$1_npc_action) }} Etc.