I think I worked it out. I kept seeing examples with [[ ]] around the macro, but removing them gets it all to work. Here's the macro, just as an FYI: ?{Scourge | PC 0,!setattr --sel --scourge# | PC +2,!modattr --sel --scourge#2 | PC +4,!modattr --sel --scourge#4 | PC Trigger,!modattr --sel --hp#-scourge !modattr --sel --scourge#-1 | NPC 0,!token-mod --set bar3_value# | NPC +2,!token-mod --set bar3_value#+2 | NPC +4,!token-mod --set bar3_value#+4 | NPC Trigger,!token-mod --set bar1_value#-@{selected|bar3} !token-mod --set bar3_value#-1 }