6

これでいい答えが返ってきたら脱帽です…私はInform 7のランク初心者ですが、それほど難しくないと思いますが、おそらくここにはあまり人がいないのではないでしょうか。 Inform 7 に精通している人。

「プル」アクションに対するカスタム応答を作成しようとしています。残念ながら、「プル」アクションは通常、2 番目の名詞を想定していないと思います。だから私はこのようなことを試みています:

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

しかし、これがコンパイルされ、最初の部分が機能している間、「私は考えていません...」セクションが呼び出されることはありません...インタプリタは、「釘を抜きたいという限り、あなたを理解しただけです」と応答するだけです。これには独自のカスタム アクションを作成する必要がありますか? 標準のプル アクションを上書きしますか? これを機能させるための簡単なものがありませんか?

4

1 に答える 1

8

2 番目の名詞を受け入れるために、標準規則からの「プル」を拡張しましたか? 私が理解しているように(*)、標準の「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 は、ある種のチョムスキー的な悪夢として避けてきました...

于 2010-04-29T20:05:10.760 に答える