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

Help understanding scripts for RecursiveTables and ExportTable

So I have added these 2 api scripts to my game but I am at a lose for how to set them up. I would like to use them with the individual and horde treasure tables from the 5e DMG. How to I format the tables? For example, the Individual Treasure: Challenge 0-4 tells me to roll a d100 to determine what to roll to determine CP, SP, GP etc. So I need to roll a d100 and based on the result roll again.. Does that mean I make 2 tables? or 1 table? How does the recursive part work? Also, the ExportTable.. I understand I can make my tables in text files and then use this to import? Is that correct?
Hello Bob,&nbsp; Here is a link to a post I made about my tables a while back:&nbsp; <a href="https://app.roll20.net/forum/post/4581941/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/4581941/slug%7D</a> I build my tables in Excel. Once you format it all just right and get everything set up it is all quite easy to make tables for anything. And once you have all of it set up in Excel (or whatever program you want to use. I find spreadsheets easier in that you only need to change one column.) it is a simple copy and past into the chat window. Copying and pasting the example below will create a table labelled "nuts" that you could use. !import-table --nuts --hide !import-table-item --nuts --Acorn --1 !import-table-item --nuts --Beech --1 !import-table-item --nuts --Breadnut --1 !import-table-item --nuts --Candlenut --1 !import-table-item --nuts --Chestnuts --1 !import-table-item --nuts --Chinese chestnuts --1 !import-table-item --nuts --Sweet chestnuts --1 !import-table-item --nuts --Deeknut --1 !import-table-item --nuts --Johnstone River almond --1 !import-table-item --nuts --Kola nut --1 !import-table-item --nuts --Kurrajong --1
1523143213
The Aaron
Pro
API Scripter
For nesting the tables, you'd make multiple tables and have one delegate to the other by placing an inline roll in the first.&nbsp; Take a look at this example:&nbsp;&nbsp; <a href="https://app.roll20.net/forum/permalink/2845481/" rel="nofollow">https://app.roll20.net/forum/permalink/2845481/</a>