inform7如何触发进入房间的规则

How to trigger a rule on entering a room in inform7

如果玩家进入带有物体的房间(他们的phone),我会尝试触发游戏结束"charged"。

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

我有:

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 替换了我的代替,但没有运气。玩家在条件下进入房间后我该怎么办?

谢谢!

进入容器、支架和门等物品时会触发进入动作。您需要 "going to".

的房间
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."