2

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

"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."

相反,它的行为如下:

终端大厅

请输入您的姓名。

> jorendorff
谢谢你,jorendorff。我们现在要结束这个故事。
这条线不应该到达。

>

它是一个错误吗?有没有办法让故事从活动后的规则中真正结束?

4

1 回答 1

2

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

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

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.
于 2020-03-05T13:36:44.117 回答