Tabletop Simulator

Tabletop Simulator

Not enough ratings
Order-reversing deck tool & bag [Scripted, v1.0]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
71.049 KB
4 Jun, 2020 @ 7:47pm
1 Change Note ( view )

Subscribe to download
Order-reversing deck tool & bag [Scripted, v1.0]

In 1 collection by Unreal Ed
TTS tools
363 items
Description
These 2 tools reverse the order of the contents of your bag! Re-use it in your own mods!
It's useful for any mod/game that needs you to reverse the order of what's in a bag or reverse the order of a deck.





What is this?
These are 2 tools:
- A bag that creates a clone of itself, and then empties its content into the cloned bag, thus reversing the order of the content. The cloned bag then moves back in the place where the original bag was.
- A deck holder that finds the deck above it, creates a clone of itself, and then draws cards 1 by 1 over the clone. This reverses the order of the deck. The cloned holder and deck then move back in the place where the originals were.

I made this script for people to import into their mods, so feel free to do so! You can credit me or not.


How to import into your game/mod
To import into your mod or live game, you can simply use the Saved Objects (right-click -> Save Object) and then drop it on the table. Or you can find the mod in your list of mods, click at the top right, click Expand, and drag n' drop the tool on your table.


Planned to add:
- Tool to do the same as the bag but keeping the original bag but putting the contents back into its original bag
5 Comments
Argus 15 Oct, 2022 @ 4:55pm 
Yeah, any chance of fixing this so that it works with smaller deck sizes? It would be so useful if that one issue was resolved @Unreal Ed
Cafe Games 15 Jun, 2022 @ 10:20am 
Ahh what a shame. After trying to script something similar I thought I had found the solution in this mod, but it doesn't work with my 15 card decks.
Xtal Lattice 9 Apr, 2021 @ 7:28am 
It's always possible that it's due to one of the TTS updates.
Unreal Ed  [author] 9 Apr, 2021 @ 1:27am 
That's... weird. I'll look into that. I don't recall that being a problem and I feel like I'd have tested for several deck sizes, but this was a while ago
Xtal Lattice 9 Apr, 2021 @ 12:22am 
It seems that this tool requires a minimum of 22 cards in order to function.

If you try to sort a deck with less than 22 cards, you get an "attempt to index a nil value" error.

This bug should be fixed so that the tool is useful for decks of all sizes.