The code for the ability and macro were exactly the same. It's the ability that works. The chat menu code doesn't work as a macro, so my workaround is making a macro that has no code except the ability call. I've made minor changes since sharing the code above, so I'll re-share it. So right now the code used in the ability called NPC-Menu on the character called Macro is !chatmenu @{selected|character_id} {template:rolls} {{charactername=@{selected|character_name}}} {{header=@{selected|npc_type} @{selected|level}}} {{subheader=@{selected|alignment} @{selected|size} @{selected|traits}}} {{info01_name=Languages}} {{info01=@{selected|languages}}} {{info02_name=AC}} {{info02=@{selected|armor_class}; @{selected|armor_class_notes}}} {{info03_name=HP}} {{info03=@{selected|hit_points}/@{selected|hit_points|max}; @{selected|hit_points_notes}}} {{info04_name=Immunities}} {{info04=@{selected|immunities}}} {{info05_name=Weaknesses}} {{info05=@{selected|weaknesses}}} {{info06_name=Resistances}} {{info06=@{selected|resistances}}} {{info07_name=Speed}} {{info07=@{selected|speed} feet; @{selected|speed_notes}}} {{desc=CHATMENU}} --title:Senses --Perception @{selected|perception}; @{selected|senses},PERCEPTION --title:Skills --Acrobatics @{selected|acrobatics}; @{selected|acrobatics_notes},ACROBATICS,acrobatics|Arcana @{selected|arcana}; @{selected|arcana_notes},ARCANA,arcana|Athletics @{selected|athletics}; @{selected|athletics_notes},ATHLETICS,athletics|Crafting @{selected|crafting}; @{selected|crafting_notes},CRAFTING,crafting|Deception @{selected|deception}; @{selected|deception_notes},DECEPTION,deception|Diplomacy @{selected|diplomacy}; @{selected|diplomacy_notes},DIPLOMACY,diplomacy|Intimidation @{selected|intimidation}; @{selected|intimidation_notes},INTIMIDATION,intimidation|Medicine @{selected|medicine}; @{selected|medicine_notes},MEDICINE,medicine|Nature @{selected|nature}; @{selected|nature_notes},NATURE,nature|Occultism @{selected|occultism}; @{selected|occultism_notes},OCCULTISM,occultism|Performance @{selected|performance}; @{selected|performance_notes},PERFORMANCE,performance|Religion @{selected|religion}; @{selected|religion_notes},RELIGION,religion|Society @{selected|society}; @{selected|society_notes},SOCIETY,society|Stealth @{selected|stealth}; @{selected|stealth_notes},STEALTH,stealth|Survival @{selected|survival}; @{selected|survival_notes},SURVIVAL,survival|Thievery @{selected|thievery_notes}; @{selected|thievery_notes},THIEVERY,thievery --title:Lore --repeating_lore|lore_name|LORE|lore --title:Ability Checks --STR @{selected|strength_modifier},STR|DEX @{selected|dexterity_modifier},DEX|CON @{selected|constitution_modifier},CON|INT @{selected|intelligence_modifier},INT|WIS @{selected|wisdom_modifier},WIS|CHA @{selected|charisma_modifier},CHA --title:Items --repeating_items-worn|worn_item|action --title:Interaction Abilities --repeating_interaction-abilities|name|action --title:Saving Throws --Fort @{saving_throws_fortitude},FORT|Ref @{saving_throws_reflex},REF|Will @{saving_throws_will}; @{selected|saving_throws_notes},WILL --title:Automatic and Reactive Abilities --repeating_free-actions-reactions|name|action --title:Melee Strikes --repeating_melee-strikes|weapon|ATTACK-DAMAGE-NPC --title:Ranged Strikes --repeating_ranged-strikes|weapon|ATTACK-DAMAGE-NPC --title:Offensive or Proactive Abilities --repeating_actions-activities|name|action --separator: | and the code for the macro called NPCMenu is %{Macro|NPC-Menu} The semicolons were added after I noticed the issue, replacing commas and parentheses that were breaking the menu's buttons. Also the error isn't always the same. Right now it's TypeError: c is undefined even though, as far as I can tell, I'm doing the same thing.