21 lines
859 B
TypeScript
21 lines
859 B
TypeScript
import type { FunctionDocumentationEntry } from '../types';
|
||
|
||
/**
|
||
* npc_quest_accept
|
||
*
|
||
* 接下眼前 NPC 委托的 function。
|
||
*/
|
||
export const NPC_QUEST_ACCEPT_FUNCTION: FunctionDocumentationEntry = {
|
||
id: 'npc_quest_accept',
|
||
domain: 'npc',
|
||
title: '接下委托',
|
||
source: 'src/data/functionCatalog/npc/npcQuestAccept.ts',
|
||
summary: '把 NPC 提供的任务写入 quest log。',
|
||
detailedDescription:
|
||
'它用于把当前交互中的委托正式变成可追踪任务,并让故事明确承接“玩家已经答应了这件事”。',
|
||
trigger: 'NPC 当前没有活跃任务且本地规则成功为其生成了一个可接任务时出现。',
|
||
execution: '点击后会在本地 questFlow 中创建 active quest,并继续推进剧情。',
|
||
result: '玩家获得新的任务目标、任务文本与后续交付条件。',
|
||
active: true,
|
||
};
|