Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Macro calls from query statement but not from a nested query statement

I've been trying to create a spell list query for my spells on the 3.5 sheet. Here is the baseline query that I've created: #QueryBaseNoMacroCall ?{Spell Level| 0th, ?{Which Spell?|    Test Spell, test| Test 2 , 2 } |  1st, 1st level response} If I put an attribute call to a macro in the 1st level it works just fine: #QueryBaseMacroCall1stLevel ?{Spell Level| 0th, ?{Which Spell?|    Test Spell, test| Test 2 , 2 } |  1st, @{CharName|repeating_spells01_$0_spellmacro01}} However that is not want to do, I would like to organize it by spell list. If I put the attribute macro call in the 2nd level of the query it breaks down. #QueryMacroCall2ndLevel ?{Spell Level| 0th, ?{Which Spell?|    Test Spell, @{CharName|repeating_spells01_$0_spellmacro01}| Test 2 , 2 } |  1st, 1st level} Here is the Macro in question: @{CharName|repeating_spells01_$0_spellmacro01} &{template:DnD35StdRoll} {{spellflag=true }} {{name= @{character_name} casts @{repeating_spells01_$0_spellname01} }}  {{School:=Conj }} {{Level: =Cleric 0 }} {{Comp'nts:=V, S }} {{Casting Time:= standard }}  {{Duration:= instant }} {{notes= Creates [[ 2*[[@{casterlevel}]][cast lvl] ]] of pure water. }} <!--END TEMPLATE--> I'm pretty sure there are no missing "} , |" because the macro works in the 1st level of the query, but breaks in the 2nd level. Any information is greatly appreciated. Thanks!
1604005374

Edited 1604005406
Nevermind solved it: Once you go into the 2nd level you need to start replacing every &amp; with a &amp;amp.&nbsp; <a href="https://wiki.roll20.net/Macros#Roll_Query_Troubleshooting:_Nesting_Queries" rel="nofollow">https://wiki.roll20.net/Macros#Roll_Query_Troubleshooting:_Nesting_Queries</a> &nbsp; So my working Macro is:&nbsp; &amp;amp{template:DnD35StdRoll&amp;amp#125; {{spellflag=true &amp;amp#125;&amp;amp#125; {{name= @{character_name} casts @{repeating_spells01_$0_spellname01} &amp;amp#125;&amp;amp#125;&nbsp; {{School:=Conj &amp;amp#125;&amp;amp#125; {{Level: =Cleric 0 &amp;amp#125;&amp;amp#125; {{Comp'nts:=V S &amp;amp#125;&amp;amp#125; {{Casting Time:= standard &amp;amp#125;&amp;amp#125;&nbsp; {{Duration:= instant &amp;amp#125;&amp;amp#125; {{notes= Creates [[ 2*[[@{casterlevel}]][cast lvl] ]] of pure water. &amp;amp#125;&amp;amp#125; &lt;!--END TEMPLATE--&gt;