Well, firstly you're looking in the wrong spot. Something like arrays isn't going to be part of ren'py's abilities, it would be in python (which is quite easily googled, but by far harder to read through documentation wise).
I don't know how you would use actual arrays, but you can use lists the same way. The main difference is that list don't have a set number of slots or a set type of elements. The downside however, is that they are kind of awkward if arrays are what you're used to.
Here's an example of what it would look like in ren'py:
Code: Select all
python:
example_list = [0, 3, 2]
example_list.append(5)
example_list.append("string")
after this code example_list would be [0, 3, 2, 5, "string"]
For multidimensional arrays, you just add nested lists to the list like so:
Code: Select all
python:
example_list = []
example_list.append([2,3,4])
example_list.append([0,1])
Here, the resulting list is [[2,3,4],[0,1]]
Then to access the elements of a list, use the name of the list followed by brackets telling which element you want (indexed starting at 0, just like arrays normally are). To access an element in a nested list, add another pair of brackets immediately after the first like so:
I hope that's easier to understand than whatever the documentation said...