ID:170716
 
does anyone know how to make a delete verb that it deletes it if you are the owner?Or how to make a door that when you walk up to it, it will ask for a password and then if you get it right it flicks an icon state and becomes density= 0, can anyone help me with this plz?
Tsonic112 wrote:
does anyone know how to make a delete verb that it deletes it if you are the owner?Or how to make a door that when you walk up to it, it will ask for a password and then if you get it right it flicks an icon state and becomes density= 0, can anyone help me with this plz?

mob/verb
makedoor(obj/door/D)
new/obj/door(src.loc)
D.owner="[src.name]"

obj
door
bump(mob)
if(src.owner==mob.name)
flick("open")
density=0


Meh, I'm terrible at programming, this probably won't work.
In response to Elation
THat didnt work but does anyone know how to make a turf that when you step on it you loose a verb called Build_Object and do you know how to make a verb delete that lets you delete an object if you are the owner of it?
In response to Tsonic112
Yes, yes I do, come to think of it.