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

Macro using 1d roll from Rollable Table

I have my rollable table set up and ready for use in a macro, is it possible to use a die roll to generate (1d6-1, in this case) draws from the table, and how do I set this up? Thanks!
1500842847
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
[[ [[1d6-1]]t[Table-Name] ]] Is I think what you want, if I'm understanding your question correctly
Hi Scott, this works, however when I try to set this up as a whisper to gm (myself) the output only includes the first item that appears. Mousing over the message shows all results. How would I fix this to have an output of all results? /w gm [[ [[1d6-1]]t[generalFeatures] ]]
1500907584
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Unfortunately, it's not possible to do that with base Roll20. However, I just noticed you are a pro user. Aaron's  Recursive Tables script will do what you want.
1500914099
Lithl
Pro
Sheet Author
API Scripter
You can only show multiple table results with /r Nt[table-name] or /gr Nt[table-name].
1500914209
The Aaron
Pro
API Scripter
Brian said: You can only show multiple table results with /r Nt[table-name] or /gr Nt[table-name]. Or an API script that expands the inline rolls... =D
1500915221

Edited 1500927894
Thanks for the responses. I also dicovered its possible to show it via the /gmroll function with the original macro, albeit the output is pretty ugly. i know nothing about API, but i guess its time to learn. For now the macro works like this: /gmroll [[ [[1d6-1]]t[Table-Name] ]]
1500947426

Edited 1500947663
I use The Aaron's recursive tables &nbsp;API for this !rt /w gm &{template:npcaction} {{rname=Treasure}} {{name=}} {{description=Each frost giant has a sack containing [[[[1d3]]t[GiantsBag]]].}} <a href="https://app.roll20.net/forum/post/2845333/script-recursivetables-expands-inline-rolls-in-rollable-table-results" rel="nofollow">https://app.roll20.net/forum/post/2845333/script-recursivetables-expands-inline-rolls-in-rollable-table-results</a>
1500947932
The Aaron
Pro
API Scripter
There's actually an updated version:&nbsp; <a href="https://app.roll20.net/forum/post/4954818/script-u" rel="nofollow">https://app.roll20.net/forum/post/4954818/script-u</a>... (though you've probably got that version even though you linked to the older thread)
@The Aaron this API is amazing! Thank you so much.
1500985371
The Aaron
Pro
API Scripter
=D &nbsp;No worries! &nbsp;Happy Rolling!