Tabletop Simulator

Tabletop Simulator

评价数不足
Simple Turn Timer
   
奖励
收藏
已收藏
取消收藏
Assets: Scripting
标签: Misc
文件大小
发表于
更新日期
8.530 KB
2017 年 2 月 7 日 上午 8:00
2017 年 2 月 8 日 下午 1:51
3 项改动说明 ( 查看 )

订阅以下载
Simple Turn Timer

描述
I did a quick search and didn't see one of these on the workshop. If I'm wrong, I can take it down.

Basically it's just a simple turn timer which starts counting down at the start of a player's turn. Time is adjustable with the arrow buttons.

You can also set it to teleport in front of players' hands by changing the boolean variable 'teleport' from false to true. The change doesn't take effect on the clock that already exists, but you can copy/paste a new one or save to chest and spawn from there, and the change will be in effect on the new one.
6 条留言
darbs 2019 年 3 月 11 日 下午 10:16 
@static

--[[ Turn timer scripted by Skor. Timer starts going UP on turn start. --]]

teleport = true
teleportdistance = 7


function onPlayerTurnStart(pl, prevpl)
self.Clock.startStopwatch()

if teleport then
self.setPosition({Player[pl].getPlayerHand().pos_x + (Player[pl].getPlayerHand().trigger_forward_x * teleportdistance), Player[pl].getPlayerHand().trigger_up_y, Player[pl].getPlayerHand().pos_z + (Player[pl].getPlayerHand().trigger_forward_z * teleportdistance)})
self.setRotation({Player[pl].getPlayerHand().rot_x + 90, Player[pl].getPlayerHand().rot_y, Player[pl].getPlayerHand().rot_z})
end
end


function doNothing()
end
[SiRe] Static 2019 年 2 月 10 日 下午 11:39 
@Skor Would you be able to make a version of this that counts UP for each player's turn instead of down?

For most games I'm not as interested in putting a hard limit on each player's turn as I am in tracking exactly how long their turn is taking.
Emtu 2017 年 2 月 8 日 下午 1:58 
Awesome. Yeah, my issue is people taking far too long to take their turns in Munchkin, causing games to run 3-4 hours or even more.
Skor  [作者] 2017 年 2 月 8 日 下午 1:45 
And updated. I added a boolean variable at the top of the script which is set to false by default. Change it to true if you want it to teleport. The change doesn't take effect on the already spawned one, but you can copy/paste a new one or save to chest and spawn from there and the change will be in effect on the new one.
Skor  [作者] 2017 年 2 月 8 日 下午 12:57 
That's what made me think of making this - people taking way too long to take their turns in Catan games, when they make a request for trade and wait like 30+ seconds for someone to bite... and then repeating the process with every other resource! I thought it might be nice to set a time limit on turns or something, so I scripted this. I haven't actually used it yet though.

I could probably add a few lines to teleport it around based on the players' hand locations. I would have the lines commented out by default, but you could just remove the comment tags in the script.
Emtu 2017 年 2 月 8 日 下午 12:39 
Ooh. A way to automatically move this around the table (like the Turn Tracker) would be nice. I may poke at this and work on blending the mods, to encourage people to GET ON WITH IT.