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

时间:2010-04-29 18:36:39

标签: 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."

但是当这个编译,并且第一部分有效时,“我不认为...”部分从未被调用过...解释者只是回应“我只是理解你,只要想要拉钉子。 “我是否必须为此创建自己的自定义操作?覆盖标准拉动作?我错过了一些简单的东西,让我能够让它发挥作用吗?

1 个答案:

答案 0 :(得分:6)

您是否已从标准规则中扩展“拉”以接受第二个名词?据我所知(*),标准“拉”不知道“有”。我想的是:

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."

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