Array

Array

Arrays are Variables that contain more than a single value, accessed by an Index. In a way, this is analogous to how Variables and Switches work as well, as they require an Index (the Variable or Switch "Number") to access. Indeces are zero-based, meaning that the first Index will be 0.

Any Variable can be an Array.

Note: Underneath the covers, Arrays exist as a Json-formatted array or collection.

Data Sources

Arrays are primarily used in Data Sources to return more than one value at a time, such as all of the Unique ID's of the Party or all of the Status Effects on a Character.

Scripting

In addition, Arrays can be leveraged by the Array Operations command.

Examples

5 Element Array:

The following is illustrative of an Array with 5 elements in it:

0 1 2 3 4
a b 255 echo 2.4
  • Index 0 contains the value a.
  • Index 1 contains the value b.
  • Index 2 contains the value 255.
  • Index 3 contains the value echo.
  • Index 4 contains the value 2.4.
  • The Count or Size of the Array is 5.