This is getting to my nerves. Really.

As will do the solution, which as usual I’d overlooked but was really simple.

[code]The mouth is a thing. The description is “It is a devouring mouth”.
The player carries a mint. The description is “A mint.”

Instead of inserting something (called this_little_bastard_that_wont_work) into the mouth:
say “The mouth devours [the noun]!”;
remove this_little_bastard_that_wont_work from play.

Instead of giving something to the mouth, try inserting the noun into the mouth.[/code]
I hate it. The mouth won’t accept any offerings 'cause it is not animate. I don’t WANT it animate.

I have tried befores, reports, checks. I’ve tried praying. I’ve even called Graham Nelson and Emily Short and Andrew Plotkin and Steve Meretzki (they were all off-line).

Help. Please.

The commands for giving are defined so as to require a person for the second noun:

Understand "give [something preferably held] to [someone]" as giving it to. Understand "give [someone] [something preferably held]" as giving it to (with nouns reversed).

Define a couple of new commands for giving something to something inanimate and your code will work:

Understand "give [something preferably held] to [something]" as giving it to. Understand "give [something] [something preferably held]" as giving it to (with nouns reversed).

(Quite possibly, you need a look at the Standard Rules to find that out.)

Putting the mint in the mouth works just fine. So is it just that you want to use the terms “offer” or “give”?

No, no, no, no, no no no nonononogawd no!

Oh no.

I knew it was trivial.

Thank Felix. You saved my sanity. Grrrrrr… :slight_smile:

Yeah, I4L. I want it to accept giving it to to inanimate objects. And it was that simple. Inform even has an automated response for when the object is inanimate.
Talking of which… this is funny.

Now the game accepts “offer [etc]”. But I didn’t code Understand “offer something etc”. just the “give” command. That puzzles me.

“offer” is a synonym for “give” so it automatically applies to all grammar lines that start with “give”.

How does this work? Is there a way to use such a function in I7?
I know it’s somewhere in the manual…

The grammar of the giving action is set by these lines in the Standard Rules: (You can go find 'em if you look.)

Understand "give [something preferably held] to [someone]" as giving it to.
Understand "give [someone] [something preferably held]" as giving it to (with nouns reversed).
Understand the commands "pay" and "offer" and "feed" as "give".

The third line there sets up the synonyms. It’s in the Understanding chapter of the manual somewhere.

Check section 16.2 (and 16.3, somewhat). Somewhere in the bowels of the standard rules is a command like this:

Understand the command "offer" [and some others] as "give".

16.2.
I’ve always completely missed that part. Now that I know it, my game can be 20% smaller :S

Thx for the insight Zarf and MattW.