ID:272664
 
How would I make a proc that would output something to a grid by a certain order.

1,1 | 1,2 | 1,3

2,1 | 2,2 | 2,3

(...)

When it reaches column 3, it resets to column one and adds 1 to row and it keeps going.
Probably something like:

mob/verb/Test()
var/row = 1
var/col = 1
var/width = 3
while(row < (width+1))
// you'd do your output() here
src << "[row],[col]"
if(!((++col)%(width+1)))
row++
col=1
In response to Xooxer
Perfect, thank you.