Here’s the problem: I have a set of three rooms (Empty, North, and South Beaches) that I’ve included in a region called the Shoreline. I noticed that the “Instead of going nowhere…” message for the region (commented out in the source code below right after the ***) overrides the “Instead of going nowhere…” message that I’ve designated for two of the individual rooms (North Beach and South Beach) in that region.
[code]“On the Beach 01” by Jay Goemmer
The story headline is “An Interactive Example”.
When play begins:
say “Introductory text.[paragraph break]”.
Instead of going up when the location is North Beach:
try going north instead.
Instead of going north when the location is North Beach:
say “[line break]The lava rock cliff is much too steep for you to scale.”
Instead of going up when the location is South Beach:
try going south instead.
Instead of going south when the location is South Beach:
say “[line break]You try climbing the lava rock cliff, to no avail.”
Shoreline is a region.
Empty Beach and South Beach and North Beach are in the Shoreline.
Instead of going west in the Shoreline, say “[line break]The water’s too cold.”
[*** Instead of going nowhere in the Shoreline, say “[line break]You wander aimlessly down the beach, but get nowhere fast.” ]
[Starting location must be declared as a room.]
Empty Beach is a room. “A white sand beach stretches north, south and east.”
North Beach is north of Empty Beach. “Here the sand peters out, leaving black volcanic rock to the north.”
South Beach is south of Empty Beach. “The southern end of the white sand beach gives way to a wall of rock.”
The Tall Cliff is fixed in place in South Beach. The printed name is “tall cliff”. “A cliff that’s too steep and too tall to climb towers over the beach.” The description is “[line break]The cliff made of distinct layers of lava flows is now a black, hard wall of rock.” Understand “rock”, “volcanic”, “lava”, “black”, “wall”, “stone” as Tall Cliff.
East Beach is east of Empty Beach. “The shoreline is west of this part of the beach, which also stretches away to the north and south.”
[3.3. One-way connections, noted below.]
East Beach is east of South Beach. East Beach is east of North Beach.
North Beach is north of East Beach. South Beach is south of East Beach.[/code]
I suppose I could hand-code messages for each of the individual rooms for the region’s “Instead of going nowhere…” message. That’s not a very elegant solution.
Please share your thoughts and comments regarding a possible “best practice” here.
Thanks and cheers,