在 Inform 7 中,是否可以使用带有“pull”的第二个名词结构?

发布于 2024-08-30 09:46:26 字数 583 浏览 4 评论 0原文

如果我能得到一个好的答案,我会吃掉我的帽子...我怀疑虽然我是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丿*梦醉红颜 2024-09-06 09:46:26

您是否扩展了标准规则中的“pull”以接受第二个名词?据我了解(*),标准的“拉”不知道“with”。我猜想大致如下:

Pulling it with is an action applying to two things.
Understand "pull [something] with [something preferably held]" as pulling it with.

Instead of pulling the nails:
    say "How?  Are you going to pull the nails with your teeth?";
Instead of pulling the nails with something:
    say "I don't think that's going to do the job."

*:警告:我根本不明白,也不知道我在说什么。 :-) 我避免将 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:

Pulling it with is an action applying to two things.
Understand "pull [something] with [something preferably held]" as pulling it with.

Instead of pulling the nails:
    say "How?  Are you going to pull the nails with your teeth?";
Instead of pulling the nails with something:
    say "I don't think that's going to do the job."

*: 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...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文