4

如果玩家进入一个物体(他们的手机)“充电”的房间,我试图触发游戏结束。

我一定不明白在输入位置时触发规则的语法,因为我意识到我的其他类似规则也没有发生。

我有:

Instead of entering Great Hall:
    if phone is charged:
         say "Hooray you win.";

但规则如下:

Instead of entering Big house:
    If butler is in big house:
         say "'blah blah blah";
         now player is in big house;
    otherwise:
         say "Oh no, can't get into the house.";

也不工作。我阅读了关于结束游戏的第 9.4 节,也用 after 和 before 替换了我的,但没有运气。玩家在条件下进入房间后我该怎么做?

谢谢!

4

1 回答 1

7

当进入容器、支架和门等物体时触发进入动作。对于您想要“去”的房间。

After going to the Great Hall when the phone is charged:
    end the story saying "Hooray you win."

最好让库尽可能处理房间之间的转换,而不是手动移动播放器,这就是continue the action这里的做法:

Instead of going to the Big House:
    If the butler is in the Big House:
         say "'blah blah blah'";
         continue the action;
    otherwise:
         say "Oh no, can't get into the house."
于 2015-04-22T07:56:14.500 回答