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

Randomly select a macro from a collection of macros.

Randomly select a macro from a collection of macros. To give you an idea of what I am thinking: I DM home-brewed, sandbox style games so there’s a whole lot of make-it-up-on-the-spot things happening. I would love to select a macro randomly from a collection of macros that could present text to chat. Let’s say that you are DMing and you’re faced with a party who wants to explore a cave that for, whatever reason, is there but you’ve not had the time nor reason to have developed it. Click a button and text displays in chat: “A corridor stretches 40’ to the west until it bends to the south. The sound of water drips… blah blah blah.” Then you’d need a gazillion of those describing different corridors, steps, pitfalls, traps, whatever… A more awesomer output might generate a different a width for the corridor, or height, length, turns, elevation change, random encounters, dressing, whatever… I am not great with the functionality, but I don’t see a way that leaps out at me to do this. Is that possible? Or is there a different approach that might satisfy that want?
1536589454
The Aaron
Pro
API Scripter
I'd do this with Rollable Tables and my RecursiveTable script:&nbsp; <a href="https://app.roll20.net/forum/post/5954076/script-update-recursivetables-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates" rel="nofollow">https://app.roll20.net/forum/post/5954076/script-update-recursivetables-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates</a>
1536594755

Edited 1536595604
Thanks Aaron. PS: Bought you a cup of coffee via Patron.&nbsp; Now to populate seed tables like a freak.
1536595701
The Aaron
Pro
API Scripter
Sweet, thanks!&nbsp; Let me know if you have any other questions. You might find this TableExport script useful (also does imports):&nbsp; <a href="https://app.roll20.net/forum/post/1144568/script-tableexport-a-script-for-exporting-and-importing-rollable-tables-between-accounts" rel="nofollow">https://app.roll20.net/forum/post/1144568/script-tableexport-a-script-for-exporting-and-importing-rollable-tables-between-accounts</a> There's an example here:&nbsp; <a href="https://app.roll20.net/forum/permalink/2845481/" rel="nofollow">https://app.roll20.net/forum/permalink/2845481/</a> There are Google Sheets someone has made somewhere that automate building that import format.
Holy cow. I shall look at them!
1536610781
vÍnce
Pro
Sheet Author
The Aaron said: There are Google Sheets someone has made somewhere that automate building that import format. This doc explains how you can use excel (should work similarly with other spreadsheet apps) to help create tables written in the proper format for importing <a href="https://docs.google.com/document/d/1o7FDW_rCNjGk9Q0GeYQQ-mC5Uo96_CZErHbpQjsdSCk/edit" rel="nofollow">https://docs.google.com/document/d/1o7FDW_rCNjGk9Q0GeYQQ-mC5Uo96_CZErHbpQjsdSCk/edit</a>