Tabletop Simulator

Tabletop Simulator

Not enough ratings
Infinite Random Bag
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Misc
File Size
Posted
6.199 KB
27 Feb, 2017 @ 9:05am
1 Change Note ( view )

Subscribe to download
Infinite Random Bag

Description
Place any number of various objects into the bag, and you will draw a random one of the objects every time.
Each time you take an object out of the bag, it will be cloned and replaced, and the bag re-shuffled, so it's possible to draw the same object again.

You can copy and paste the script onto any container object.

Do note that once you place an object into the bag, you can't take it out because it will automatically be cloned and replaced. A trick that allows you to remove the object is to use the search function, and remove it through that, because while the search is open, objects can't be put into the bag. The cloned object will appear to go into it, but just be destroyed instead.
10 Comments
Adil3tr 11 Jun, 2024 @ 5:57pm 
This is a better version of this mod: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2482058290

Combine it with this in order to make it so the bags won't accept any new objects: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3244936914
Er1cDelux3 28 Jun, 2023 @ 8:17am 
for some reason, this doesnt work as described above. i can not add more then one tile and i also have no option to search the bad
chemicalvamp 3 Jan, 2022 @ 11:54pm 
This is best in slot for making dungeons out of tilesets. thank you for doin it the way you did.
Coping Kobold 7 Aug, 2021 @ 9:36am 
If you draw multiple items at once (With the number keys) it will draw that many of the same item. Avoid drawing items directly to the hands this way.
zomnombie 27 May, 2020 @ 5:30pm 
When I deal random loot it deals all the same item, any suggestions? I tried messing with the delay shuffle but to no avail. Is there a way to delay the spawn?
Skor  [author] 5 May, 2020 @ 2:28am 
There isn't a way to change the odds with the script. Just add one high value coin with a bunch of low value coins.
Oberst von Schmus 4 May, 2020 @ 9:46am 
Is it possible to change the odds? I want to add coins with different values to it, but high valued coins should be very rare, can I change the odds in the Script or by simply adding only one high value coin and 70 low value coins?
Wanchance Hoppins 19 Aug, 2019 @ 10:05am 
Is it alright to include this in my module?
Lokjaw #7 14 Jun, 2019 @ 1:18am 
Really good for MTG Drafting
Preacher 5 Aug, 2018 @ 5:34am 
Nice