Hi, I have a macro in which I want the result of a single query to insert text into the displayed name, and a number into the die roll. This is the gist (note, I added an extra space after each pipe symbol in the query so that it displays more legibly here in this forum): {{name=Roll Using ?{Attribute?| Strength,STR| Dexterity,DEX| Constitution,CON| Intelligence,INT| Wisdom,WIS| Charisma,CHA} Modifier}} {{roll=1d20+?{Attribute?| Strength,@{cn|STR_mod}| Dexterity,@{cn|DEX_mod}| Constitution,@{cn|CON_mod}| Intelligence,@{cn|INT_mod}| Wisdom,@{cn|WIS_mod}| Charisma,@{cn|CHA_mod}} Unfortunately, the query inserts whatever replacement value occurs first in the macro in both places, instead of paying attention to what comes after the pipe symbol in each instance of the query. If I put the {{roll}} part first in this macro, the query gets the correct modifier for the d20 roll, but that number appears in the name instead of the three-letter text abbreviation. If I put the {{name}} part first in this macro, the roll attempts to add the three-letter text to the d20 roll instead of the appropriate number. Is there a way to do this kind of replacement? I tried to do it by using the query output as part of the name of an existing value, like this, but I think it fails due to order-of-operations, because it gives me a " No attribute was found for @{cn|?{Attribute?} " error: @{cn|?{Attribute?| Strength,STR| Dexterity,DEX| Constitution,CON| Intelligence,INT| Wisdom,WIS| Charisma,CHA}_mod} I would be fine with inserting the displayed label of the selected query as the text, instead of a replacement value (so in this case, inserting Strength, Dexterity, etc instead of STR, DEX, etc in the name would be fine). If this kind of query replacement is not possible, I will resort to using "nesting a macro in a roll query" after creating separate macros RollUsingStrength, RollUsingDexterity, etc. My only issue there is that I actually want to do something considerably more complicated than what I described above, using multiple queries as input, which means I would need to create a separate macro for each possible combination of queries -- and even then, I don't know if I can nest "nesting a macro in a roll query" inside of another roll query, so I might have to create a single ugly query that lists out every possible combination as individual choices. Oof. Thanks in advance for help and advice.