ID:266676
 
How do you make a door open, I tried the below but it doesn't work.

Example: Door
icon = 'Turf.dmi'
icon_state = "Door"
density = 1
verb
Open_Door()
icon_state = "DoorO"
density = 0
usr << "You Open The Door"
Shun Di wrote:
How do you make a door open, I tried the below but it doesn't work.

Example: Door
icon = 'Turf.dmi'
icon_state = "Door"
density = 1
verb
Open_Door()
<font color="red">src in oview(1) // I think this is all you need to add.</font>
icon_state = "DoorO"
density = 0
usr << "You Open The Door"
In response to Kamoku
It Still Does Not Work.
In response to Shun Di
turf/Door
icon = 'Turf.dmi'
icon_state = "Door"
density = 1
verb
Open_Door()
set src in oview(1)
icon_state = "DoorO"
density = 0
usr << "You open the door."


I would usually avoid giving out free code like that, but I'm a bit tired, and I would rather just display what I think should work. Anyone can feel free to correct this code if there's any problems...
In response to Kamoku
Thank You!



.::Shun Di::.
In response to Shun Di
No prob.

-Joe


P.S. Geez, I'm sitting here complaining about how tired I am, yet I can't stop surfing the forums...