Simple action requiring an item

I am trying to create an action that requires an item in inventory called a knife.

Suiciding is an action applying to nothing and requiring the knife.

However, this returns only:
Problem. You wrote ‘Suiciding is an action applying to nothing and requiring the knife’ : but the action definition contained text I couldn’t follow, and may be too complicated.

I’ve tried to do this many ways but I always get the same proble. What should I do?

You’re using “requiring” incorrectly. It’s only used in an action definition in the case of “requiring light”. There are two ways to accomplish this:

[code]“IntFic” by Mike Tarbert

Suiciding is an action applying to nothing. Understand “kill me/self” as suiciding.

Check suiciding:
if the knife is not carried, say “You’ll need something for that.” instead.

Carry out suiciding:
end the game in death.

The lab is a room. A knife is in the lab.

test me with “kill me / get knife / kill self”.[/code]

or (a little more complicated):

[code]“IntFic2” by Mike Tarbert

Suiciding is an action applying to one carried thing. Understand “kill me/self with [something]” as suiciding.

[The following two lines allow the player to leave “the knife” out if it’s visible and will force an implicit take if the knife isn’t carried.]
Understand “kill me/self” as suiciding.
Rule for supplying a missing noun when suiciding:
if the knife is visible, change the noun to the knife.

Check suiciding:
if the noun is not the knife, say “You’ll need something else for that.” instead.

Carry out suiciding:
end the game in death.

The Lab is a room. A knife and a rock is in the lab.
North of the Lab is the Hall.

test me with “kill me with rock / n / kill me / kill me with knife / s / kill me”[/code]