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 menu that calls for other macros

Hello, i'm a GM new to the GM side of roll20. I'm running a game of Pathfinder 2 and i've made (copypasted) a simple macro to roll a secret check for all my players at once: /w GM &{template:default} {{name=Survival}} {{Ulrich:[[ 1d20 + @{Ulrich Goldmane|Survival} ]]}} {{Wild Rose:[[ 1d20 + @{Wild Rose|Survival} ]]}} {{Watson:[[ 1d20 + @{Watson Fletcher ELEMENTALE|Survival} ]]}} {{Goba:[[ 1d20 + @{Goba Ossagrosse|Survival} ]]}} {{Grast:[[ 1d20 + @{Grast Rockbottom|Survival} ]]}} {{Randolf:[[ 1d20 + @{Randolf|Survival} ]]}} Now here's the problem: while it's working great so far, i want to have a single button in my macro bar with a drop down menu that calls for the skill check i need; but with the code in the wiki it breaks everytime ?{Name of Query|Option1|Option2|Option3|Option4|Option5} Later in the page its written that the symbol } tends to do that, and to replace it with the string } but then the original macro breaks. What do i do?
1620997347
Andreas J.
Forum Champion
Sheet Author
Translator
I suggest you try implement it instead as a Chat Menus . Your main macro would whisper the menu with buttons to you in the chat, and then you could press the button for the macro you want to use and it's rolled. So if you have macros named survival and perception saved on you Collections tab, you could have this as your main macro: /w gm &{template:default} {{name=Secret GM Rolls}} {{[Survival](!
#survival) = [Perception](!
#perception)}}
1621000261
timmaugh
Forum Champion
API Scripter
Andreas offers a good solution, so this is more a plug for why you might want to go Pro and do this with a script. If you installed ZeroFrame and Fetch (both metascripts), you could avoid the HTML replacement problem completely AND you can handle this with a single macro for any/all of your checks: !/w GM {&template:default} {{name=?{Check|Survival|Perception}}} {{Ulrich:[\][\] 1d20 + @(Ulrich Goldmane.?{Check}) \]\]}} {{Wild Rose:[\][\] 1d20 + @(Wild Rose.?{Check}) \]\]}} {{Watson:[\][\] 1d20 + @(Watson Fletcher ELEMENTALE.?{Check}) \]\]}} {{Goba:[\][\] 1d20 + @(Goba Ossagrosse.?{Check}) \]\]}} {{Grast:[\][\] 1d20 + @(Grast Rockbottom.?{Check}) \]\]}} {{Randolf:[\][\] 1d20 + @(Randolf.?{Check}) \]\]}}{&simple}
Andreas J. said: I suggest you try implement it instead as a Chat Menus . Your main macro would whisper the menu with buttons to you in the chat, and then you could press the button for the macro you want to use and it's rolled. So if you have macros named survival and perception saved on you Collections tab, you could have this as your main macro: /w gm &{template:default} {{name=Secret GM Rolls}} {{[Survival](!
#survival) = [Perception](!
#perception)}} that worked! thanks :D