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 .
×

Using Macros to roll X# of times from a table and displaying the results

I'm trying to create a couple different macros for my 5e game where I'm basically trying to roll on the DMG Treasure Hoard magic items and loot tables and have the results displayed for me all in one concise default template chat window, without having to click on multiple macros to figure out what exactly is in the piles of treasure. I already have individual tables set up for all the different gems, art objects, and magic items that my players can potentially find, as well as individual macros for each, but I want to try combining all of it together so I can click one macro and it figures out the rest. So for example, if I were to roll for Treasure Hoard: Challenge 5-10, and I rolled a 50, the table in the DMG states that I need to roll for 3d6 50 GP Gems, and to roll 1d4 times on Magic Item Table B. Would I be able to create a macro that will first roll the d100 (or roll from a table specifically set up for treasure hoards) to figure out which line/result of the hoard table to use, and then in one line of the default template chat window, roll the 3d6 and then use the result of that dice roll to determine how many times to roll on the 50 GP Gems table. And then in another line in the same window, to roll the 1d4 and then use that result to figure out how many magic items they find from Magic Item Table B. I already have the API script RecursiveTable, and I'm aware it can do some stuff, but I'm still new to it and creating macros in general. I'm trying to figure it out but it seems a little overwhelming with my limited knowledge, so some help would be very much appreciated, thank you.
You may be interested in this post .