Driventub said: GiGs said: It's not possible to help you fix this without seeing the actual macros (in text form - dont post screenshots of code). Ok , so this one is the ability ARMA0_tt_N &{template:default} {{name=@{Kumiko "Valhalla" Izumi|repeating_attacks_$0_weaponname}}} {{TT-N}} {{@{Kumiko "Valhalla" Izumi|character_name}}} {{Tirada1=[[1d20+[[({0,floor(1-abs(@{Kumiko "Valhalla" Izumi|repeating_attacks_$0_weapontype}-1))}dl1)*(@{Kumiko "Valhalla" Izumi|strength_mod}-@{Kumiko "Valhalla" Izumi|dexterity_mod})+@{Kumiko "Valhalla" Izumi|dexterity_mod}]]+@{Kumiko "Valhalla" Izumi|ab}+@{Kumiko "Valhalla" Izumi|repeating_attacks_$0_attackbonus}+?{Modificador|0}]]}} {{Daño=[[@{Kumiko "Valhalla" Izumi|repeating_attacks_$0_tt}+[[({0,floor(1-abs(@{Kumiko "Valhalla" Izumi|repeating_attacks_$0_weapontype}-1))}dl1)*(@{Kumiko "Valhalla" Izumi|strength_mod}-@{Kumiko "Valhalla" Izumi|dexterity_mod})+@{Kumiko "Valhalla" Izumi|dexterity_mod}]]]]}} And here is the code of my Testing Query ?{Select|@{Kumiko "Valhalla" Izumi|repeating_attacks_$0_weaponname}, %{Kumiko "Valhalla" Izumi|ARMA0_tt_N} |Segunda, 0}} Note: At first instance, the code hadn't the character names in their respective attributes , but I added because I tought that it could made my query works, but it didn't . Anyway , the ability is working by itself , letting me with the conclusion that the error is in the query coding. The error is definitely in the query coding. There arent any html entities in the code above, so its hard to say if you tried a correct version. But to illustrate: take this part: {{name=@{Kumiko "Valhalla" Izumi|repeating_attacks_$0_weaponname}}} You need to replace the last two }} with html entities, but NOT the first }, because it is part of the attribute call. Let me also suggest swicthing away from nested queries completely, because they are a pain, and use chat menus instead: <a href="https://app.roll20.net/forum/permalink/5927072/" rel="nofollow">https://app.roll20.net/forum/permalink/5927072/</a> You dont have to make any changes to the individual macros. You create a macro that prints a list of buttons to chat, one for each macro, then just click the button for the macro you want to use. It's MUCH easier than nested queries, and you can whisper the menu of buttons so it doesnt clutter up chat for anyone else.