Tabletop Simulator

Tabletop Simulator

Not enough ratings
Bag It! - Easy Item Cleanup Bags
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Misc, Templates
File Size
Posted
22.851 KB
3 Jul, 2016 @ 12:16pm
1 Change Note ( view )

Subscribe to download
Bag It! - Easy Item Cleanup Bags

Description
Bag It! is a scripted bag that is designed to allow for quick cleanup during games. If you need to clean up markers after a round or clear score-keeping tokens between hands, you may use these scripted bags to get it done in a snap.

Features:
  • Quick cleanup. Can clean up an entire table of tokens/markers in a moment.
  • Protection from accidental clicks. The Clean Up button requires double click to work (two clicks within 1 second) and the Reset button has a yes/no confirmation.
  • Unlocks any locked items when returning it to the bag.
  • Scripting is both commented and attached to the bag itself. Just save a copy of the bag to your chest, or pull it out of the save, to use it in your other games.
  • Is designed to work with copies of itself, so you can use separate bags for separate token types. But this works off of GUIDs, so don't copy/paste the items you want the bag to remember after you store them in the bag or it will generate new IDs for the duplicates.
People often ask how to insert items into a bag, because there is no specific solution to do that. So I hope this can serve as an example of how to work around the problem. And hopefully people can use it in some of their games to make life easier.

Also, overly tall or large items can get in the way and mess with the cleanup a little (chess pieces and smaller were all fine). The reason is it offsets the height of each item by a set amount. So if you are trying to add this to a game and are having trouble with the pieces not falling into the bag, try increasing the offset variable at the top of the script.
18 Comments
Teeto Powers 8 Sep, 2022 @ 2:09am 
Does it still work? As Sparty said below, it seems to not work even in this demo.
Coping Kobold 7 Aug, 2021 @ 11:07am 
Works okay, but items tend to collide with each other and fail to fall into the bag.
Toubi 5 Jan, 2021 @ 10:51am 
Any way for your script to handle infinite bags?
Sparty 28 Oct, 2020 @ 3:11pm 
Does this still work? I've been trying it, and even in the demo, it doesn't seem to work as described. Thanks for the sanity check on this!
maximo1984 11 Jan, 2017 @ 5:52pm 
that makes sense, thanks
MrStump  [author] 11 Jan, 2017 @ 3:56pm 
If you put a deck on top of a different deck, it will destroy one of those deck's GUIDs and that deck will be forgotten. Because of their nature, decks are inherently prone to having their GUIDs changed.

It would probably be easier just to keep an infinite bag of decks off to the side and erase all the current cards/deck after use.
maximo1984 11 Jan, 2017 @ 3:46pm 
Really nice, thank you. Would it be possible to drop decks of cards in these, then clean those up too? I tried but the deck wouldn't go in.
RedPandaPaws 2 Oct, 2016 @ 7:38pm 
Hey thanks so much. Ive been looking for something like that forever now. :)
MrStump  [author] 2 Oct, 2016 @ 7:28pm 
It is possible. I'd have to write a new script for it, but totally possible. But before I do, have you checked out the Scene System ? It already does this basically, and has a lot more flexibility.
RedPandaPaws 2 Oct, 2016 @ 7:20pm 
Could you make it so that it can return its contents to the table?