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

Random tables.

I want to set up some random tables for solo play. Is there a limit to the number you can have.  
1597260828
The Aaron
Roll20 Production Team
API Scripter
No practical limit. For what you're doing, you might find the API Script RecursiveTable handy:&nbsp;&nbsp; <a href="https://app.roll20.net/forum/post/7844658/script-update-recursivetable-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates" rel="nofollow">https://app.roll20.net/forum/post/7844658/script-update-recursivetable-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates</a>
i am looking to do the same thing. i have the recursive api but don't know how to do what i want with it. i am trying to create a macro that will roll form either this group of tables or that group randomly
1597337900

Edited 1597337930
The Aaron
Roll20 Production Team
API Scripter
With Recursive Tables, you'd create a table with one Table Item for group A, and one Table Item for group B, with appropriate weights.&nbsp; Assuming your tables are Common-Loot and Rare-Loot , you might have a table named Root-Loot &nbsp;with Table Items: Weight: 3, Name: [[1t[Common-Loot] ]] Weight: 1, Name: [[1[t[Rare-Loot] ]] And then roll on it with: !rt [[1t[Root-Loot] ]]
WoW! that worked and thank you!
1597340427
The Aaron
Roll20 Production Team
API Scripter
No problem. =D
Just for aesthetics, is there a way to create lines in the table name? i have a table to choose which set 5 tables to roll. So i have those 5 tables all in 1 name because they all need to roll not random ones, but i would prefer them on their own lines&nbsp;
1597343871

Edited 1597343899
The Aaron
Roll20 Production Team
API Scripter
This would work: !rt[PrefaceUniqueSpace] &amp;{template:default}{{=[[1t[tabel1]]}}{{=[[1t[tabel2]]}}{{=[[1t[tabel3]]}}{{=[[1t[tabel4]]}}{{=[[1t[tabel5]]}} Might be best to start a new thread for this.