Gauss said: This fixes the issue you were having, but it is not the best way to do it. ?{What shot count is this?|First,[[{0,[[-1 + 5]]}kl1]]|Eighth,[[{0,[[-8 + 5]]}kl1]]} Issue 1: To do a keep low you need { 0,[[-x+5]] } kl1 Note the "{" and "}" brackets. However, that will break the query. Issue 2: A Query looks for { and }. Your first kl } will end the query. Example: ?{This query won't work|Low,{0,5}kl1|High,{0,5}kh1} is seen as: ?{This query won't work|Low,{0,5} Because that first "}" is the "end" of the query. Solution: HTML entity "}" = "}" Issue 3: A query is looking for commas "," to differentiate between name and output. Example: ?{This query won't work|Low,{0,5}kl1|High,{0,5}kh1} is output as: {0 because the output ends at the "," Solution: HTML entity "," = , Full solution: ?{This query will work|Low,{0,5}kl1|High,{0, 5} kh1} Note the HTML entity substitutions for "}" and ",". Next, I get the impression that "-x" is going to be a variable of some other kind. What do you plan on putting in the "-x" slot? If it is an attribute or a macro that will break the query all over again if not done right. Finally, this is a much simpler version of this macro: [[{0,[[-?{What shot count is this?|First,1|Eighth,8}+5]]}kl1]] It moves the query into the math rather than reproducing the math multiple times. It doesn't require HTML entities, and it probably won't break as easily. So essentially replace any characters that would break the query with its HTML counterpart. Am I able to google HTML entity values or do you possibly have a resource I can check out? You assume correctly that "-x" is a variable. Of which is how many "shots" a character has made and is equivalent to the string name of the query option, as shown in the example ?{ First , - 1 | Second , - 2 and so on. However, the "5" in the expression is a replacement value for a character's Strength modifier. I replaced the str mod with 5 for ease of explanation. I've successfully been able to place @{Character Name|Strength_mod} where the 5 is with no issues. But I do appreciate you asking. Wow that simplified version is quite fascinating, thank you very much for your detailed reply. Much appreciated. EDIT: I've noticed when I tried utilizing your simpler version of the macro, with @{CharName|Strength_mod}, there is an additional "0" that shows up in the damage bar on a new line. As shown in the second to last attack roll in chat: The last attack roll made was made without the attack bonus macro unchecked. Do you possibly know why that shows up?