如何跳过 Inform 7 中的内容
How to jump over stuff in Inform 7
我在 Inform 7 的两个房间之间有一个 "door"(十字转门),我希望玩家必须跳过它。
我有:
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;
但我收到错误消息:
Problem. You wrote 'Instead of jumping turnstile' , which seems to introduce a rule taking effect only if the action is 'jumping turnstile'. But that did not make sense as a description of an action. I am unable to place this rule into any rulebook.
See the manual: 7.1 > 7.1. Actions
我查看了那个部分,并在谷歌上搜索了一堆,没有运气。感谢您的帮助!
标准规则中的跳跃动作不接受名词。您必须定义一个新操作。
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 实际上并不理解英语,因此它不会自动拿起这样的说明。
我在 Inform 7 的两个房间之间有一个 "door"(十字转门),我希望玩家必须跳过它。
我有:
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;
但我收到错误消息:
Problem. You wrote 'Instead of jumping turnstile' , which seems to introduce a rule taking effect only if the action is 'jumping turnstile'. But that did not make sense as a description of an action. I am unable to place this rule into any rulebook.
See the manual: 7.1 > 7.1. Actions
我查看了那个部分,并在谷歌上搜索了一堆,没有运气。感谢您的帮助!
标准规则中的跳跃动作不接受名词。您必须定义一个新操作。
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 实际上并不理解英语,因此它不会自动拿起这样的说明。