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/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