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

Bes*_*ska 6 inform7

如果我得到一个很好的答案,我会吃掉我的帽子...我怀疑虽然我是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."
Run Code Online (Sandbox Code Playgroud)

但是,当这个编译,第一部分工作时,"我不认为..."部分从未被调用过......翻译只是回答"我只是想要拉你的指甲才能理解你".我是否必须为此创建自己的自定义操作?覆盖标准拉动作?我错过了一些简单的东西,让我能够让它发挥作用吗?

bob*_*nce 8

你是否从标准规则中扩展了"拉"以接受第二个名词?据我所知(*),标准"拉"不知道"有".我猜想有些事情:

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."
Run Code Online (Sandbox Code Playgroud)

*:警告:我根本不懂,也不知道我在说什么.:-)我已经避免了第7版的Inform作为某种乔姆斯基式的噩梦......

  • 您可以在"操作索引"中找到一组完整的操作.这不是手册的一部分,它是由编译器生成的.在IDE中,单击"索引"选项卡,然后单击下面的"操作".任何名称中间带有"it"的动作都有两个名词. (2认同)