obj
Door1
desc = "Click the door to open it."
var/password = null
var/OpenPass
icon = 'Door 1.dmi'
icon_state = "Closed"
density = 1
opacity = 1
Bump(obj/Door1)
..()
if(password == null)
icon_state = "Open"
density = 0
opacity = 0
sleep(30)
icon_state = "Closed"
density = 1
opacity = 1
else
OpenPass = input("Type in the password.") as text
if(OpenPass == password)
icon_state = "Open"
density = 0
opacity = 0
sleep(30)
icon_state = "Closed"
density = 1
opacity = 1
else if(OpenPass != password)
usr << "INCORRECT PASSWORD!!"
Problem description:
I'm trying to make doors that when you bump into them they open, but when I run the game and bump into the door, nothing happens.