Tabletop Simulator

Tabletop Simulator

37 个评价
Analog Timer
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
19.155 KB
2020 年 9 月 26 日 下午 7:32
1 项改动说明 ( 查看 )

订阅以下载
Analog Timer

描述
Analog timer that ticks and beeps. Tintable and assigned by names in the contextual menu.
Entirely self contained (uses the component API) - copy, paste and delete as much as you like.

Commands and usage instructions:
Assign your timer a name. This will be the name you use when referencing that timer with chat commands. Colour tint has no effect on functionality (as it limits flexibility).

!timer name time
Starts the timer name for time in seconds.
Example: !timer apple 30 - Starts the timer named "apple" for 30 seconds.

!stop name
Force stops the timer name and prints the elapsed time.
Example: !stop apple - Stops the timer named "apple".

If you see the mod having been updated then consider grabbing the latest version from this submission, it might be important. I don't plan on adding a toggle for the ticking sound as that's half the point of the asset, if you don't like it then remove line 76 in the script: self.AssetBundle.playTriggerEffect(0)

Feel free to use this in your Tabletop Simulator games and workshop mods, no credit/disclaimers necessary.

https://discord.gg/fSHFDVX
4 条留言
SaltyO 2021 年 1 月 9 日 下午 1:11 
Beautiful.
ulia  [作者] 2020 年 10 月 2 日 下午 11:16 
Call setTimer(time) and/or stopTimer - https://api.tabletopsimulator.com/object/#call

Other than these two userinputs the timer manages itself.
pabroski 2020 年 10 月 2 日 下午 10:49 
I'm learning how to build out some games. Is there a way to automate this with a button click? I tried using print and broadcastToAll to do trigger the !timer peach25 but the timer would only start when I typed it in as a player in-game. Any help would be appreciated!
fried raccoon 2020 年 9 月 27 日 上午 3:34 
I love it!!