Tabletop Simulator

Tabletop Simulator

Star Wars Rebellion (Ultimate Edition)
Daiyamo 2021 年 12 月 22 日 下午 12:00
Question on hidden card implementation (and how apply it to another mod)
Hi, could you share some insight into how the forced hiding of mission cards between players is implemented? Id like to apply it to my mod of Triumph and Tragedy but I can't quite figure out how you do it (which appears to be a unique use of the fog of war utilities from tts?). When I saw this mod and how those mission faces are discriminately hidden, I had realized that this was pretty much the solution I wanted for that mod.
< >
正在显示第 1 - 2 条,共 2 条留言
DevKev  [开发者] 2021 年 12 月 22 日 下午 11:14 
Hi. It's not the fog of war, though that is the most common method of hiding things. If you want to hide an object from specific players, without a FOW zone, you can use: Object.setHidden("Blue","Orange","White")
This would hide the object from Blue, Orange, White, but other players would still see it.
I use scripting zones to trigger the hiding / revealing. When a card enters the hidden zone, it gets set to hidden. When it enters the reveal zone, the hidden property is removed. The zones are strategically placed to trigger when the card is moved.

Challenges with this are that gray players that join could see face up cards until they choose a colored seat. I believe you can hide objects from Gray also, but then gray would not be able to spectate. My work around was to flip all hidden cards face down when a saved game is loaded. The players can flip them face up after each player has sat in the correct color seat.
I also used Object.createButton to write "Hidden" on the card to remind the player it is hidden.

To remove the hidden property, you use the command with no parameters: Object.setHidden()
I hope that explains enough. I could give you more specifics
最后由 DevKev 编辑于; 2021 年 12 月 22 日 下午 11:15
Daiyamo 2021 年 12 月 23 日 下午 5:06 
Thanks so much for the response. This gives me hope for whenever I get the time to work on the mod.
最后由 Daiyamo 编辑于; 2021 年 12 月 23 日 下午 5:06
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50