从 Inform 7 中的角色那里得到一个简单的回复
Getting a simple reply from a character in Inform 7
我在 Inform 7 Interactive Fiction 故事中有一个非玩家角色,我想从中得到一个简单的回复。角色是机器人医生。当你参加考试时 table 机器人医生会拿出一个压舌板让你说“啊”。我希望角色在玩家输入“say ah”时说些什么,但到目前为止还没有用。
到目前为止,这是我的代码:
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
,但到目前为止没有任何效果。
关于我如何让 Auto-Doc 在玩家输入“say ah”后说些什么的任何提示?无论玩家说什么,Auto-Doc 都以相同的方式回复我什至很高兴。
经过更多研究,我发现 Inform 理解的响应是是、否和抱歉。所以 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..."
这设置了两种不同的非承诺性回答,用于表示是和否。说 'ah' 被理解为说是,所以玩家会得到回应。
这里有一个方便的提示:在 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."
我在 Inform 7 Interactive Fiction 故事中有一个非玩家角色,我想从中得到一个简单的回复。角色是机器人医生。当你参加考试时 table 机器人医生会拿出一个压舌板让你说“啊”。我希望角色在玩家输入“say ah”时说些什么,但到目前为止还没有用。
到目前为止,这是我的代码:
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
,但到目前为止没有任何效果。
关于我如何让 Auto-Doc 在玩家输入“say ah”后说些什么的任何提示?无论玩家说什么,Auto-Doc 都以相同的方式回复我什至很高兴。
经过更多研究,我发现 Inform 理解的响应是是、否和抱歉。所以 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..."
这设置了两种不同的非承诺性回答,用于表示是和否。说 'ah' 被理解为说是,所以玩家会得到回应。
这里有一个方便的提示:在 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."