如何限制通过 Inform 7 中的特定门推送特定项目
How do I restrict pushing specific items through specific doors in Inform 7
我想限制一些东西穿过特定的门。所以椅子太 big/heavy 无法携带,但在大多数情况下可以从一个房间推到另一个房间。除非门很窄。我可能可以成功地编写特定的代码来处理特定的情况,但我想一般地处理这个问题,这样我就可以拥有一些笨重的东西和狭窄的门。
以下代码在功能上有效,但第二个名词最终变为 "nothing"。我想使用行进方向的门的名称来响应消息 "The chair is way too bulky to fit through the crack" 的 "push chair s"。知道我做错了什么或其他方法吗?
A thing can be bulky. A thing is usually not bulky.
A bulky thing is usually pushable between rooms.
A door can be narrow. A door is usually not narrow.
A bulky, enterable supporter called the chair is in room1.
There is a narrow door called the crack. It is south of room1.
Before going with a bulky thing through a narrow door:
say "[The noun] is way too bulky to fit through [the second noun]." instead;
您可以在规则序言中命名事物,并使用这些名称在规则中打印它们。
Before going with a bulky thing (called the cargo) through a narrow door (called the obstacle):
say "[The cargo] is way too bulky to fit through [the obstacle]." instead.
我想限制一些东西穿过特定的门。所以椅子太 big/heavy 无法携带,但在大多数情况下可以从一个房间推到另一个房间。除非门很窄。我可能可以成功地编写特定的代码来处理特定的情况,但我想一般地处理这个问题,这样我就可以拥有一些笨重的东西和狭窄的门。
以下代码在功能上有效,但第二个名词最终变为 "nothing"。我想使用行进方向的门的名称来响应消息 "The chair is way too bulky to fit through the crack" 的 "push chair s"。知道我做错了什么或其他方法吗?
A thing can be bulky. A thing is usually not bulky.
A bulky thing is usually pushable between rooms.
A door can be narrow. A door is usually not narrow.
A bulky, enterable supporter called the chair is in room1.
There is a narrow door called the crack. It is south of room1.
Before going with a bulky thing through a narrow door:
say "[The noun] is way too bulky to fit through [the second noun]." instead;
您可以在规则序言中命名事物,并使用这些名称在规则中打印它们。
Before going with a bulky thing (called the cargo) through a narrow door (called the obstacle):
say "[The cargo] is way too bulky to fit through [the obstacle]." instead.