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

Sub-Table

Hi,  I'd like to know if there is anyway to create a Sub-Table, by that I mean having Roll20 automatically roll on another table based on the result of the first. Let's take a "Chamber Content" table, for example. Results of that table could contains things like : Monster Monster & Treasure Trap Trap & Treasure etc. What I'd like, is that when the "Monster" result got picked after a roll of the table, that it could automatically calls the "Monster Table" so I would know which one it should be. The same would be true for the "Monster & Treasure" entry, but I'd like it to roll on the two tables at the same time.  It would be ever better if the result of the Monster table could roll the number of monsters. I tried many way to achieve that, but without success so far. The things I've tried are using nested inline rolls, tables that output macro name, using inline rolls in the actual table result, etc. So is there any Roll20-fu that could help me out or is that simply not supported (yet !?! ) ? Do I have to become a Mentor and use the API to have it works ?  Thx in advance.
1438693179
DK Heinrich
Marketplace Creator
Sheet Author
using api - specifically HoneyBadger's powercard script and its 'conditionals'.  make a rollable table for your main list and each sub list. set your macro roll on the 1st chart, and set the result of that roll as a conditional  use that conditional to sort out the correct sub chart, then roll on that chart and spit out your answers. non-api answer will require another voice who know better than I do
Yeah, you cannot nest tables. So without the API that sort of thing can't be done as of now. I have seen suggestions on making a mega table with all of your possible results, but that seems excessive. You could simply roll all four tables at once and just select the correct ones.
Groumy said: Hi,  I'd like to know if there is anyway to create a Sub-Table, by that I mean having Roll20 automatically roll on another table based on the result of the first. Let's take a "Chamber Content" table, for example. Results of that table could contains things like : Monster Monster & Treasure Trap Trap & Treasure etc. What I'd like, is that when the "Monster" result got picked after a roll of the table, that it could automatically calls the "Monster Table" so I would know which one it should be. The same would be true for the "Monster & Treasure" entry, but I'd like it to roll on the two tables at the same time.  It would be ever better if the result of the Monster table could roll the number of monsters Are these tables you have in mind from a set of rules books or are they continuously added to, as you think of options?
1438704143

Edited 1438704195
Thx DK Heinrich and Ed S. to confirm my fear -_-' Ed S. The idea of a mega-table crossed my mind too, but it would be too unwieldy. To roll all the tables at once won't be practical, because I have other result not shown in the example, and each table may have other sub-tables, like Trap triggers, Monster motivation, etc. OldSchoolChris, for now they are from a rule book, but I intend to expand it as we play.  So, I have to pay another 50$ a year to be able to use a single UI to manage my Mega-dungeon campaign or start moving parts out of Roll20 which my be the start of a cascading reaction ... 
You might find the API and all of the wonderful things you can do with it a bargain. MY knowledge of Java-Script is rubbish, but I use a number of scripts constantly. Playing on the Dev Server, the trans-mogrifier...
1438706434
The Aaron
Pro
API Scripter
The amount of automation you can achieve is definitely dependent on the level of your account. You can actually get close with a complete and utter hack using just Rollable Tables and API Buttons.  It will only work for a single sub table, but you might get creative and have more... WARNING: COMPLETE AND UTTER HACK!  YOU HAVE BEEN WARNED! 1)  Create a master table with your table names (Named Master in my example below): Monster Treasure Trap 2) Create your sub tables with a special name format: Monster)'>Monster Treasure)'>Treasure Trap)'>Trap 3) Make a macro like this: /w gm [Generate](!
[[1t[[[1t[ Master ] ]]] ]]) When you run that macro, it will put a button in the chat which is constructed from the output of the Master table, and will roll one of the other tables. This works, but is certainly not intended use.  Future changes might break it.
1438706488
The Aaron
Pro
API Scripter
And I second Al E's note about the API being spectacularly awesome.  =D