Hi,
I’d like to keep track of devices which process various objects.
For a toy example, an oven which processes food:
[code]An oven is a kind of device.
Food is a kind of thing.
Cheese is a kind of food.
The kitchen is a room.
In the kitchen is an oven.
In the kitchen is a cheese called cheddar.
Processing relates various devices to various things.
The verb to have processed means the processing relation.
Melting it with is an action applying to one carried thing and one touchable thing.
Understand “melt [food] with [thing]” as melting it with.
Check melting when the second noun is not an oven:
unless the second noun is food:
say “You can only melt [the noun] with an oven.” instead.
Check melting when the second noun is food:
try melting the noun with the oven instead.
Carry out melting:
now the second noun has processed the noun;
Report melting:
say “Melted!”
Test relation with “take cheddar / melt cheddar with oven”[/code]
However, this gives me the error ;
Run-time problem P62: Tried to change a relation for objects with the wrong kinds: Processing relates various devices to various things, but you tried to relate (or unrelate) the oven to cheddar.
If I instead define the relation generally:
Processing relates various things to various things.
The verb to have processed means the processing relation.
The example runs alright.
What am I missing?
Thanks!