问题标签 [inform7]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
38 浏览

inform7 - 从 Inform 7 中的角色获得简单回复

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

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

最后一行导致编译器抛出错误,但我无法弄清楚要使用什么。我已经尝试过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 以同样的方式回复感到满意。