如何跳过Inform 7中的内容

时间:2015-04-21 18:11:41

标签: inform7

我有一个"门"在Inform 7的两个房间之间(旋转门),我希望玩家必须跳过它。

我有:

The turnstile is inside of the Library. The turnstile is a door. 
The turnstile is locked and closed and openable.
The turnstile can be jumped over.

Instead of jumping turnstile:
    say "You jumped over the turnstile and ran into the library";
    now the player is in Collab Room;

但是我收到了错误:

  

问题。你写了'而不是跳跃旋转门' ,这似乎引入了一条规则,只有当行动是“跳转”时才会生效。但这对行动的描述没有意义。我无法将此规则放入任何规则手册中    参见手册:7.1> 7.1。操作

我检查了那一节,并搜索了一堆,没有运气。任何帮助表示赞赏!

1 个答案:

答案 0 :(得分:4)

标准规则中的跳跃动作不接受名词。你必须定义一个新动作。

Jumping over is an action applying to one thing.
Understand "jump [something]" and "jump over [something]" as jumping over.

Check jumping over:
    say "That seemed unnecessary." instead.

Instead of jumping over the turnstile:
    say "You jumped over the turnstile and ran into the library.";
    now the player is in Collab Room;

作为旁注,The turnstile can be jumped over本身不做任何事情:它可以用作自定义规则逻辑的一部分,但是Inform实际上并不理解英语,因此它不会自动获取这样的指示。