Code: Select all
You are in a room. There is a door to the north.
>north
(Opening the door first)
North Room.
You are in the north room. There is a door to the south.
Moderators: Ice Cream Jonsey, joltcountry
Code: Select all
You are in a room. There is a door to the north.
>north
(Opening the door first)
North Room.
You are in the north room. There is a door to the south.
I took a look at that, and by all rights it definitely should. I basically have a room setup like this:Kent wrote:Doesn't the basic door class in objlib.h do what you want?
Code: Select all
LightRoom Store "Store"
{
long_desc
{
"Blah blah. There is a door to the south"
}
s_to
{
Perform(&DoGo,BackOffice_door)
}
}
Code: Select all
door BO_Hall1_door
{
nouns "door" "hall" "office"
adjective "hall" "back"
article "the"
between Store, BackOffice
is static, not open, not locked
}
Code: Select all
s_to
return YourDoorHere.door_to
Kent wrote:Try:
in your room direction and see where it gets you. I think by explicitly calling Perform(&DoGo) you're probably entering a recursive spiral. The door class's door_to property handles messages, opening and closing, and returning a valid room (if applicable), assuming you've set the 'between' property for the door up right.Code: Select all
s_to return YourDoorHere.door_to