I have a macro for attacking with my rogue's sneak attack under my class features. If I click the roll button there, it rolls correctly. What I want to do is make a shortcut #sneakattack so that I don't have to constantly go into my sheet to roll it. If I copy/paste the working class feature macro, testing it from the shortcut gives me "TypeError: Cannot read property 'substring' of undefined" Could someone with more macro experience tell me where I'm going wrong? This is the macro that works when I click the roll button in the Class Features and Abilities: &{template:pf_attack} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{subtitle}} {{name=Sneak Attack with @{repeating_weapon_$0_name}}} {{attack=[[ 1d20cs>[[ @{repeating_weapon_$0_crit-target} ]] + [[ @{repeating_weapon_$0_total-attack} ]] ]] vs AC}} {{crit_confirm=[[ 1d20 + [[ @{repeating_weapon_$0_total-attack} ]] ]] vs AC}} {{damage=[[ @{repeating_weapon_$0_damage-dice-num}d@{repeating_weapon_$0_damage-die} + [[ @{repeating_weapon_$0_total-damage} ]] + 1d6 ]]}} {{crit_damage= [[ [[ (@{repeating_weapon_$0_damage-dice-num} * (@{repeating_weapon_$0_crit-multiplier} - 1)) ]]d@{repeating_weapon_$0_damage-die} + [[ (@{repeating_weapon_$0_total-damage} * (@{repeating_weapon_$0_crit-multiplier} - 1)) ]] ]]}} {{type=@{repeating_weapon_$0_type}}} {{description=@{repeating_weapon_$0_notes}}}