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

Is there a way to...

Lets say you created a loot table on chat that shows 8 unique items. Is there a way to turn those 8 items into button and whomever player clicks it - agreed to pick up the loot and it will be transported to their character sheet? Also maybe, once any player click on any item, it automatically refreshes itself and updates the loot items back on chat?
1601575397
The Aaron
Roll20 Production Team
API Scripter
All of that is possible in one way or another.  I'd use a Handout and have API buttons in it, then have clicking on them edit the handout to remove the button (or disable it).  None of that is written, so far as I know.
1601587083
timmaugh
Pro
API Scripter
But it does seem within the scope of the Character Genome Project . The GM could designate certain items on the library character sheet as "lootable" -- either by game prep or ad hoc during the game -- and then drop a menu like that to the players. There could even be a compendium character just for lootable items. Lots of ways to go. I'll add it to the "hoped for features" on that thread.
1601593803

Edited 1601593948
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I use a similar system for treasure that is not equipment. It's a simple ChatSetAttr macro that appends whatever is input to the end of the "Treasure" attribute on the D&D 5th Edition by Roll20 Sheet !setattr --sel --replace --treasure|%treasure% \n ?{enter the treasure to give to character of selected token|object} It could probably be modified to use a table result rather than a query. Edit : This should work, if you want to write to the treasure attribute: !setattr --sel --replace --treasure|%treasure% \n [[1t[Table_Name]]]
1601594804
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This trick is also set up for making API buttons for more formal equipment. Not random, since a table can't easily create all of the attribute entries needed. OGL Sheet Inventory Writer