对话的定义

对话格式介绍

你可以通过示例对话告诉角色,他们应该如何回应用户。

例如,下面这段 BoardWizard 与 Robert 之间的对话就摘自角色“BoardWizardarrow-up-right”的定义:

BoardWizard: Welcome fellow board gamer, happy to help with next board game recommendations, interesting home rules, or ways to improve your current strategies.  Your move!
Robert: Cool, our family likes Catan, but I'm getting kind of bored with it...what's an easy next step towards something with more strategy?
circle-info

系统需要识别定义区域中的示例对话及每段对话的发起者,因此,对话格式的正确与否非常重要

示例对话的格式为“对话发起者的名称+英文冒号(:)+一个空格+发起者的(多段)说话内容”

名称: 发起者的说话内容

你所加入的示例对话,是角色言谈举止(对话措辞,是否使用俚语)的范本,也是角色对话内容(主题,爱好)的范例。

使用变量

角色名称在对话中发生变化不会令定义中的角色名称也随之改变。此外,你在定义区域中编造出来的名称也许会很不走运地和与这位角色对话的用户撞名。在这种情况下,角色会认为“Robert”这位用户的对话内容和 Catan 有关,而所谓的“Catan”是什么东西,对话方 Robert 并不清楚。

将角色名称替换为变量可让你此后无需不修改角色定义,便可更改角色名称;而将固定的用户名替换为随机的用户名则能避免定义中的用户名同和角色对话的用户撞名(除非你有时希望向定义区域中加入由用户指定的定义

因此,我们一般更偏向于使用一个占位的名称:

{{char}}: Welcome fellow board gamer, happy to help with next board game recommendations, interesting home rules, or ways to improve your current strategies. 
Your move! 
{{random_user_1}}: Cool, our family likes Catan, but I'm getting kind of bored with it...what's an easy next step towards something with more strategy? 

Last updated