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

Drop Down Macro not working as intended

Hi folks, I have a macro that gives me a drop-down and rolls on a few rollable tables !rt /w gm ?{Random Encounter|    Land Encounter, ?{Location|       Plains, [[1t[Random-Plains-Encounter]]] |            Forests, [[1t[Random-Forest-Encounter]]] |       Mountains, [[1t[Random-Mountains-Encounter]]] } |    Aquatic Encounter,  ?{Location|          Cerulean Gulf, [[1t[Random-Cerulean-Gulf-Encounter]]] |       Forgotten Sea, [[1t[Random-Forgotten-Sea-Encounter]]] } |    City Encounter,  ?{Location|          Estoria, [[1t[Random-Encounters-in-Estoria]]] |       Mytros, [[1t[Random-Encounters-in-Mytros]]] } |    Labyrinth-Encounter, [[1t[Random-Labyrinth-Encounter]]] } But unfortunately, it's not working - as far as I can see all the parenthesis are in the right place, can anyone see why it's not working?
1597439036

Edited 1597439190
Ziechael
Forum Champion
Sheet Author
API Scripter
You are hitting the html replacement issue for nested queries. Try this: !rt /w gm ?{Random Encounter|    Land Encounter,?{Location |       Plains , [[1t[Random-Plains-Encounter]]] |           Forests , [[1t[Random-Forest-Encounter]]] |       Mountains , [[1t[Random-Mountains-Encounter]]] } |    Aquatic Encounter,?{Location |           Cerulean Gulf , [[1t[Random-Cerulean-Gulf-Encounter]]] |       Forgotten Sea , [[1t[Random-Forgotten-Sea-Encounter]]] } |    City Encounter,?{Location |           Estoria , [[1t[Random-Encounters-in-Estoria]]] |       Mytros , [[1t[Random-Encounters-in-Mytros]]] } |    Labyrinth-Encounter,[[1t[Random-Labyrinth-Encounter]]] } Check out the wiki for more details on this steep learning curve ;)
Ahh! That's the one! Been a while since I made any macros so totally forgot about the HTML replacement stuff. Thanks!