Ok im making a house building code for my new game. I want it so the house cant be built 2 titles by a nother house but I couldnt find a way to do that. So I just made it search for the area area/nobuild but thats not even working. Got any good ideas?
mob
proc
check(A,B)
switch(A)
if("House1")
for(var/area/nobuild/X in oview(12))
if(X in oview(12))
for(var/turf/t in block(locate(src.x-4,src.y+1,src.z),locate(src.x+4,src.y+8,s rc.z)))
t.contents += new/obj/wall
for(var/turf/t in block(locate(src.x-3,src.y+2,src.z),locate(src.x+3,src.y+7,s rc.z)))
t.contents += new/obj/floor
for(var/obj/wall/X in t)
del(X)
var/target=get_step(src,dir)
for(var/obj/wall/S in target)
del(S)
var/obj/new_door = new/obj/door(target)
new_door.owner=B
for(var/area/t in block(locate(src.x-4,src.y+1,src.z),locate(src.x+4,src.y+8,s rc.z)))
t.contents += new/area/nobuild
else
usr<<"You cant here, A nother house is to close"
Nother thing is when some one creates a house not facing north it doesnt create a door. I know why but is there a better way to makeing a obj in the house?
ID:148500
Jan 20 2003, 1:52 pm
|
|
Jan 21 2003, 5:34 pm
|
|
No need to reply I fixed it my self.
|
In response to Rollerc
|
|
You can delete your posts if they are no longer needed on the forum. (except you can't delete this one now, because I just replied to it;) )
-Loduwijk |