If I'm right, question is "how to save multi-dimentional array using savevars function ?". If it's so, then:
You know, that GE supports only saving/loading one-dimentional arrays created in special dialog window with setting "Save group"
My way is:
1. For example you have 10 types of weapon (counted from 0 to 9). Each weapon have 12 parameters:[type][ID_number][Cost][stat1]...[stat9].
So, we create an array with dimention 10x12, save group "weapons".
Now we can save/load it.
2. While using such an array it's convenient to get access this way:
- Code: Select all
ITEM_ARRAY[Type*12] =... ; // weapon type
ITEM_ARRAY[Type*12+1] =... ; // ID_number
ITEM_ARRAY[Type*12+2] =... ; // Cost
ITEM_ARRAY[Type*12+3] =... ; // stat1
...
ITEM_ARRAY[Type*12+11] =... ; // stat9
Described method is best that i found. I use it to work with galaxy map of 40 stars with 25 parameters each.
Hope it helps