Skip to content

Action Array

Stores an ordered list of values. Items can be added, removed, updated, sorted, or accessed by their position in the list. Useful for inventories, menus, queues, and any data that needs to stay in a specific order.

Inputs: 1 · Outputs: Then

Settings

SettingTypeRequiredDefaultDescription
OperationSelectYesCreateChoose what to do with the array.
Array Variable NameStringYesName of the array variable. Supports placeholders.
ScopeSelectYesPer PlayerWhere the array is stored.
Initial ValuesString ArrayNoValues used when creating a new array.
ValueStringNoValue to add, check, or remove. Visible for push/contains/remove operations.
IndexStringNo0Zero-based index for insert/get/set/remove index.
Value to InsertStringNoValue inserted at the chosen index.
New ValueStringNoValue written at the chosen index.
From IndexStringNo0Start index for slicing.
To IndexStringNoEnd index for slicing.
Second Array Variable NameStringNoOther array to merge when using concat.
Sort OrderSelectNoAscendingSort direction for the sort operation.
Store Result AsStringNoVariable name for returned values like size, slice, or concat.

Example

Create a player list and append a name:

  1. Set Operation to Create
  2. Set Array Variable Name to online_players
  3. Set Scope to Global
  4. Add names with the Push operation

You can read the array later from %online_players%.

Oasis Admin Editor Documentation