Skip to content

Action Set Variable

Stores a value in a variable for later use.

Inputs: 1 · Outputs: Then

Settings

SettingTypeRequiredDefaultDescription
Variable NameStringYesName for the variable (used with %name% placeholder).
ValueStringYesValue to store. Supports placeholders and other variables.
PersistentBooleanNofalseIf enabled, the variable is saved to disk and persists across server restarts.
ScopeSelectYesPer PlayerVariable scope: Per Player (unique per player), Global (shared), or Local (only accessible during this execution).

Variable Scopes

ScopeAccessPersistenceUse Case
Per PlayerPer player instanceOptionalPlayer stats, preferences
GlobalShared across allOptionalServer-wide counters, flags
LocalCurrent execution onlyNeverTemporary calculations

Example

Store the player's join count:

  1. Set Variable Name to join_count
  2. Set Value to 1 (or use Math Variable to increment)
  3. Enable Persistent
  4. Set Scope to Per Player

Access later with %join_count%.

Oasis Admin Editor Documentation