ID:149411
 
I need to create a proc that will choose a random turf x,y and assign it to a turf.

var/m = rand(world.maxx, world.maxy)

Something like that, but with the Z value being 0.

var/turf/turf_chosen = the_turf_with_the_x_y_and_z_matching_the_ones_given_to_the_m _variable

Any suggestions?

Thankyap.

<code>var/x = rand(1,world.maxx) var/y = rand(1,world.maxy) var/z = rand(1,world.maxz) var/turf = locate(x,y,z)</code>

Whallah! (As I spell it!)
In response to Foomer
Whallah! (As I spell it!)

Gah! If there's anything that annoys me, it's how people say "Walla!" instead of what it obviously should be, "Voila!"
In response to Spuzzum
Actually, "Voila!" is a word in some language I don't speak, while "Whallah!" is my way of saying "And there we have it!" Maybe I should just say "Atwhi!" instead.