ID:1264484
 
(See the best response by Jittai.)
So, I have turfs that are purely used to blend together two turfs. In other words, I have a turf edge for sand and water, so it looks better than usual. But I'm having trouble formatting it automatically; I can't seem to find the turf or check what the turf is next to to see what icon_state it needs to become.
Code:
turf
proc
Sand()
var/obj/A=new/obj/tester(src)
var/turf/R=locate(/turf/nature/water)
step(A,WEST)
spawn(1)
if(A in R)
world<<"Heya"
if(locate(/turf/nature/water)in range(0,A))
world<<"Hello"
if(locate(/turf/nature/sand) in get_step(src,NORTH))
if(locate(/turf/nature/sand) in get_step(src,EAST))
if(locate(/turf/nature/sand) in get_step(src,SOUTH))
if(locate(/turf/nature/water) in get_step(src,NORTHWEST))
if(locate(/turf/nature/sand) in get_step(src,NORTHEAST))
if(locate(/turf/nature/sand) in get_step(src,SOUTHEAST))
if(locate(/turf/nature/water) in get_step(src,SOUTHWEST))
src.icon_state="ocean_eastend"


Problem description: I just need help finding and defining the turfs.

Best response
Uh... why not use this nice library?

Located Here.

And see how FA does it?