我想创建一个名为 的新操作washing
,如下所示:
Understand "wash [something] with [something]" as washing.
Understand the command "clean" as "wash".
但是,Inform7 标准规则为 定义了许多同义词rub
,其中之一是clean
:
Understand "rub [something]" as rubbing.
Understand the commands "shine", "polish", "sweep", "clean", "dust", "wipe" and "scrub" as "rub".
结果是我得到一个编译器错误:
问题。您写了“将命令“clean”理解为“wash””:但是“将命令理解为 ...”仅在新命令已经没有意义时才允许使用,例如“将“drop”理解为“ throw"' 是不允许的,因为 "drop" 已经有意义了。
我怎样才能告诉 Inform 将clean
命令的含义从切换rub
到wash
而不影响rub
定义的其余部分?