I cant get arrays to work. have ready all the man pages, and looked through tutorials. Ive been using arrays for 30 years in probably 20 different languages, including machine code, so am pretty familiar with them.
Im trying to do this as a sub event of on start of layout:
System: For each result -> result : Set value at (result.CurX,result.CurY) to floor(random(9)).
The array "result" is 5x3x1 in size.
The above code only ever sets the first value, so the for loop is getting stuck at 1 iteration.
If I dump the json of the resultant array from the above code, I get:
{"c2array":true,"size":[5,3,1],"data":[[[6],[0],[0],[0],[0],[0]...etc*
*hand typed as haven't found a way to cut and paste the text from a game yet.