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 selection of tables?

Oh k, so, I've created tables, and macros to roll on those tables, and all that's worked fine. But I am wondering if there's a macro that will make a pop up with a drop down menu to pick from a list of those tables and auto roll on the selected option? The specific use I'm currently wanting is I have a fumble table for spells, and one for weapon attacks. I want to just make one macro button on screen that will let the players choose between them, instead of two separate buttons. (I'm using the "npcaction" template, if that's needed.)
1597783035
Ziechael
Forum Champion
Sheet Author
API Scripter
You can absolutely use a query to determine which table to roll on: [[ 1t[?{Which table|spellfumble|weaponfumble}] ]]
1597787605

Edited 1597787677
I ended up figuring it out. lol /w gm &{template:npcaction} {{rname=FUMBLE!}} {{description= ?{Choose|Weapon,*Weapon Fumble*: [[1t[WeaponFumble]]] |Spell,*Spell Fumble*: [[1t[SpellFumble]]]} }} The specific issue seemed to be in the template, and how I wanted the results to look when they show up in chat. lol
Ziechael said: You can absolutely use a query to determine which table to roll on: [[ 1t[?{Which table|spellfumble|weaponfumble}] ]] I figured it out through a bunch of trial and error. lol The biggest part I was having trouble with was having the results show up in chat using the specific template I wanted to use. (Trying to make them noticeably different for streaming purposes.)