I want to create a new action called washing
, as follows:
Understand "wash [something] with [something]" as washing.
Understand the command "clean" as "wash".
However, the Inform7 standard rules define a number of synonyms for rub
, one of which is clean
:
Understand "rub [something]" as rubbing.
Understand the commands "shine", "polish", "sweep", "clean", "dust", "wipe" and "scrub" as "rub".
The result is that I get a compiler error:
Problem. You wrote 'Understand the command "clean" as "wash"': but 'understand the command ... as ...' is only allowed when the new command has no meaning already, so for instance 'understand "drop" as "throw"' is not allowed because "drop" already has a meaning.
How can I tell Inform to switch the meaning of the clean
command from rub
to wash
without affecting the rest of the rub
definition at all?