Array help

So i want to make a game in rpg maker mv using script.
I have var1 stores a number and then var2 to store an array from 0,1,2,... that number?
How to do that ?
Thanks in advance
1721601584560.png


Here is something that can help you:
All the variables are integers by default. If you want them to be arrays or another data type you have to declare it through the script box like above.
Just to chip in, there have been a couple of threads that gave specific examples of different kinds of functions and syntax for working with variables as arrays - it should come up if you Google it.
Thanks
I have finished that code

Original thread: https://forums.rpgmakerweb.com/threads/array-help.170494/