I have a vague understanding of arrays. Could someone help me understand how they work.
Arrays are nothing more than more powerful variables. A single variable can only hold 1 thing. Arrays are variables that you can actually page though your data like a spread sheet.
How about this example. Say you had 3 monsters in your game and needed to know what their health was, and how much magic they have for spells.
Array.MonsterArray 2X3X1 makes an array that holds data for 6 things(2x3) forget the 1 for now.
Health Magic
Monster1 10 3
Monster2 4 6
Monster3 10 10
So you woulds need a MonsterArray 2,3 to hold the data. Then for example if you wanted to know how much magic monster2 had you would look for":
Array.MonsterArray(1,1) and that would tell you it had 6 magic points.
*note arrays start at zero and count up so the first element would be 0 the second 1 and the third 2