我有一个heal [someone]
动作可以恢复我在我的故事中给予所有人的 hp 值。当我自己输入命令heal
时,它默认会先治疗同一个房间的其他人,然后再治疗玩家。
如果没有指定名词,有没有办法让玩家默认执行该操作?
我有一个heal [someone]
动作可以恢复我在我的故事中给予所有人的 hp 值。当我自己输入命令heal
时,它默认会先治疗同一个房间的其他人,然后再治疗玩家。
如果没有指定名词,有没有办法让玩家默认执行该操作?
您可以创建另一个动作(在此示例中为“治愈自己”),将短语“治愈”理解为该动作,并将该动作转换为检查规则中应用于玩家的治疗动作:
A person has a number called current hit points.
A person has a number called maximum hit points.
Healing is an action applying to one thing.
Healing oneself is an action applying to nothing.
Understand "heal [someone]" as healing.
Understand "heal" as healing oneself.
To appear is a verb.
To feel is a verb.
Check healing oneself:
convert to the healing action on the player.
Carry out healing:
now the current hit points of the noun is the maximum hit points of the noun.
Report healing:
if the noun is the player:
say "[We] [feel] completely healed!";
otherwise:
say "[The noun] [appear] completely healed!".
Does the player mean healing the player: it is likely.