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

Adding auto rolls to table outputs

I am creating a table to help randomize some results, but in said results there maybe a need to roll a die which I would like to without going through the whole process that normally is used. I watch a whole bunch of videos on macros, nesting macros, tables etc so I get the basics (brand new to macros) but can't figure this out. I made macro for rolling d10 and rolling d4, then made table for random things like 1. 1d10 bats appear  2. 1d4 goblins appear  Now just want to combine the two so when I click the roll table it rolls table and then rolls the 1d10 or 1d4.
1535552068
The Aaron
Pro
API Scripter
This isn't really possible without the API (Pro Subscriber Perk).&nbsp; If you do have access to the API, you can use the 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> It was pretty much designed with this use case in mind.
1535552778

Edited 1535552994
if you place 1d6 or 1d10 as first thing it will roll it funny enough with nothing needed for example 1d6 goblins appear but the whole goblins appear doesnt show up unless you hover over the roll lol. I thought there must be a way since that happens but oh well thanks for the help. Nvm just shows up 1 doesnt actually roll
1535554513

Edited 1535554531
The Aaron
Pro
API Scripter
There is technically a way to get a level of recursion without using the API, but it's not very satisfactory. If you name some Rollable Tables with numbers 1, 2, 3, 4, etc. you can activate them with the result of a die roll like this: [[ 1t[ [[1d6]] ] ]] Assuming that 1d6 resulted in a 3, it would then be equivalent to: [[ 1t[ 3 ] ]] I've not experimented with that in a long time, so YMMV.
The other option is, you create a single table, and on it is 1 bat, 2 bats, 3 bats . . . 10 bats, 1 goblin, 2 goblins . . .&nbsp; 38 tartasques, 39 tarrasques, 40 tarrasques.&nbsp; Then you go through and weight everything 'properly' so that the frequency matches a 1d10 followed by 1dx roll.&nbsp; Or weight it differently, so 1 or 4 goblins are less likely than 2 or 3, or what ever takes your fancy really.&nbsp; API scripts and everything are really awesome, but this is something a free subscriber can do.&nbsp; Sure, it is a lot more work, but hey, the scripts have to be worth something to entice your monies.