Getting a rule to work

I’m trying to work it so that the player brushes his teeth.

[code]Brushing teeth is an action applying to one visible thing.

Understand “brush [something]” as brushing.

Teeth is a part of player.

A squiggle of toothpaste is inside tube of toothpaste. The squiggle of toothpaste is undescribed.

[/code]

But I get the message:

Problem. You wrote ‘Understand “brush [something]” as brushing’ : but ‘understand … as …’ should be followed by a meaning, which might be an action (e.g., ‘understand “take [something]” as taking’), a thing (‘understand “stove” as the oven’) or more generally a value (‘understand “huitante” as 80’), or a named token for use in further grammar (‘understand “near [something]” as “[location phrase]”’). Also, the meaning needs to be precise, so ‘understand “x” as a number’ is not allowed - it does not say which number.

And I’m pretty sure the parser does understand brushing teeth, because I’ve got a couple of “check” rules it works with.

[code]Brushing teeth is an action applying to one visible thing.

Understand “brush [something]” as brushing.

Teeth is a part of player.

A squiggle of toothpaste is inside tube of toothpaste. The squiggle of toothpaste is undescribed.
[/code]

Your first line calls the action “brushing teeth” but your second line refers to that same action as just “brushing”. I think that might be it.

I think that’s going to work, but in the meantime I discovered another problem:

The toothbrush is a thing on the sink.

But when I try to “take toothbrush” the actions fails, and I don’t know why.

Forget my last post. I figured it out.