Tabletop Simulator

Tabletop Simulator

Not enough ratings
Peerless's Finite Bags
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: 4+
File Size
Posted
Updated
68.871 KB
5 Oct, 2016 @ 7:27pm
22 Sep, 2018 @ 4:00pm
4 Change Notes ( view )

Subscribe to download
Peerless's Finite Bags

Description
I'm sure there is a bag with a maximum capacity somewhere on the workshop but I couldn't find it.

This is a script for bag objects so that they have a customizable upper limit on how much that they can hold. Exceeding that limit will cause the bag to place the excess objects in front of the bag.


Use the bags provided or copy the script to custom bags to grant them this functionality. It helps with tracking pools that share a resource or containers that fill up in sequence.



Feel free to use this script where ever you need it, include it in mods, learn Lua from it, name it George.

Update: I fixed an issue where putting a bag in a bag could cause an error to be thrown
2 Comments
Peerless  [author] 9 Apr, 2017 @ 8:32am 
No Problem! Thats an interesting use of it!
Shinji 5 Apr, 2017 @ 2:47pm 
Thanks very much for this. I was able to modify this to make self-destructing, self-shuffling, tamper-proof (well as much as I could figure out) randomized loot bags that are given during random pulls.