I'm not terribly familiar with the OGL sheet, but it looks like you at least need to delete the space after the character name but before the pipe in all instances. You are also unlikely to be able to write one macro that does every possible attack for every character and monster. When you say this, do you mean a template for every attack, that can have the variables re-written each time you write it (character name, attack name, etc.)? That sounds like infinitely more work than writing a handful of generic macros that read values from a character sheet. For instance, Franky's macro above: %{selected|repeating_npcaction_$0_npc_action} will work for whatever monster you have selected. One macro, on a button, and you are done for all monsters. There are ways you could expand this to call each action in turn.