ID:144858
 
Code:
    PassDoor
icon = 'WT2.dmi'
icon_state = "rd"
density = 1
var
pass = ""
DblClick()
for(usr)
if(src.density == 1)
var/password = input("Whats the password!?")
if(password == src.pass)
src.density = 0
icon_state = "do"
else
usr<<"Wrong bucko!"
else
src.density = 1
icon_state = "rd"


Problem description:Alright, this works fine, except for one problem, when someone clicks on the door everyone is asked to put in the password, how must i fix this?

Get rid of for(usr)
In response to Tazor07
that would work except now the action asks the obj for the input, witch in turn makes an error and the door useless.
Edit:...what the hell? that seriously did NOT work before, sorry.
PassDoor
icon='WT2.dmi'
icon_state="rd"
density=1
var/pass=""
DblClick()
if(src.density)
var/pass=input("Whats the password?")as text
if(pass==src.pass)
src.density=0
src.icon_state="do"
else usr<<"Wrong bucko!"
else
src.density=1
src.icon_state="rd"

You should read up on this Bwicki page.