0

我在 Inform 7 Interactive Fiction 故事中有一个非玩家角色,我想得到一个简单的回复。角色是机器人医生。当你登上检查台时,机器人医生会伸出一个压舌板,让你说“啊”。我希望角色在玩家键入“说啊”时说些什么,但到目前为止它还不起作用。

到目前为止,这是我的代码:

The exam table is a supporter in the Med Bay. It is fixed in place and enterable.
In the Med Bay is a person called Auto-Doc.
After entering the exam table, say "A number of bright lights embedded in an overhead panel bathe you in a cold, white light. A panel in the wall opens and an auto-doc trundles forth on a three-wheeled base. Clutching a tongue depressor in its mechanical grip, a small speaker hidden within crackles with the words 'Say, ah.'"
After speaking in the presence of the Auto-Doc, say "Mmm. Mm-hmm. Very interesting."

最后一行导致编译器抛出错误,但我无法弄清楚要使用什么。我已经尝试过Instead of speaking, After telling the Auto-Doc something, After saying ah in the presence of the Auto-Doc,但到目前为止没有任何效果。

关于在玩家键入“say ah”后如何让 Auto-Doc 说些什么的任何提示?无论玩家说什么,我什至都会对 Auto-Doc 以同样的方式回复感到满意。

4

2 回答 2

1

这里有一个方便的提示:在 IDE 中玩游戏时命令 ACTIONS 以在您键入命令时查看动作名称。

>actions  
Actions listing on.

>say ah  
(to Auto-Doc)  
[answering Auto-Doc that "ah"]  
There is no reply.  
[answering Auto-Doc that "ah" - succeeded]  

>

所以你正在寻找的规则是:

Instead of answering Auto-Doc that "ah":
    say "Mmm. Mm-hmm. Very interesting."
于 2021-11-01T07:43:27.730 回答
0

经过一番研究,我发现 Inform 理解的响应是 yes、no 和 sorry。因此,understand "ah" and "say ah" as saying yes.其次Instead of saying yes in the presence of the Auto-Doc, say "Mmm. Mm-hmm. Very interesting."是一种方法。

这是代码现在的样子:

The exam table is a supporter in the Med Bay. It is fixed in place and enterable.
After entering the exam table, say "A number of LEDs embedded in the ceiling switch on, bathing you in a cold, white light. A panel in the wall opens and an auto-doc trundles forth on a three-wheeled base. Clutching a tongue depressor in its mechanical grip, a small speaker hidden within crackles with the words 'Say, ah.'"
In the Med Bay is a person called Auto-Doc.
Instead of saying yes in the presence of the Auto-Doc, say "Mmm. Mm-hmm. Very interesting."
Understand "ah" and "say ah" as saying yes when location is Med Bay.
Instead of saying no in the presence of the Auto-Doc, say "Hmm..."

这为说是和不是设置了两种不同的不置可否的回应。说“啊”被理解为是,所以玩家会得到回应。

于 2021-11-01T01:39:57.033 回答