Appearance
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
| Setting | Type | Required | Default | Description |
|---|---|---|---|---|
| Operation | Select | Yes | Create | Choose what to do with the array. |
| Array Variable Name | String | Yes | — | Name of the array variable. Supports placeholders. |
| Scope | Select | Yes | Per Player | Where the array is stored. |
| Initial Values | String Array | No | — | Values used when creating a new array. |
| Value | String | No | — | Value to add, check, or remove. Visible for push/contains/remove operations. |
| Index | String | No | 0 | Zero-based index for insert/get/set/remove index. |
| Value to Insert | String | No | — | Value inserted at the chosen index. |
| New Value | String | No | — | Value written at the chosen index. |
| From Index | String | No | 0 | Start index for slicing. |
| To Index | String | No | — | End index for slicing. |
| Second Array Variable Name | String | No | — | Other array to merge when using concat. |
| Sort Order | Select | No | Ascending | Sort direction for the sort operation. |
| Store Result As | String | No | — | Variable name for returned values like size, slice, or concat. |
Example
Create a player list and append a name:
- Set Operation to
Create - Set Array Variable Name to
online_players - Set Scope to
Global - Add names with the
Pushoperation
You can read the array later from %online_players%.
