Files
Genarrative/src/data/functionCatalog/npc/npcQuestAccept.ts
kdletters cbc27bad4a
Some checks failed
CI / verify (push) Has been cancelled
init with react+axum+spacetimedb
2026-04-26 18:06:23 +08:00

21 lines
859 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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,
};