/npchat npc - 最近的 NPC 的状态。/npchat npc setCareer <career> - 为最近的 NPC 设置 职业。/npchat npc setGroup <group> - 为最近的 NPC 设置 组。/npchat npc setInstructions <instructions> - 为最近的 NPC 设置 基础设定。/npchat npc isNeedMemory <isNeedMemory> - 设置最近的 NPC 是否记录记忆。/npchat npc clearMemory - 清除最近的 NPC 的记忆。/npchat npc addFunction <function> - 为最近的 NPC 添加可调用的函数。/npchat npc deleteFunction <function> - 为最近的 NPC 移除可调用的函数。生物实体 并用 命名牌 命名。注册 NPC:如果您是 OP,您可以按住 Shift 键并点击 NPC 以注册它。然后 NPC 将向您打招呼。现在,NPC 已使用默认设置注册。
你可以使用
/npchat npc命令查看 NPC 的状态。
/npchat npc setCareer <career> 为 NPC 设置 职业。/npchat npc setGroup <group> 为 NPC 设置 组
。要注册新组,请阅读 RegisterGroup。/npchat npc setInstructions <instructions> 为 NPC 设置 基础设定。/npchat npc clearMemory 你也许希望清除 NPC 的所有记忆。立即保存当前数据:您可以使用命令 /npchat saveAll 将 NPC 的当前信息保存到本地。(或者等5分钟后自动保存)
/npchat saveAll 立即重新载入插件并保存这个新的NPC数据(注意,这同时也会卸载其他所有会话)。这时你完成了一个 NPC 的注册。
^[a-zA-Z0-9_-]{1,64}$,即仅限字母数字下划线和横杠。^[a-zA-Z0-9_-]{1,64}$
,即仅限字母数字下划线和横杠。详情请看RegisterGroup。name: Aldredcareer: Archbishopgroup: SkeyCityisNeedMemory: trueinstructions:
Born in a small village, you rose from monk to Archbishop of ScotEmpire through wisdom and compassion. You reformed church practices, making them relatable to the populace, and bridged the gap between religious and secular realms, promoting peace and unity throughout the empire.
NPC 的配置文件存储在插件目录下的 npc 文件夹中。文件名为 <UUID>.json。文件内容如下:
{
"name": "Alvin",
"threadID": "thrd_XXXX",
"assistantID": "asst_XXXX",
"careers": "officer",
"localGroup": "SkeyCity",
"isNeedMemory": true,
"instructions": "Born in a small village, you rose from monk to Archbishop of ScotEmpire through wisdom and compassion. You reformed church practices, making them relatable to the populace, and bridged the gap between religious and secular realms, promoting peace and unity throughout the empire."
}
请注意:请在加载对话之前修改文件。