Skip to content

Who sees what

In a multiplayer game each player sees what their character may know. You decide how much more is hidden, with two settings in the Studio: Who Sees It on a variable and The Target Knows on a scheme. This page says what each setting hides. It says just as plainly what hidden does not cover.

  • Every character, clan, family, marriage and role, the calendar and the speed of time.
  • Every variable you did not hide.
  • The schemes their own character takes part in.
  • A scheme against their character, only when that scheme says The Target Knows.

A player also sees the characters’ traits and the attitudes between clans. They can ask what a character thinks of them, and the answer is only about them.

On the Variables page, a variable has a row Who Sees It with three choices (VariableVisibility in VariableType.cs; row in VariablesPage.cs, line 401).

Choice Who sees the value
Everyone (the default) Every player.
Owner only The player whose character holds the value. For a relationship value, the player of the “from” actor. For a clan or family value, a member. Nobody sees a World value marked so.
Host only Nobody but the host. Use it for game logic.

A value a player may not see is not sent to them. On that machine Variable.IsKnown is false, the value reads as its default, and texts treat it as missing: it prints empty, and an {if} on it is false (Variable.cs, lines 290 to 298). Nothing changes in a single-player game.

A scheme’s own values have no Who Sees It row; in those texts they count as Everyone.

What your scheme shows a player through its nodes is different. A dialogue, an announcement, a player’s choices, buttons and tooltips, a flag’s title and the objective print as you wrote them for that player, whether their character takes part in the scheme or not. Only values marked Owner only or Host only, formulas and the breakdown of an opinion stay hidden there. An opinion’s number prints, and hidden values can still move it. You decide who reads a text by whom you show it to.

In a scheme’s settings, The Target Knows is off by default (GroupData.cs, line 127). When it is on, the player of the target also sees the running scheme: who plots, the objective and the odds, like the conspirator’s and the accomplices’ players do. Find it on Scheme settings.

The host’s machine knows everything, because it runs the world. By default the setting HostPlaysFair is on (SessionSettings.cs, line 408). The host’s own menus and texts then read the world as the host’s player would on a client, which keeps an honest host from learning other players’ secrets by accident. It cannot stop a host who wants to cheat. The host can always read the world, so play with people you trust, or on a dedicated host that nobody plays on, as the README advises.

The dice and their secret, the inner workings of your graphs, the characters’ private memories, ties and ambitions, and other players’ keys are never sent. The developer notes add the scheme variables and the flow state of graphs.

  • The database is on every machine. Hidden covers values that appear while the game runs. Start values and graphs you wrote are in the database every player has.
  • Effects of a hidden scheme are public. If a hidden plot kills someone, changes a role or changes a public variable, everyone sees that. Hide such values with variable visibility if they must stay secret.
  • A start a player asks for is judged on what that player can see. A rule such as “nobody plots against me” can pass while a hidden plot against that player exists.
  • Requirements that read hidden values are summed up for a player as one line, “A condition you cannot see is not met.” This happens only when no visible requirement already fails.
  • Choice conditions in a dialogue are decided by the host. They see only the schemes that player may know of, but a hidden variable value a condition reads still counts.
  1. On the Variables page, set Who Sees It for each value that is a secret.
  2. In each scheme that should warn its target, turn on The Target Knows.
  3. Leave HostPlaysFair on, which is the default.
  4. Test with two machines and look at what the second player’s menus and texts show.

For code that answers for another player, see Host-aware game code. For the connection side, see Security notes.