Tabletop Simulator

Tabletop Simulator

Not enough ratings
Hand Rotator
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: 4+
File Size
Posted
Updated
26.021 KB
22 Feb, 2016 @ 10:08am
17 Aug, 2016 @ 4:54pm
7 Change Notes ( view )

Subscribe to download
Hand Rotator

Description
A self-contained script to rotate hands of cards.

No need to note gown GUIDs, just drop this item into your mod/save, (may need to save and then load again) and enjoy rotating hands at the push of a button.

Two buttons included, one for clockwise, one for anti-clockwise.

Only players currently seated will be effected.

Feel free to use this in your own mod, or as a code reference, just let me know so I can check them out!

Also don't forget to check out my other uploads, for other self-contain scripted objects.

Many thanks to Hobo on this one, for testing and ideas.
On feedback from Licchan, have removed ability to accidently double-click, this introduces an unsightly flicker, will fix when API allows

If you find a bug, please give me some info, so hopefully I can squash it.
24 Comments
Feldar 26 Dec, 2023 @ 1:58pm 
This mod is putting the cards in my hand upside-down
MrMath536 12 Jan, 2022 @ 7:42am 
That's an awesome idea. But when you play "alone" to create a game, it doesn't pass the cards, since I'm not a "player" even if if gave Red and Orange players cards in their hand.
Mindless 26 Feb, 2021 @ 8:46am 
TehCupcakes 23 Apr, 2017 @ 5:28am 
Hey, someone had an issue with this script in one of my mods when they were playing with 5 players. Maybe you could take a look? Pretty sure I left your script unmodified, so I'm not sure what would cause it.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=780801567
TehCupcakes 17 Apr, 2017 @ 8:00pm 
Thanks for this! I'm going to give it a shot in my Sushi Go Party mod. I haven't really been able to test it in a real scenario, since I practically never have people to play with on TTS, but a few people have reported issues with passing hands in the past and I'm hoping this will resolve all the issues.

...Until the API changes again and screws everything up, of course. ;)
Richy_s  [author] 17 Aug, 2016 @ 4:58pm 
Pushed an update that should hopefully make this work a little cleaner. Tabletop Simulator, being a simulator can be finnickey, but hopefully this should stop errors with cards not being rotated. Uses some of the API features added or fixed since this was last updated. Also coloured the chips to correspond to the players. Let me know if this has broken your game / ruined your life, and I'll look to fixing that.
Richy_s  [author] 4 Apr, 2016 @ 12:44am 
The error Roon pointed out here has now been fixed. Hopefully everything should be fully functioning again, don't hesitate to let me know if you find any issues.
Richy_s  [author] 28 Mar, 2016 @ 4:58pm 
Roon, this is due to a change they made to the API. I have been intending to get it updated, but haven't got round to it yet. Until then, the item will be unusable, sorry
Roon 28 Mar, 2016 @ 2:13pm 
It doesn't work for me, when i try to use the button, there is an error like "cannot convert a string into a clr type" l104
Markimus 23 Mar, 2016 @ 6:08am 
It would be nice if this was a toggle button rather than two distinct buttons.