> For the complete documentation index, see [llms.txt](https://eaglepb2.gitbook.io/pb2-editor-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eaglepb2.gitbook.io/pb2-editor-manual/tables/trigger/array.md).

# 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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eaglepb2.gitbook.io/pb2-editor-manual/tables/trigger/array.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
