In Inform 7, is it possible to use a second noun construct with "pull"?

Posted by Beska on Stack Overflow See other posts from Stack Overflow or by Beska
Published on 2010-04-29T18:36:39Z Indexed on 2010/04/29 20:07 UTC
Read the original article Hit count: 261

Filed under:

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, but 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?

© Stack Overflow or respective owner

Related posts about inform7