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

时间:2015-04-22 06:34:30

标签: inform7

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

我必须不理解触发规则进入某个位置的语法,因为我意识到我的其他类似规则也没有发生。

我有:

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节,取而代之的是之前和之后,没有运气。玩家在条件下进入房间后如何做某事?

谢谢!

1 个答案:

答案 0 :(得分:4)

输入容器,支架和门等物品时会触发输入操作。对于您想要"去"。

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