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

One macro for multiple random tables

Hey, I want my players to be able to roll on some random tables themselves. The table depends on which region they are currently in. I basically want them to click the macro button, select the region they're in in a drop-down menu and then have it roll on the specific table for it. How would the macro look like? Thanks!
1695906280
timmaugh
Forum Champion
API Scripter
Provided there is 1 table for each region (instead of multiple), you can do it like this: [[1t[?{What region?|Region 1,NameOfRegion1Table|Region 2,NameOfRegion2Table|Region 3,NameOfRegion3Table}]]] Notice there are no spaces after the commas that separate the option label from the table name... spaces in these locations would break the roll.
Look at scriptcards as well as it provides programatic access to roll tables (and a ton of other features).