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 .
×
Create a free account

Can you put a input query into a drop down?

I am trying to do something like this: /w gm ?{Choice|A, &{template:default} {{name=Choices}} {{A=?{"What"|...}}}|B, Choice B} But it does not work. Can you actually do this in Roll20?
1592631744

Edited 1592631896
Oosh
Sheet Author
API Scripter
You can, but as soon as you start nesting code in a query you fall into the HTML replacement rabbit hole. Basically, the parser will be looking for those } | , characters once the query starts, and will break as soon as it hits one. More info here . Also a Google sheet for doing replacement for you here , which I've never used but it probably still works! Another example here , an iterative attack for Pathfinder that uses HTML replacement to output another template section. You're generally better off avoiding this if you can, and using Chat Menus - see Keith's rundown for instructions. If you're super keen on going ahead with the nesting... good luck! It's totally achievable, but you want to be pretty confident before you start - the more complex your code is, the harder it will be to find that pesky comma breaking your mega-macro.