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 .
×
The Roll20 Black Friday sale is live now! Up to 30% Off Your Favorite Content!

Can I create a macro where the second action performed depends on the first?

New to roll20, playing with transferring what I have already prepared for my "live game" into roll20 app. My goal is to create a macro to determine if the party finds stolen treasure from combat encounters. If you are familiar with the "Stolen Treasure"  concept from episode 1 of Hoard of the Dragon Queen, then you know what I'm talking about. Basically I want this to happen: /gmroll 1d100 Option A > if the result is 0-50 then emote something like "All you find is the armor and weapons they were using" Option B> if the result is 51-100 then execute /gmroll 1d6 multiply that by 10  I can then use the result of option B to reference the loot tables I have set up from the core rules. Is this even possible? Suggestions to help me simplify what I'm trying to do? Any advice is much appreciated!
I might create two Rollable Tables named 1 and 2 respectively pertaining to options A and B. I would then add a Table Item containing option A's flavor text to table 1. To table 2, I would add six table items: 10, 20, 30, 40, 50 and 60. Then, I would enter the following into the text chat to roll the tables: /w gm [[ 1t[[[1d2]]] ]]
Alternatively, a single rollable table with an entry "All you find is..." with weight 6 and entries 10-60 with weight 1 each would eliminate the need for naming the tables things that can come up on a die (so you could just "/gmroll 1t[loot]" or whatever you wanted to call it).