turf
var
occupied = 0
icon = 'icons.dmi'
battlestart
icon_state = "s"
occupied = 0
proc/StartBattle()
var/turf/battlestart/X
var/ox = usr.x
var/oy = usr.y
var/oz = usr.z
for(X in world)
if(X.occupied == 0)
world << "The battle begins!"
usr.loc = X.loc
X.occupied = 1
spawn(300)
world << "The battle is over!"
usr.loc = locate(ox,oy,oz)
It doesnt seem to take me anywhere.
Edit: I bascially want it so that you challenge a person to battle (or some other creative means of starting a battle, any suggestions welcome :D) and see if there is an open battle arena, to take them to it.
Wouldn't that set the variables to the user's current position? I don't know much about coding, but that's what I've gathered from your snippet.