I have been asking everyone to have a door code for open shut....
I just want a code were you can walk up to a door and a new verb will appear named open door and close door! that is all i ask for.
ID:149861
![]() Feb 4 2002, 5:34 pm
|
|
Dangit. There is some error.....
I mean not a code error but something that I dont want. I can now open grass walls How do I fix this? |
Ok First of all make shure that the verb and the code to set the verb are just under the turf/door. And only put it where you want a door. Your turf should be like this.
turf grass icon = 'grass.dmi' density = 0 that should fix everything. |
I came up wiht this tell me if it is correct.
turf Door icon = 'door.dmi' icon_state = "Door" density = 1 verb/Open() set src in oview(1) flick("Open",src) src.density = 0 icon_state = "openeddoor" |
Here is one that should do the trick for you.
turf/door Lee |
turf
Door
icon = 'door.dmi'
density = 0
verb
Open()
set src in oview(1)
flick("Open",src)
src.density = 0
src.icon = 'openeddoor.dmi'
// or you could change the icons state like this icon_state = "opened"