Opening / Closing Doors

lyteside
22 May 2010, 03:03
I'm having problems with this script. Can anybody help me see what's wrong. It is succesfully creating the exit, but not destroying it:

	define object <Factory South Room Door>
alias <large steel door>
invisible
alt <large door; door; steel door; doors; steel doors; large doors>
look <You look through the windows in the door. All you can see is another creepy hallway lit with the same eerie tubed light bulbs.>
examine <There is nothing special about the door, except that it is built with a window. All you can see on the other side is another creepy hallway lit with the same eerie tubed light

bulbs.>
prefix <a>
suffix <with windows>
article <it>
gender <it>
properties <>
open {
if not property <Factory South Room Door; opened> then {
property <Factory South Room Door; opened>
property <Factory South Room Door2; opened>
msg <With some effort, you pull it open.>
create exit south <Factory South Room; hallway 1>
}
else msg <You already opened it.>
}
close {
if not property <Factory South Room Door; opened> then msg <It's already closed.>
else {
property <Factory South Room Door; not opened>
property <Factory South Room Door2; not opened>
destroy exit <Factory South Room; hallway 1>
msg <You push on the door, and it slams shut.>
}
}
container
end define

Alex
22 May 2010, 13:00
Try:


destroy exit <Factory South Room; south>


Inconsistent I know...

lyteside
22 May 2010, 17:59
got it. thanks!