Variable Manager
Variables are named pieces of game state, such as a score, a door state, a player choice, or the number of collectibles found. Variable Manager gives you one place to review the variables that your no-code effects and Functions use.
Add and organize a variable
- Open Variables from the creator rail or Settings > Variable Manager.
- Use Add variable and choose a clear, stable name such as
stars_collectedordoor_open. - Use the variable in an Update Value or Update String Value effect.
- Return to Variable Manager to review how it is scoped and stored.
Scope, type, and persistence
The manager identifies variables as numeric or text, and as room, multiplayer, or player values when the logic uses them that way.
- A numeric value is good for a score, count, timer result, or health.
- A text value is good for a label, a selected path, or a short status.
- A multiplayer value is shared by players in the room.
- A player value belongs to each player separately.
- A persistent value is kept beyond the current play session when the variable's configuration supports persistence.
Choose the smallest scope that matches the behavior. A personal score should not be shared, while a team-door state normally should be.
Initialize deliberately
Do not assume that a new variable has the starting value your game needs. Use a Player Log In trigger to set up a player value, or use an appropriate room-start flow for a shared value. Then test with a fresh player session and with a second player when the value is shared.
Show a variable in the world
Use Text with the form
|variable_name| to display a current value to players. The spelling must
match the variable name exactly.
