Tabletop Simulator

Tabletop Simulator

Not enough ratings
Hand Shuffler
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Misc
File Size
Posted
Updated
36.987 KB
26 Aug, 2016 @ 9:25pm
27 Aug, 2016 @ 8:59am
2 Change Notes ( view )

Subscribe to download
Hand Shuffler

Description
A tool that lets you shuffle or flip the cards in your hand zone at the press of a button. Save it to your chest to load into games or feel free to make it a part of your own TTS games!

How it Works
The tool detects the last player to pick it up. It colors itself to match its owner, and then pressing either of its buttons will cause your hand to flip or shuffle.

Additionally, you can set the tool to always belong to a certain color by editing a variable at the top of the code. Instructions are included in the code to show you where. The tool is also resizable.

I have commented the code, and if you'd like to use it in your own workshop item, feel free. I do appreciate a nod in the description though.
13 Comments
KnightHawk 10 Jun, 2020 @ 12:44pm 
Sorry for the necro of this thread, btw. I am guessing you will be unable to assist?
KnightHawk 7 Jun, 2020 @ 6:40pm 
I know this is quite old and I'm not sure if this will get a response, but is it possible to bind this to all colors? The mod I am working on, requires that everyone's hand be flipped at once. Still fairly new to coding.

Thanks in advance.
Geek Sheikh 22 Aug, 2017 @ 4:37am 
Thank you for all of your help.

Request sent.
MrStump  [author] 21 Aug, 2017 @ 11:28am 
Feel free. If you need to tweek it to suit your purposes, that is also fine. If you want to tweek it and can't, feel free to add me on steam and I'll help you set it up.
Geek Sheikh 21 Aug, 2017 @ 8:45am 
Hi Mr. Stump.

This tool is perfect for a game I am developing on TTS.

With your permission, I would like to feature it in the game and credit you accordingly.

Any other advice or information is much appreciated.

Many thanks.
waka 20 Aug, 2017 @ 5:17am 
nice
Eliont 30 Sep, 2016 @ 11:57pm 
thanks
MrStump  [author] 28 Aug, 2016 @ 8:18am 
I actually was running it 2x the number of entries in the table. And I was doing that for both positions and for cards, so I ended up with a lot of redundant layers that probably would have masked any bias. Even so, no harm in changing it.
spheniscine 28 Aug, 2016 @ 4:36am 
I don't know how much the bias is apparent when shuffling only three cards; that Wiki article gives an example with 7 members. Additionally, you say you run the randomization twice. That might have smoothed out the bias somewhat (but not completely), making it harder to spot via experimentation.
MrStump  [author] 27 Aug, 2016 @ 9:00am 
Well, I'm still not seeing the bias, but I don't deny it could be there, so I switched methods to be safe. Its a neater implimentation anyway