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

Loot random generator + icon

I want to make a random loot generator in the game. To drop random loot in the format: picture, name, quantity. Is there some kind of macro or API to implement such a loot system? As planned, I would like the subject to be randomly taken from a list I had previously compiled.
1617572866
The Aaron
Roll20 Production Team
API Scripter
There are some API scripts that can help with that.  RecursiveTable is one.
1617572894
Gold
Forum Champion
for starters you'll want Recursive Tables API script, to be able to randomize the Quantity within each roll result.  Such as having 1 roll result to be 2d4 Gems. you may need more -- to combine the Picture result with the matching text.  The default 2 ways of displaying Rollable Table output (as a raw roll with = sign, or [[in-line using brackets method]]) are both inadequate for properly displaying the IMAGE and it's textual caption together. Looking forward to hearing the recommendations for this
1617612789

Edited 1617613757
Yes, it's really better than it was. But I would like to somehow deduce this structuring. In the table of the same item with a different approach, it is not possible to have a random generation of quantity for each item by means of randomness. <a href="http://joxi.ru/4AkJ49nckq4Je2" rel="nofollow">http://joxi.ru/4AkJ49nckq4Je2</a> &nbsp; or <a href="http://joxi.ru/823JPKBc80ByYm" rel="nofollow">http://joxi.ru/823JPKBc80ByYm</a>
actual :D