var
password="none"
obj/door/var/opened = 0
obj/door
icon = 'door.dmi'
icon_state = "door"
density = 1
verb
OpenClose_Door()
set src in oview(1)
set name = "Open|Close Door"
if(opened == 1)
usr << "You close the door."
opened = 0
icon_state = "door"
density = 1
else
var/P=input("What's the password?","Password") as password|null
if(P==src.password)
usr << "You open the door."
opened = 1
icon_state = "dooropen"
density = 0
if(src.password==null)
opened = 1
icon_state = "dooropen"
else
return 0
mob/verb
Build_Door(M as mob)
set category = "Objs"
if(src.can_build == 1)
new/obj/door(usr.loc)
else
src <<"Can't build here."
^ Thats what i have for a door code..
and it says
build.dm:216:error:src.password:undefined var
build.dm:221:error:src.password:undefined var
so.. how do i define that..
and how do i make it so when you BUILD the door you can set its password?
Thankss!!!!
-Cait ^^
ID:261898
Dec 26 2003, 12:04 pm
|
|
FireEmblemhelped me on aim =)