You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Inform7如何修改已定义命令含义 将clean从rub关联改为wash关联

你遇到的报错是因为Inform7不允许直接给已经绑定过动作的命令重复分配新动作,必须先解绑原有绑定再重新关联,操作方法如下:

  1. 先用Understand the command "clean" as something new.语法解除clean命令和rub动作的原有绑定,这一步只会清除clean的原有映射,rub的其他同义词(shine、polish、sweep等)以及rub的所有规则都完全不受影响。
  2. 再按照你原本的逻辑定义washing动作并绑定clean命令即可。

完整可运行的代码示例:

Understand the command "clean" as something new.

Understand "wash [something] with [something]" as washing.
Understand the command "clean" as "wash".

内容的提问来源于stack exchange,提问作者HappyDog

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.29 23:36:00