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

Rollable table result depending on a die roll

Hi, I was thinking about adding some random tables to generate rewards and treasure for my D&D 5e campaign. Do somebody have tips on how to do this? I was thinking about macros or rollable tables. I haven't yet explored macro system, but I was wondering if I can do something like this: I want to do a macro that throw a D100 and then depending on the result activate another macro that will generate the reward. So: Roll a d100 If result lies between 01 - 30 roll a 5d6 (copper pieces)                   If result lies between 31 - 60 roll a 4d6 (silver pieces) etc Could I do such a thing? If not or if there is a more simple way can you give me some advice? Thanks!
1489955290
Lithl
Pro
Sheet Author
API Scripter
To do it exactly as represented, I believe need Aaron's Recursive Tables script would let it work (though it would require upgrading to a Pro subscription). Without the API, you would have to generate a rollable table with every possible Nd6 value weighted based on both the d6 roll and the d% roll. While not impossible, it's a bit tedious.