Sorry if I am unclear on what I am trying to do.
It is my first time, and though I was doing it right.
Every time someone starts the game the map will be generated. I want it to be random and different each time.
I divided my layout in tiles, which are represented by the array.
I want 0,0 to be a random frame.
Then the 1,0 will look up what is to its left and select a frame number. I am using the choose() for that.
Then another line is telling to look at the array and to create a sprite at a determined position with the selected frame (array.CurValue)
The frames are made that they will create patterns of streets.
Saying that I will add more conditions was probably wrong. What I meant is: I want to have the first line in my array to work before trying to make the other rows match up. I want to get it right from the beginning to refrain from redoing tons of code.
In the end I want the game to look a bit GTA style.
I though that if I use "Set Map.at(0,0) to random(the_range_of_values)" the loop following it will replace the value that was randomized...
Is there anything more you require for info ? I am not sure if I am missing something.
Thanks for the help :)