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 .
×

Nested macro issue

1777247401

Edited 1777247744
Hey all - I swear I have spent hours today trying to figure this out, but I am pulling my hair out.  I looked over the forums also, but I still can't seem to get it to work.   Goal - a player character is a paladin and I'd like to create a Smiting  nested   macro.  A drop down selection where the macro then calls up other macros.  Here's the three macros I wrote: Smiting macro:    ?{Which smite? |Thunder,#Thunder |Wrathful,#Wrathful } Thunder macro:     &{template:default} {{name=Thunderous Smite!}} {{Ulgara hits and the earth shakes.=[[2d6]]}}{{If target is a creature, it must STR save or be pushed away 10' and knocked prone.=Baddie save without any mods [[1d20]]}} Wrathful macro:     &{template:default} {{name=Wrathful Smite!}} {{Ulgara hits and the shock is palpable.=[[1d6]] psychic damage}}{{If target is a creature, it must WIS save or become frightened.=Baddie save without any mods [[1d20]]}} When all of these are on Ulgara's character sheet in her abilities tab, the Thunder and Wrathful macros work fine.  The Smiting query will pull up the small box and it has the two options that look correct, but then clicking on the Thunder and Wrathful options just print    #Thunder    or     #Wrathful   in the chat box.  When I am writing the Smiting macro, incidentally, the macro will not automatically offer me the Thunder and Wrathful macro options.  I'm guessing that is some kind of issue? If I put the Thunder and Wrathful macros in the DM macros section, shared with all players, then I break the query box.  The macro box will suggest to autofil Thunder and Wrathful options, but then I get another problem.  There's no options, only      Thunder,&{template:def     like it is taking the first part of the macro script.  I'm sure I'm doing something basic wrong, but I just can't seem to get it right.  Many thanks in advance for a solution!!  Brandon
1777250486

Edited 1777250708
Gauss
Forum Champion
Short version, you see:&nbsp;?{Which smite? |Thunder,#Thunder |Wrathful,#Wrathful } Roll20 sees:&nbsp; ?{Which smite? |Thunder, &amp;{template:default} {{name=Thunderous Smite!}} {{Ulgara hits and the earth shakes.=[[2d6]]}}{{If target is a creature, it must STR save or be pushed away 10' and knocked prone.=Baddie save without any mods [[1d20]]}}&nbsp; |Wrathful, &amp;{template:default} {{name=Wrathful Smite!}} {{Ulgara hits and the shock is palpable.=[[1d6]] psychic damage}}{{If target is a creature, it must WIS save or become frightened.=Baddie save without any mods [[1d20]]}} &nbsp;} Problem is, as soon as you hit the first "}" that ends the query.&nbsp; You need to use HTML substitution for every control character that can break the query. That is "}" "," and "|" Alternately, use Chat Menus and avoid HTML substitution. Some reading:&nbsp; <a href="https://wiki.roll20.net/Roll_Query/Nested" rel="nofollow">https://wiki.roll20.net/Roll_Query/Nested</a> <a href="https://wiki.roll20.net/Chat_Menus" rel="nofollow">https://wiki.roll20.net/Chat_Menus</a>
Ha - that makes total sense.&nbsp; Thank you so much, Gauss!