ID:165857
 
verb
Door()
set category = "Build"
if(src.Nobuild())
var/obj/Doors/BlueStoneDoor/O = new(src.loc)
//O.owner = "[usr.key]"
//var/password = input("What is the password(leave it blank for none)")as text
//if(!password)
// O.pass = "None"
// return
//O.pass = password


This does nothing, and I have no idea why, I shouldn't need an icon state because it only has the default(null) state, and I've searched for demos, and on the forums and this is what I made from those but it doesnt work...
mob
verb
Door()
set category="Build"
if(src.Nobuild)return
else new/obj/door(usr.loc)
In response to Xx Dark Wizard xX
my problem was my proc NoBuild()
mob/proc
Nobuild()
for(var/area/NoBuild/O in oview(0,src))
if(istype(O,/area))
src<<"You cannot build here"
return 1
else
return 0


But should have had

mob/proc
Nobuild()
for(var/area/NoBuild/O in oview(0,src))
if(istype(O,/area/NoBuild))//the check was for any area on the original but now checks for NoBuild area
src<<"You cannot build here"
return 1
else
return 0


Thanks for the help
In response to KirbyAllStar
make it an area, and when you enter take away the build verb, and when you exit add the verb.