gpt4 book ai didi

inform7 - 我可以从事件规则中获取 "end the story"吗?

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

我正在使用“读取命令后”规则来劫持命令行。

"The Halting Problem" by jorendorff

Termination Hall is a room. "Please type your name."

The continuation is a rule that varies. The continuation is the naming rule.

After reading a command:
[say "(executing [the continuation]...)";]
follow the continuation;
reject the player's command.

这有效,但如果规则说要结束故事,它并没有结束。
This is the naming rule:
say "Thank you, [the player's command]. We are now going to end the story.";
end the story saying "You have died";
say "This line should not be reached."

相反,它的行为是这样的:

Termination Hall

Please type your name.

> jorendorff
Thank you, jorendorff. We are now going to end the story.
This line should not be reached.

>



这是一个错误吗?有没有办法让故事从事件后规则中真正结束?

最佳答案

主要是由于今天不太相关的历史原因,“结束故事”不会立即停止游戏,而是设置一个“死旗”,在回合结束时进行检查,这将触发实际结束的关闭规则故事。在这种情况下,因为玩家的命令被拒绝,所以不会遵循正常的转弯顺序,并且永远不会检查 Deadflag。

您可以做的是手动运行关闭规则:

This is the naming rule:
say "Thank you, [the player's command]. We are now going to end the story.";
end the story saying "You have died";
follow the shutdown rules.

关于inform7 - 我可以从事件规则中获取 "end the story"吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60528690/

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