Tabletop Simulator

Tabletop Simulator

Not enough ratings
Hand Counter -v2.0
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: 4+
File Size
Posted
Updated
6.333 KB
22 Feb, 2016 @ 10:07am
17 Aug, 2016 @ 5:06pm
6 Change Notes ( view )

Subscribe to download
Hand Counter -v2.0

Description
An improved hand counting script, completely replaceing the previous version.

At a push of a button, get the number of cards in all players hands, printed to chat for all to see.

Working without using scripting zones as version 1 did, this version should hopefully cause much less lag for all.

This item is a self-contained object. Drop into any save or mod and enjoy! (you may need to save and load, for Lua to initiate)

If you use this in your mod, let me know about it!

Be sure to check out my other drop-in components
16 Comments
Just Lazer DGE 2 May, 2018 @ 12:22pm 
Thank you for making this!
Referencing your code was helpful in making my own draw button for my mod.
ShyShyShy 17 Aug, 2016 @ 9:21pm 
Thanks. It's working just fine now.
Richy_s  [author] 17 Aug, 2016 @ 5:06pm 
@ShyShyShy On looking at it, thanks to an addition by Berserk, the script for this is greatly simplified. Hopefull it will now work much better for you. Thanks for letting me know!
ShyShyShy 15 Aug, 2016 @ 3:36pm 
@Richy_s Thanks for letting me know. I hope you can update it in the near future.
Richy_s  [author] 15 Aug, 2016 @ 2:30pm 
@ShyShyShy, I haven't updated this mod in quite a while, so I think there are new features that I could use to achieve it more consistantly. When I get time to, I will look into updating
ShyShyShy 15 Aug, 2016 @ 11:43am 
Hello there. I been trying to use your hand counter for my custom games but it doesn't seem to be working. It works fine on a regular table with standard playing cards. But when I load my custom card game with a custom table, the hand counter can only count up to 6 cards max in the hand. Please help me figure out why this is happening. Thanks again.
Mr_Lit 5 Jul, 2016 @ 3:47pm 
cool thanks Richy!
Richy_s  [author] 4 Jul, 2016 @ 10:08pm 
@ Mr_Lit, Thanks for the kind words. The way this works, it doesn't need to know anything about the face values of the cards. This information is not defaultly availlable, so it's not a simple addition. The developers have put a scripting example of blackjack onto the workshop (should be the oldest scripting mod, or close to it). They use a lot of scripting in it to keep track of values. I would definately suggest taking a look, perhaps its everything you need already.
Mr_Lit 30 Jun, 2016 @ 6:20am 
lots of hard work! thanks. Question, do you know how to do one of these that will count the score in a black jack game? Like when I deal, if someone has a 4 and a 8 the place where their cards will read a 12? Just wondering! thanks!
Bafbegagglestick 18 Mar, 2016 @ 9:51pm 
Love this script! It's already saved a lot of time in Smash Up.
Is there any way to get individual blocks that constantly displayed the hand count?
eg: player 1 had a block that always had a read-out of his hand size.