Tabletop Simulator

Tabletop Simulator

86 ratings
Universal Counter Tokens
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Misc, Templates
File Size
Posted
Updated
32.317 KB
Jun 16, 2016 @ 2:10pm
Aug 26, 2017 @ 3:32pm
6 Change Notes ( view )

Subscribe to download
Universal Counter Tokens

Description
Counter tokens that can be easily customized for use in your games.You can use any image you like for the counter. The counter can be resized to any scale and it works with undo/redo/loading without losing its count!

I designed this for use with any game that uses tokens to keep track of things like health, mana, sanity, poison, etc. Sometimes it is tiresome to exchange tokens back and forth with the 'bank' and you wish you could just have a simple counter instead without those bulky counters that are part of the Tools in the game. The font size will resize if you go over 100, and there are both +/- 1 and +/- 5 buttons. I also added the functionality so that, if you enter any number into the description of the token and then click on the display, it will set the display to that number.

How to use your own image for the token:
  • Right click the token
  • Select "Custom"
  • Replace the URL with one of your own (500x500 image is ideal)
  • Without changing other settings, select "Import"

I hope you fine folks find some good uses for it. I've commented the code. If you're looking for a LUA example that shows you how to create/edit buttons or use the onSave() function, this could help. Cheers.
Popular Discussions View All (1)
1
Oct 23, 2020 @ 11:56pm
Negativ values
Sirzento / Nico
49 Comments
Sean2111 Dec 15, 2023 @ 12:28am 
This is great.
I used my own image and saved to the cloud ,thought maybe for the best.
Then I made this counter really small.
Then I attached a Miniature Model (W40k infantry) to the counter.
Put the counter to rear of model.

Now I can still use the buttons ,and at present using for range. So I know this particular infantry man can shoot so far for example.

Works good.
Iron-Claw Jul 6, 2023 @ 3:05pm 
Yes, same here. So far it has always worked fine for the host, but sometimes the client players report that the numbers overlap for them and/or the buttons don‘t work. When this happens, saving and reloading the game seems to fix it. Also, rewinding time also fixed it at least in one case. Strange… not sure whether this behaviour is caused by a TTS bug or a mod bug (or both :).
Minesteper Feb 25, 2022 @ 11:01am 
does anyone else have any problems with the counters it seems fine to me but my players say the the numbers overalap on top of each other
MarcusRaven Jul 5, 2021 @ 10:25am 
Is it possible to have two counters on the same token?
BeautifulMountAiryLodge Mar 6, 2021 @ 12:11pm 
This is fantastic! Thanks!
Becbunzen Jan 30, 2021 @ 10:42am 
The counters seem broken with the update to TTS yesterday. Are you getting errors too?
Nogge Dec 27, 2020 @ 11:41am 
These counters are exactly what I was looking for, for a mod I'm putting together of a dying game.

Would it be alright if I use these in it, giving credit and linking here of course?
rULmismo Nov 7, 2020 @ 2:43am 
Thanks four your guides and assets. I am trying to use your counter in a script, but when access the getvalue() or increment() methods I always get a NIL result error.
It puzzles me that it works right if I use an standard TTS counter, but not with custom counters I tried. Any suggestion what I am doing worng?
Keanu Weebs Jul 13, 2020 @ 2:36am 
Any thoughts on how to add multiple counters to a single image? I am trying to edit a counter for armor and structure for a battletech game.
Professor Jethro "Stitches" Dax Jul 2, 2020 @ 7:23am 
Thank You Mr Stumps. I'm going to be uploading two verisons of a steam punk engine deck builder named Widget Ridge and just wanted to make sure it is ok with you that your counters will be in it.