Tabletop Simulator

Tabletop Simulator

One Night Ultimate Werewolf - SCRIPTED NIGHT PHASE!
Thomassaurus  [开发者] 2016 年 8 月 1 日 上午 10:55
Found a typo or bug in my script? let me know here
I want to perfect this script, so let me know of any problems big or small. Thanks!
< >
正在显示第 1 - 8 条,共 8 条留言
:TTSwords 2016 年 8 月 5 日 上午 10:58 
I found a fix to "an error [occuring] when the only player swithes color". The problem was that, for some odd reason, blindCheck() had an issue with having no one to check on for a tick or so.

A simple fix to this was changing line 262 (the line that calls the blindCheck()), so that before the call, you also check to make sure that at least one player is seated. A quick way to do that is "getSeatedPlayers() [1]".

TL;DR: Change line 262 to "if getSeatedPlayers( ) [1] and blindCheck( ) then", to get rid of the error for when the only player leaves the chair. This will ensure that blindCheck() isn't called when it isn't needed.
Thomassaurus  [开发者] 2016 年 8 月 6 日 下午 9:25 
Oh ok, thanks. I used this and while the error doesn't occur all the time anymore, it still happens sometimes.

Do you think that when I change from white to blue for example, both blue and white will be listed in getSeatedPlayers( ) for a bit?
最后由 Thomassaurus 编辑于; 2016 年 8 月 6 日 下午 9:25
:TTSwords 2016 年 8 月 7 日 下午 10:00 
I didn't test it that much, was meant to be a quick fix and kind of the start of understanding what's going on with the error in the code... The way I'm using getSeatedPlayers() is that it only checks the first item in the array, doesn't care if it's "Blue" or "White", just makes sure if there is something in the array, and if not, returns nil, which would become false and doesn't run the blindCheck function, which I thought was the cause of the problem, running the code when not needed.
Cynthesis 2016 年 8 月 8 日 下午 7:20 
Error:
Calling Lua function, startGame, inTimer: chunk_1:(734,16-21): attempt to index a nil value. Occured with Witch in the game. Other Cards: Doppleganger, 2x Werewolf, Minion, Seer, Robber, 3x Villager
Thomassaurus  [开发者] 2016 年 8 月 9 日 上午 10:29 
Did the error cause any problems when the error happened? Or did it just display the error and then continue the night phase as normal?

I think what most likely happened is that the witch accidentally stacked two cards while doing his action which would cause a flood of errors until they were unstacked.

Feel free to add me Eric, I've seen you hosting this game a couple times and wanted to join.
Cynthesis 2016 年 8 月 9 日 下午 2:00 
In regards to the error, the night phase would not advance. Tried resetting it a couple times, it was late and maybe a card may have been put on a non-player location although I didn't think so. I'll try again next time I have a game going and see if it occurs again.

Right now, just typically running with some family members at the moment, but if I start to run some pick up games here and there I'll definitely let you know. I really appreciate the mod, it's nice not being required to hold the phone app up to my headset while we play.
ApfelSkai 2016 年 8 月 9 日 下午 8:04 
Doppleganger to Paranormal Investigator to Wolf doesn't add the "Wolf" tag or wake them up during the Werewolf Turn
Thomassaurus  [开发者] 2016 年 8 月 9 日 下午 8:29 
The p.i. doesn't wake up with the werewolves because his night action comes after the werewolves wake up. So the doppel-paranormal-wolf doesn't get to wake up with them either.

It's like if the doppel-robber stole a werewolf card, even though he would know he was a werewolf he wouldn't wake up with the werewolves. Just like a normal robber.
最后由 Thomassaurus 编辑于; 2016 年 8 月 9 日 下午 8:33
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50