ID:269504
 
How can I stop objects from being place on top of each other?
er
perhaps..
A) Dont stack them on top of each other,
B) Check to see if something else is there,
C) Dont make any turfs/objs/mobs/or areas! :D
In response to Bringer of Flames
Rofl good one, but you know players can be unpredictable.
In response to Mecha Destroyer JD
obj
wall
icon='wall.dmi'
density=1
opacity=1
mob
verb
Wall()
set category = "Build"
for(var/obj/O in usr.loc)
if(O)
usr<<"Please dont stack items!"
return
new/obj/wall(usr.loc)

like that >_>?
In response to Nintendo
No, a (presumably) quicker way would be to use
if(locate(/obj) in loc)
usr << "Do not stack objects!"
return
In response to Nintendo
If there are a jillion things in that spot, though, they'll get a jillion errors =P
In response to Cowdude
Or.. you can make it.. everytime you drop an item on the same spot, the amount of it becomes 2. So when you pick it up, you would get 2 of the object. Which is fairly simple to do.
In response to Nintendo
Ok, I need to think a lil bit more before asking questions; I'm starting to slack..XD
In response to Cowdude
That return'll stop it.