Here is an example of a 2D array:
The selected record has the coordinates (1, 5). You can access it directly using Array.At(1,5) expression.
To loop through this kind of array, you can use the Array For Each event.
For Each X loops only through the X axis, while For Each XY goes through all elements like this:
Inside the For Each loop, you can use these expressions to get the current index or value: Array.CurX, Array.CurY, Array.CurValue
“For Each” loops are rarely useful when working with 2D or 3D arrays — I prefer system loops because they give more control.
For example, this loop goes through lines 1–7 (I don’t need line 0 because it contains column headers) and displays the message from each line:
The Push action allows you to insert an empty row or column at the front or back of the array. I don’t think you’ll need this for a visual novel.