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 tables in another rollable table

October 17 (7 years ago)
Is there a way to create a rollable table that works like the one in the DM Guide on page 94. What I am trying to do is choose from 8 different options but when option 2 comes up, it would automatically pick another option from a sub-table relating to that list. Here is an example of what I want : 
Option 1 : Immortality
a) Acquire a legendary item to prolong life
b) Ascent to godhood

Option 2 : Influence
a) Seize a position or power or title
b) Win a contest or tournament
c) Win favor with a powerful individual

So I want it to choose between option 1 or 2, but if it takes 2, I want it to automatically choose an option between a and c. Can I do this with a macro and how would I write that?
October 17 (7 years ago)
The Aaron
Pro
API Scripter
This can be done with the API (a Pro Subscriber Perk) using the RecursiveTable script. 
October 17 (7 years ago)
The Aaron
Pro
API Scripter
You could try this technique without the API: https://app.roll20.net/forum/post/5636784/nesting-...
October 17 (7 years ago)

Edited October 17 (7 years ago)
It might be easier to use a single Rollable Table, and weight the items appropriately. For example, for the exact table you're referring to, you could give each of the d4 Table Items a weight of 3 and each of the d6 table items a weight of 2.

Probability of rolling a d4 Table Item = 1/8 * 1/4 = 1/32; 1/32 * 96 = 3 weight
Probability of rolling a d6 Table Item = 1/8 * 1/6 = 1/48; 1/48 * 96 = 2 weight