so in other word you want to have an entire array that would list all of the building ID number and their own populated civilian. To generate a community with people.
Best way to do it is to create the array object with its own variable instance and then just number what location they are at such as this Building A is 0 building B is 1 building C is 3
And then for the rest is Men is 0 women is 1 girl is 2 boy is 3 and money is 4
Now for the array if you want Building B and to know what money it has you can refer the reference in where the coor are which is 1,4
Now that we have coor finder down if you need to modify it.
Next you will need to create a function with several parameters
Basically use the parameter to retrieve a value from the array that you want to use now
Do a repeat (parameter data value)
Spawn the created object
So in other word define on how to find the value of the array and then use that value to spawn the object. If this wasnt what you were looking for you might have to explain what you want a little better.
Thank you for the reply - i did how ever just got it to work. (I wanted it to create the people belonging to each house)
-On start of layout
(local value "Spawn_X")
(local value "Spawn_Y")
-For each (building)
-Compare in the array (loopindex,1)=1
*System set "Spawn_X" to building
*System set "Spawn_Y" to building
*System create "Man" at "Spawn_X"/"Spawn_Y"