As part of learning the Inform7 language, I’m trying to define a room with a staircase leading to a landing and then to the second floor.
[code]The Mid Central Hall is north of the Central Hall. “You are in the middle of the central hall. The front door lies to the south, and the back door lies to the north. There is a staircase here that leads up to the second floor.”
A staircase is a kind of door. A staircase is usually open. A staircase is seldom openable. Understand “stairs” or “stair” or “staircase” as a staircase. Understand “upstairs” or “downstairs” as a staircase.
Instead of climbing a staircase:
try entering the noun.
Understand “ascend” and “descend” as climbing.
The Central Stairs is a staircase. It is above the Mid Central Hall and below the Landing. “The staircase leads up to a landing.”
The Landing is above the Central Stairs. “The landing has oil portraits of people you don’t know.”
The Upper Stair is a staircase. It is above the landing and below the Second Floor Hall. “The stairs continue to the second floor.”
[/code]
The problem I’m having is, when on the landing, I see the following description
I’d rather it said something like “There are stairs leading up and down from the landing.”, of at least “the stairs lead down to the hallway. the stairs lead up to the second floor.”
I’m guessing there’s some kind of “say phrase” but I can’t suss out what it is.
I tried
The Upper Stair is a staircase. It is above the landing. "[if below the Upper Stair]The stairs continue to the second floor.[else]Stairs lead down to the landing.[end if]"
But got a translation error.
Any insight would be appreciated.