# Array

{% hint style="info" %}
Last updated: 2024/1/9
{% endhint %}

Here is the list of tables which are related to array category:

<table><thead><tr><th width="78">ID</th><th width="177">Display Name</th><th width="228">Explanations</th><th align="center">Parameter A</th><th align="center">Parameter B</th></tr></thead><tbody><tr><td>348</td><td>Split variable 'A' by string-value 'B'</td><td>Let var A = "alpha/ beta/ gamma",<br>string-value 'B' is "/" to split the values to [alpha, beta, gamma].</td><td align="center">Var<br>(String)</td><td align="center">Char / String?</td></tr><tr><td>349</td><td>Get index 'B' of variable 'A' and store into variable 'A'</td><td>Given array 'A' has indexes, store that value which is from index 'B' into variable 'A'.</td><td align="center">Var</td><td align="center">-</td></tr><tr><td>351</td><td>Add element 'B' (can be variable) to array 'A'</td><td>Add an element 'B', which can be any type (also means variable) into array 'A'.</td><td align="center">Array</td><td align="center">any type, including var</td></tr><tr><td>353</td><td>Create array at variable 'A'</td><td>This action creates EMPTY array and assigns it to variable 'A'.</td><td align="center">Variable</td><td align="center">-</td></tr><tr><td>354</td><td>Split variable 'A' by value of variable 'B'</td><td>same as 348, but this time the string-value B is get from the variable.</td><td align="center">Var<br>(String)</td><td align="center">Var<br>(Char / String?)</td></tr><tr><td>355</td><td>Set gun 'A' color matrix to array 'B' (4 rows, 5 columns, first 4 columns are multiplicative, last column is additive)</td><td><a href="https://eaglepb2.gitbook.io/pb2-editor-manual/tables/trigger/array/matrix-coloring-system">Click me for the color matrix tutorial.</a></td><td align="center">Gun</td><td align="center">Array<br>(4x5 int)</td></tr><tr><td>366</td><td>Join variable 'A' by value of variable 'B'</td><td>Append the value from variable 'B' to variable 'A'.</td><td align="center">Var</td><td align="center">Var</td></tr><tr><td>???</td><td>Set Decor 'A' color matrix to Array 'B' (array must have 4x5 items)</td><td><a href="https://eaglepb2.gitbook.io/pb2-editor-manual/tables/trigger/array/matrix-coloring-system">Click me for the color matrix tutorial.</a></td><td align="center">Decor</td><td align="center">Array<br>(4x5 int)</td></tr><tr><td>508</td><td>Get all active player slots and save result to Array 'A'</td><td>Retrieve all player slots which has players in multiplayer, to array 'A'.</td><td align="center">Array</td><td align="center">-</td></tr></tbody></table>
