1

我正在使用 Inform7 创建一个在空间站上进行的游戏。我希望方向是船首、船尾、左舷和右舷,而不是标准罗盘点。我曾经understand as成功地重新定义了它们中的大多数。但是当谈到使用“s”作为右舷而不是南的缩写时,我被困住了。

我到目前为止的代码如下所示。注意这一行:Understand "st" as starboard.这是一种解决方法,而不是我真正想要的。我想要的是“s”作为右舷的缩写。如果我将此行更改为Understand "s" as starboard.,解释器仍然认为 's' 缩写可能是南,并回复Which do you mean, the south or Starboard?

我怎样才能让 Inform7 忘记向南而只将“s”应用于右舷?

[ Shipboard Directions ]
Fore is a direction. The opposite of Fore is Aft.
Aft is a direction. The opposite of Aft is Fore.
Port is a direction. The opposite of Port is Starboard.
Starboard is a direction. The opposite of Starboard is Port.
Understand "f" as fore.
Understand "forward" as fore.
Understand "a" as aft.
Understand "p" as port.
Understand "st" as starboard.
Instead of going north, say "In space, there's no magnetic field, so there's no north. Also, no one can hear you scream in space. Not that you should be screaming. Well, there is that one room, but... oh, never mind."
Instead of going east, say "There's no magnetic field here. Compasses are useless. Maybe 'port' is what you meant."
Instead of going west, say "'Go west, young man.' Always with the going west. Obviously, they've never been in space. There's no 'west' in space. There's no I in team, either. There are port and starboard, however. But not in team... on the space station."
Instead of going south, say "South? There ain't no Mason-Dixon line on a space station. Did you mean starboard? You can use 'st' for starboard."
4

1 回答 1

2

Understand the command "s" as something new.在评论中提出了建议,但这不起作用,因为“s”是南方对象的缩写,而不是动词。哎呀!

相反,您可以使用Does the player mean system(第 17.19 节)

Does the player mean doing something with south: it is very unlikely.
于 2021-10-30T13:17:56.237 回答