I have this Door code for my building game, When someone builds a door, I want them to be able to password lock it with a pas and they can tell people the pass to...
Heres my currecnt code:
obj
Door
density = 1
opacity = 0
icon = 'Door.dmi'
icon_state = "Closed"
var
locked = 0
password = "Password?"
autolock = 0
verb
Open()
if(locked == 0)
set src in view(1)
icon_state = "Open"
density = 0
opacity = 0
else
usr<<"This door is locked"
Close()
if(locked == 0)
set src in view(1)
icon_state = "Closed"
density = 1
opacity = 1
else
usr<<"This door is locked"
LockDoor()
set src in view(1)
set hidden = 1
input("Enter Password","Password")as password
if(password)
usr<<"You Locked This Door"
locked = 1
else
usr<<"Incorrect Password"
UnLockDoor()
set src in view(1)
set hidden = 1
input("Enter Password","Password")as password
if(password)
usr<<"You UnLocked This Door"
locked = 0
if(autolock == 1)
sleep(150)
src.Close()
src.LockDoor()
else
usr<<"Incorrect Password"
//Building part
mob
Build
verb
Door()
set name = "Door"
set category = "Build"
new/obj/Door(usr.loc)
Can someone edit my code so itl ask the builder if he wants a pass ....?
Im at a loss :(
Hope this helps,
Michael