Tabletop Simulator

Tabletop Simulator

86 valoraciones
Universal Counter Tokens
   
Premiar
Favoritos
Favorito
Quitar
Assets: Scripting
Etiquetas: Misc, Templates
Tamaño
Publicado el
Actualizado el
32.317 KB
16 JUN 2016 a las 14:10
26 AGO 2017 a las 15:32
6 notas sobre cambios ( ver )

Suscríbete para descargar
Universal Counter Tokens

Descripción
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.
Discusiones populares Ver todo (1)
1
23 OCT 2020 a las 23:56
Negativ values
Sirzento / Nico
49 comentarios
Sean2111 15 DIC 2023 a las 0:28 
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 6 JUL 2023 a las 15:05 
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 25 FEB 2022 a las 11:01 
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 5 JUL 2021 a las 10:25 
Is it possible to have two counters on the same token?
BeautifulMountAiryLodge 6 MAR 2021 a las 12:11 
This is fantastic! Thanks!
Becbunzen 30 ENE 2021 a las 10:42 
The counters seem broken with the update to TTS yesterday. Are you getting errors too?
Nogge 27 DIC 2020 a las 11:41 
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 7 NOV 2020 a las 2:43 
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 13 JUL 2020 a las 2:36 
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 VG Dax 2 JUL 2020 a las 7:23 
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.