I dont think you can build macro names like that, in normal macros. One solution i can think of without using the API would be a very complicated nested macro (not recommended, due to the need for html replacements ). If you go that route, you are probably best off reducing those two queries to one, like ?{Attack?|Melee 1,some code here|Melee 2,some code here|Melee 3,some code here|Ranged 1,some code here|Ranged 2,some code here|etc} A better approach than either of these might be the Chat Menu method listed here: <a href="https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones/?pageforid=5927072#post-5927072" rel="nofollow">https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones/?pageforid=5927072#post-5927072</a> In this approach, instead of having a query, your macro prints out one button for all attacks, and the player clicks the relevant one. It might looks something like &{template:default} {{name=Choose Attack}} {{melee=[1](!&#13;#row1melee) [2](!&#13;#row2melee) [3](!&#13;#row3melee) [4](!&#13;#row4melee) [5](!&#13;#row5melee) }} {{ranged=[1](!&#13;#row1ranged) [2](!&#13;#row2ranged) [3](!&#13;#row3ranged) [4](!&#13;#row4ranged) [5](!&#13;#row5ranged) }} Which would look like this You can edit the macro names, add extra rows, etc. Just make sure the basic syntax of each button is correct. You just have to change the display name and macro-name sections in the code below for each button: [display name](!&#13;#macro-name)