Well, my original code from month ago was something like this
-State = 0
-- For "X" Loop, For "Y" loop --> do stuff on array
-- Set varState to 1
And it did only show up small percentage of the array results.
Since then I've came up with new solution, where if all For loop results are equal to all array dimensions, then change varState. And it's working
Also, this array processing is not an in game event, as it's a map generation chain, so it's ok to wait a bit. But I did made a version that could be run real time, for loop just going trough several rows per tick only, so it doesn't stop the game at all, if I'd want to use some massive array when doing an infinite world for example. Just a tip if anyone would want to know ^^