如何在 Inform7 中显示可用房间
How do I show the available Rooms in Inform7
我正在 Inform7 中进行我的第一次文本冒险,它让我发疯。
我定义了三个房间如下:
The house is a region.
The bedroom and the bathroom and the kitchen are in the house.
The bathroom is north of the bedroom.
The kitchen is west of the bedroom.
The bed is a supporter in the bedroom.
Bedroom is a room. It is neuter. "It is pretty cold in here"
因为很多人不熟悉玩这些游戏,所以他们对床和浴室一无所知,因为游戏是从那开始的:
Bedroom
It is pretty cold in here.
You see a bed.
我不想使用门,所以我需要让相连的房间对玩家可见。我该怎么做?
通常的解决方案是在房间描述中只描述出口,例如。这样您还可以为散文添加一些颜色和变化,而不是直接列出事物。
一个简单的自动化解决方案是在房间描述之后打印房间出口列表(改编自文档中的示例 102):
Definition: a direction (called thataway) is viable if the room
thataway from the location is a room.
After looking:
say "You can go [list of viable directions] from here."
一种更完善的方法是安装并包含 Gavin Lambert 的扩展 Exit Lister(可在 IDE 的扩展窗格的 Public 库中找到)。它负责记住玩家知道哪些房间,所以当游戏开始时你会看到类似 "You can go north and west from here" 的内容,稍后当玩家访问其他房间时,你会看到 "You can go north to the bathroom and west to the kitchen from here."
我正在 Inform7 中进行我的第一次文本冒险,它让我发疯。
我定义了三个房间如下:
The house is a region.
The bedroom and the bathroom and the kitchen are in the house.
The bathroom is north of the bedroom.
The kitchen is west of the bedroom.
The bed is a supporter in the bedroom.
Bedroom is a room. It is neuter. "It is pretty cold in here"
因为很多人不熟悉玩这些游戏,所以他们对床和浴室一无所知,因为游戏是从那开始的:
Bedroom
It is pretty cold in here.
You see a bed.
我不想使用门,所以我需要让相连的房间对玩家可见。我该怎么做?
通常的解决方案是在房间描述中只描述出口,例如
一个简单的自动化解决方案是在房间描述之后打印房间出口列表(改编自文档中的示例 102):
Definition: a direction (called thataway) is viable if the room
thataway from the location is a room.
After looking:
say "You can go [list of viable directions] from here."
一种更完善的方法是安装并包含 Gavin Lambert 的扩展 Exit Lister(可在 IDE 的扩展窗格的 Public 库中找到)。它负责记住玩家知道哪些房间,所以当游戏开始时你会看到类似 "You can go north and west from here" 的内容,稍后当玩家访问其他房间时,你会看到 "You can go north to the bathroom and west to the kitchen from here."