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 .
×

Random Amount of Dice Rolls For Rollable Table

I am currently trying to find a way for a dice roll, to be rollable.  If that makes sense. A bit of "why" I have a party member that forages for items while in the wilderness.  I don't want them to find a static amount of things, or a static set of things.  I made a rollable table filled with all kinds of wonderful things, however to my knowledge there is only one way to select from the table. Xt[tableName] Essentially what I am asking is there a way to make something like (1d4)t[tableName] work?  I would want anywhere from one to 4 things selected randomly off the tableName table. So one roll would get 3 items, the next roll would get 1 item.
I'm sure there is an easier way but if you make two tables of stuff. table A has all items possible table B has all items possible and 'Nothing' which would be weighted to however you want. then you just roll 1 table A and 3 table B this might allow a nicer output. I'm on my mobile so I can't type up a roll template but if in combo with those, it'll looknice.
1441311500

Edited 1441311542
This should work: [[ [[1d4]]t[tableName] ]]
Silvyre said: This should work: [[ [[1d4]]t[tableName] ]] The weird thing is I tried this prior to making this post, and it simple rolled and output the 1d4 result.  After your suggestion I tried it again, and it worked.  Magic? lol Thank you Silvyre
My next Question is how to drop anything that is a 0 from displaying?
1441369749

Edited 1441369798
Scott S. said: My next Question is how to drop anything that is a 0 from displaying? Assuming you're talking about Table Item(s) that represents a lack of an item, you could assign those Item(s) a blank Name field . Alternatively, you could have those Item(s) represent junk.
1441392897

Edited 1441392910
I had thought, and added, of the addition of a "blank" which suited my needs.  I was being picky and wanted it to simply just not show the roll at all, but decided against that.