Inform7中另一个人的全球可见性?



在我正在为大学工作的一个项目中,有人要求一个人能够使用一种对讲机来引导另一个人。然而,这需要对应该能够像这样控制的人进行某种全球访问。人们可能会执行以下操作之一:

  • 每次玩家要求其他角色做某事时交换玩家,执行动作并返回
  • 使用对讲机改变角色的视角(这对我来说似乎不是一种直观的游戏方式)
  • 以某种方式使另一个角色在每个房间中可见(这将是我最喜欢的角色)

不幸的是,我无法在文档中找到类似的东西(可见性只是一个房间的照明,可达性只是打开/从某物中取出一些东西)。我想到的另一种方法是保存两者的原点房间,将它们放在一个密室中,c1 然后要求 c2 尝试做某事,两者都被放置在各自的位置,并且请求的操作由 c2 执行。
但是,将其编写为 before 规则不起作用,因为它已被默认检查规则取消。另一方面,我不能写:

Check asking c2to try doing something

因为那是一般的。
欢迎任何想法,方法或解决方案!

你要找的概念是"范围"(用通知第18.29章写作。以下内容将"c2"置于范围内,因此可以在任何地方访问:

After deciding the scope of the player:
place c2 in scope.

您也可以将其设置为有条件的:

After deciding the scope of the player when the player is carrying the walkie talkie:
place c2 in scope.

剩下的就是微调了。以下可防止在 c2 物理上不在同一空间中时不合逻辑的命令(如"查看 c2"):

Before doing something to c2 when c2 is not in the location and not answering c2 that:
say "C2 isn't here right now. You can tell it what to do through the walkie talkie by commanding for example C2, JUMP." instead.

这可以防止"您无法进入..."发出的命令无效时出错:

Before answering c2 that:
say "C2 doesn't understand that command." instead.

最新更新