obj
Door
Bump(atom/O)
if(istype(O,/obj/Door))
if(password!=(null))
usr.pass = input("Password?")as text
if(usr.pass==password)
icon_state = "Open"
density = 0
opacity = 0
Problem description:
The code is not working, Im making a building game, So when a player places a Door down, It asks if he wants a pass for it, If he does, enter the pas, And anyone who knows the password can enter, But it is not working, I keep getting 2 errors and 2 warnings:
Doors.dm:56:error:usr.pass:undefined var
Doors.dm:57:error:usr.pass:undefined var
Doors.dm:54:if :warning: if statement has no effect
Doors.dm:57:if :warning: if statement has no effect
Please help!
The Building Part of The Door Just Incase Its The Problem
mob
Build
verb
Door()
set name = "Door"
set category = "Build"
if(usr.build == 0)
var/a = new/obj/Door(usr.loc)
a:owner = "[src.key]"
else
usr << "You can't build here"
return
input("Enter Password","Password")as password
if(password)
usr<<"You Locked This Door"