And how would I make it so you only have the Open command when your next to the door?
Here is the code I have now:
Bump(atom/O)
..()
if(istype(O,/obj/Girls_Only_Door))
if(usr.gender == "female")
O:opacity = 0
O:density = 0
O:icon_state = "girl_open"
usr << "You open the door."
sleep(100)
O:opacity = 1
O:density = 1
O:icon_state = "girl"
view(5) << "The door closes."
else
usr << "You try to open the door, but it is locked."
if(istype(O,/obj/Boys_Only_Door))
if(usr.gender == "male")
O:opacity = 0
O:density = 0
O:icon_state = "boy_open"
usr << "You open the door."
sleep(100)
O:opacity = 1
O:density = 1
O:icon_state = "boy"
view(5) << "The door closes."
else
usr << "You try to open the door, but it is locked."
I used to have that code as a verb in the door object, but the verb wouldn't show up. I also tried giving a turf the code, but it still didn't work.
How do I get it to work?