在 Inform 7 中,是否可以使用带有“pull”的第二个名词结构?
如果我能得到一个好的答案,我会吃掉我的帽子...我怀疑虽然我是 Inform 7 的初级初学者,而且我猜这并不难,但这里可能没有多少人熟悉 Inform 7 的人。仍然没有冒险......
我正在尝试创建对“拉”操作的自定义响应。不幸的是,我认为“拉”动作通常不需要第二个名词。所以我正在尝试这样的事情:
The nails are some things in the Foyer. The nails are scenery.
Instead of pulling the nails:
If the second noun is nothing:
say "How? Are you going to pull the nails with your teeth?";
otherwise:
say "I don't think that's going to do the job."
但是当它编译并且第一部分工作时,“我不认为......”部分永远不会被调用......解释器只是回应“我只理解你”想拔指甲。”我是否必须为此创建自己的自定义操作?覆盖标准拉动动作?我是否缺少一些简单的东西可以让我让它工作?
I'll eat my hat if I get a good answer to this...I suspect that although I'm a rank beginner in Inform 7, and I'm guessing this isn't that hard, there are probably not many people here who are familiar with Inform 7. Still, nothing ventured...
I'm trying to create a custom response to a "pull" action. Unfortunately, I think the "pull" action doesn't normally expect a second noun. So I'm trying something like this:
The nails are some things in the Foyer. The nails are scenery.
Instead of pulling the nails:
If the second noun is nothing:
say "How? Are you going to pull the nails with your teeth?";
otherwise:
say "I don't think that's going to do the job."
But while this compiles, and the first part works, the "I don't think..." section is never called...the interpreter just responds "I only understood you as far as wanting to pull the nails." Do I have to create my own custom action for this? Overwrite the standard pull action? Am I missing something simple that will allow me to get this to work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否扩展了标准规则中的“pull”以接受第二个名词?据我了解(*),标准的“拉”不知道“with”。我猜想大致如下:
*:警告:我根本不明白,也不知道我在说什么。 :-) 我避免将 Inform 版本 7 视为某种乔姆斯基式的噩梦......
Have you extended “pull” from the Standard Rules to accept a second noun? As I understand it(*), the standard “pull” doesn't know about “with”. I guess something along the lines of:
*: Warning: I don't understand it at all, and have no idea what I've talking about. :-) I've avoided version 7 of Inform as some kind of Chomskyian nightmare...