首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在inform7中触发进入房间的规则

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

Stack Overflow用户
提问于 2015-04-22 06:34:29
回答 1查看 2K关注 0票数 4

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

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

我有:

代码语言:javascript
复制
Instead of entering Great Hall:
    if phone is charged:
         say "Hooray you win.";

但规则如下:

代码语言:javascript
复制
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节关于结局的剧本,用前后代替了我,没有运气。当玩家在条件下进入房间后,我该怎么做?

谢谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-04-22 07:56:14

进入操作是在进入容器、支架和门之类的东西时触发的。你想“去”的房间。

代码语言:javascript
复制
After going to the Great Hall when the phone is charged:
    end the story saying "Hooray you win."

与其手动移动播放器,不如尽可能让库处理房间间的转换,这就是continue the action在这里所做的:

代码语言:javascript
复制
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."
票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29789530

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档