You probably mean:
<code> if(locate(x,y,z)) </code>
Well, look at what the locate proc does. You give it (in this case) three coordinates and it gives you the turf that is at those coordinates. If the coordinates are invalid (off the map) then the expression wold evaluate as being false. If there is a valid turf at those coordinates then it would be true.
I got another question, how would I use locate to manipulate a turf?
Exemple: I have turf/someturf/var/value1 at 1,1,1
With locate(1,1,1) how would I be able to check value1?
<code> turf var value1 mob verb check_turf() var/turf/someTurf = locate(1,1,1) if(someTurf.value1 == 3) //blah </code>
I think that's what you mean, I'm not sure though.
mob/verb/checkloc()
if (usr.loc == locate(1,1,1))
usr << "Hi"
else
usr << "Nope"
That works.
.::DBHavenMaster::.