GiGs said: That sounds familiar. Isn't that just the classic Roll20 order of operations and "nested queries require html entities" problem? When you run a roll20 macro, it first "expands" every macro (replacing the macro name with the contents of that query), then it attempts to replace all attribites, abilities and the like with their contents, then it completes the query. This means that any calls like @{selected|ac_notes} will be replaced by their contents (and if they contain any special query characters, like "," the query will end prematurely) any characters like } and | and , will prematurely end the query. (note this occurs aftert the expansion of attribute calls) Is this what's going on here? If so, you'd be better off putting those maro calls (!npc, !spells, etc) in a chat menu of their own. If these were truly macros, preceded by the hash character (#), then the order of operations would come into play, except that it should go abilities, macros, attributes, and that loop should proceed up to 99 times. So even if these were macros, it should expand the first time, then catch the references to selected the next time. But, if we take the supplied text as exactly what is executed, these are not macros. These are API statements.