Tabletop Simulator

Tabletop Simulator

Not enough ratings
Hand Shuffler
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Misc
File Size
Posted
Updated
36.987 KB
Aug 26, 2016 @ 9:25pm
Aug 27, 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 Jun 10, 2020 @ 12:44pm 
Sorry for the necro of this thread, btw. I am guessing you will be unable to assist?
KnightHawk Jun 7, 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 Aug 22, 2017 @ 4:37am 
Thank you for all of your help.

Request sent.
MrStump  [author] Aug 21, 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 Aug 21, 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 Aug 20, 2017 @ 5:17am 
nice
Eliont Sep 30, 2016 @ 11:57pm 
thanks
MrStump  [author] Aug 28, 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 Aug 28, 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] Aug 27, 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