# What is multiplayer mode?

Multiplayer mode allows 2 to 4 players to experience your story together, each embodying a different role. Each player can have their own steps, their own choices, and their own variables, while sharing a common narrative universe. This is a unique feature of Livre Arbitre that opens the door to collaborative and immersive experiences.

A new narrative paradigm

Multiplayer transforms your story into a social experience. Players can discover different aspects of the plot depending on their role, and their individual choices can influence the path of other players.

# Enabling multiplayer mode

To enable multiplayer mode, go to your story settings (Configuration tab). There you will find the option to set the number of players (between 2 and 4) and configure multiplayer session settings.

1

Open story settings

From your story dashboard, click on the "Configuration" tab in the sidebar menu.

2

Enable multiplayer

Turn on the "Multiplayer mode" option and set the desired number of players (2, 3, or 4).

3

Configure roles

Assign a name or description to each player role so participants know which character they are playing.

Capture à venirMultiplayer mode configuration
The Configuration tab allows you to enable multiplayer mode and set the number of players.

# Assigning players to steps

Each step in your story can be associated with a specific player through the associatedPlayer field. This means only the designated player will experience that step. Unassigned steps are shared by all players.

Player labels

In the step list, assigned steps display a colored label indicating the associated player (player:1, player:2, etc.). This allows you to quickly visualize how steps are distributed among players.

Capture à venirPlayer labels in the step list
Colored labels indicate which player is associated with each step.

# Player-specific conditions

You can use the CurrentPlayer condition on links between steps to create different branches depending on the active player. For example, the same starting point can lead to different scenes depending on whether the reader is player 1 or player 2.

Condition typeDescriptionExample
CurrentPlayerChecks which player is currently readingCurrentPlayer = 1: only player 1 sees this link
Global variableVariable shared among all playersteam_score >= 10
Player variableVariable specific to a particular playerplayer1_inventory contains 'key'

# Shared and private variables

In multiplayer mode, variables can have two different scopes:

  • Global variables — Shared among all players. Useful for tracking the general state of the story (e.g., an unlocked door, an eliminated NPC).
  • Per-player variables — Specific to each player. Useful for individual inventory, personal stats, or private choices.
Watch out for conflicts

When multiple players modify a global variable at the same time, the last modification wins. Design your game logic with these concurrency cases in mind.

# Invitation system

To join a multiplayer game, players use the invitation system. The first player creates a game session, then invites other players by sharing a link or invitation code. Each player receives a notification and can accept or decline the invitation.

1

Create a session

The first player starts reading the multiplayer story and automatically creates a game session.

2

Invite players

From the waiting screen, the session creator can invite other players by username or share an invitation link.

3

Accept the invitation

Invited players receive a notification and can join the session with a single click.

4

Start the game

Once all players are connected, the session creator can launch the adventure.

# Automatic matchmaking

If you don't know anyone to play with, automatic matchmaking connects you with other players interested in the same story. The system searches for available players and automatically forms a group once the required number is reached.

# Best practices for multiplayer design

  • Balance playtime — Make sure each player has a similar number of steps to go through to avoid some players waiting too long.
  • Create convergence moments — Plan shared steps where all players come together to share their discoveries.
  • Use global variables wisely — They allow one player's actions to have a visible impact on the others.
  • Test with the right number of players — Verify that all paths are accessible and consistent for each role.
  • Document the roles — Give each player a clear description of their character and objectives.
Multiplayer flow visualization
The flow graph displays steps colored by player, making it easy to visualize the multiplayer structure.