gpt4 book ai didi

inform7 - 如何跳过 Inform 7 中的内容

转载 作者:行者123 更新时间:2023-12-04 03:53:33 27 4
gpt4 key购买 nike

我在 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;

但我收到错误:

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

我查看了该部分,并用谷歌搜索了一堆,但没有运气。如有任何帮助,我们将不胜感激!

最佳答案

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

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;

顺便说一句,旋转栅门可以跳过本身不会做任何事情:它可以用作自定义规则逻辑的一部分,但 Inform 实际上并不理解英语所以它不会自动接受此类指令。

关于inform7 - 如何跳过 Inform 7 中的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29779998/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com