Tabletop Simulator

Tabletop Simulator

评价数不足
Portable chess clock
   
奖励
收藏
已收藏
取消收藏
Assets: Scripting
标签: Misc
文件大小
发表于
更新日期
39.611 KB
2017 年 12 月 30 日 上午 8:27
2019 年 1 月 4 日 下午 2:16
3 项改动说明 ( 查看 )

订阅以下载
Portable chess clock

描述
Simple adjustable chess clock, no fireworks.

If someone has a fancy assetbundle with beeping affect and stuff, PM me or rip the script and put it on it if you want. But the current rectangle is 100% functional.
13 条留言
Bloody Byrn 2021 年 4 月 12 日 上午 8:13 
works perfect, thank you
dzikakulka  [作者] 2021 年 4 月 12 日 上午 6:49 
@BLooD ManDU
Sounds be pretty easy, but its pretty specific functionality and I don't think it should be in the published version of this clock.

All it needs is adding the following script:

if state.running then
state.timeValues[state.currIndex] = state.timeValues[state.currIndex] + 10
UpdateTimer(state.currIndex)
end

to the beginning of ClickTimer function, that is just under the line that says

function ClickTimer(index, color)

You can access the clock script under Modding button op top of the screen, then selecting Scripting and choosing the clock object on the list - it will highlight blue when selected.
Hopefully that will let you get the needed functionality and maybe help with further modifications :)
Bloody Byrn 2021 年 4 月 11 日 上午 4:47 
Hey nice clock thanks for the work, is it possible to add the increment function?
i mean for example +10 seconds added to your clock at the end of your turn.
Alien Righteousness 2021 年 3 月 4 日 下午 4:51 
I did an additive load and that's why the text was still there. I ended up just saving the clock alone as an object and them importing into my mod. Thanks so much, great work!
dzikakulka  [作者] 2021 年 3 月 4 日 下午 3:27 
@Step 1
What text? The instructions and arrows? It's there for you to learn its functionality, but you should just copy or add the clock to your saved objects and spawn it wherever you need it directly, not play on this exact table.
Alien Righteousness 2021 年 3 月 4 日 上午 1:27 
Cool, but why all of the text around the control? I have no idea how to delete it. Its just stuck on the board and looks horrific.
dzikakulka  [作者] 2019 年 1 月 4 日 下午 2:16 
@Heinz
Nice catch, should be fixed. It's still not what I would like to be, but probably good now. If you still notice any drift, let me know and I'll rework that bit.
Heinz 2019 年 1 月 2 日 下午 3:38 
The time is much faster than actual time. 20 "seconds" tick off in about 10 actual seconds atm.
Ivan_IV 2018 年 11 月 4 日 下午 2:50 
Glorious! Thanks!
Unreal Ed 2018 年 1 月 3 日 上午 6:39 
@dzikakulka I highly recommend the button visualizer tool to help you make mods. SUPER useful