Appearance
Action Set Variable
Stores a value in a variable for later use.
Inputs: 1 · Outputs: Then
Settings
| Setting | Type | Required | Default | Description |
|---|---|---|---|---|
| Variable Name | String | Yes | — | Name for the variable (used with %name% placeholder). |
| Value | String | Yes | — | Value to store. Supports placeholders and other variables. |
| Persistent | Boolean | No | false | If enabled, the variable is saved to disk and persists across server restarts. |
| Scope | Select | Yes | Per Player | Variable scope: Per Player (unique per player), Global (shared), or Local (only accessible during this execution). |
Variable Scopes
| Scope | Access | Persistence | Use Case |
|---|---|---|---|
| Per Player | Per player instance | Optional | Player stats, preferences |
| Global | Shared across all | Optional | Server-wide counters, flags |
| Local | Current execution only | Never | Temporary calculations |
Example
Store the player's join count:
- Set Variable Name to
join_count - Set Value to
1(or use Math Variable to increment) - Enable Persistent
- Set Scope to
Per Player
Access later with %join_count%.
