fanren/config/quests.json
2025-12-24 21:10:08 +08:00

173 lines
5.6 KiB
JSON
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.

{
"QUEST_001": {
"id": "QUEST_001",
"name": "七玄门初入江湖",
"description": "作为新入门的弟子,需要熟悉门派环境,完成基础任务。",
"npcId": "VILLAGER_1",
"nodes": {
"START": {
"type": "dialogue",
"text": "师弟门中最近需要一些银两你能帮我去后山收集10两银子吗",
"options": [
{ "text": "好,我去收集银两。", "next_node": "ACCEPT" },
{ "text": "现在没时间,下次再说。", "next_node": "END" }
],
"preConditions": [
{ "type": "level", "value": 1 }
]
},
"ACCEPT": {
"type": "objective",
"goal": { "type": "collect", "entityId": "ZHENGBI", "count": 10 },
"on_complete": "REWARD"
},
"REWARD": {
"type": "dialogue",
"text": "很好,师弟表现不错,这是你的奖励。",
"options": [
{ "text": "感谢奖励", "next_node": null }
],
"actions": [
{ "type": "give_xp", "amount": 50 },
{ "type": "give_gold", "amount": 20 },
{ "type": "give_item", "itemId": "POTION_01", "quantity": 1 },
{ "type": "complete_quest", "questId": "QUEST_001" }
]
},
"END": {
"type": "dialogue",
"text": "好吧,有时间再帮忙。",
"options": []
}
}
},
"QUEST_002": {
"id": "QUEST_002",
"name": "后山除害",
"description": "后山出现了一些野狼,威胁门派安全,需要清除。",
"npcId": "VILLAGER_1",
"nodes": {
"START": {
"type": "dialogue",
"text": "师弟,后山有三只野狼威胁弟子安全,你能帮我们解决吗?",
"options": [
{ "text": "野狼?我可以帮忙处理。", "next_node": "ACCEPT" },
{ "text": "太危险了,我不去。", "next_node": "END" }
],
"preConditions": [
{ "type": "level", "value": 2 }
]
},
"ACCEPT": {
"type": "objective",
"goal": { "type": "kill", "entityId": "WOLF", "count": 3 },
"on_complete": "REWARD"
},
"REWARD": {
"type": "dialogue",
"text": "太好了,后山安全了,这是给你的奖励。",
"options": [
{ "text": "收下奖励", "next_node": null }
],
"actions": [
{ "type": "give_xp", "amount": 100 },
{ "type": "give_gold", "amount": 30 },
{ "type": "give_item", "itemId": "WEAPON_01", "quantity": 1 },
{ "type": "complete_quest", "questId": "QUEST_002" }
]
},
"END": {
"type": "dialogue",
"text": "好吧,注意安全。",
"options": []
}
}
},
"QUEST_003": {
"id": "QUEST_003",
"name": "意外救墨大夫",
"description": "在地牢中发现被困的神秘人物,需要帮助他脱困。",
"npcId": "MODOCTOR",
"nodes": {
"START": {
"type": "dialogue",
"text": "小友,老夫被困在此地多日,若能助我脱困,必有重谢。",
"options": [
{ "text": "墨大夫,我来救你。", "next_node": "ACCEPT" },
{ "text": "我还有事,改日再来。", "next_node": "END" }
],
"preConditions": [
{ "type": "level", "value": 3 }
]
},
"ACCEPT": {
"type": "objective",
"goal": { "type": "explore", "entityId": "CAVE_01", "count": 1 },
"on_complete": "REWARD"
},
"REWARD": {
"type": "dialogue",
"text": "多谢小友相助!这是老夫的一点心意。",
"options": [
{ "text": "收下奖励", "next_node": null }
],
"actions": [
{ "type": "give_xp", "amount": 200 },
{ "type": "give_gold", "amount": 100 },
{ "type": "give_item", "itemId": "POTION_03", "quantity": 1 },
{ "type": "complete_quest", "questId": "QUEST_003" }
]
},
"END": {
"type": "dialogue",
"text": "希望下次能帮上忙。",
"options": []
}
}
},
"QUEST_004": {
"id": "QUEST_004",
"name": "发现长春功",
"description": "从墨大夫处学习到神秘功法,需要修炼至小成。",
"npcId": "MODOCTOR",
"nodes": {
"START": {
"type": "dialogue",
"text": "小友,老夫观你骨骼精奇,可传授你长春功,但需谨慎修炼。",
"options": [
{ "text": "请墨大夫传授功法。", "next_node": "PATH_ACCEPT" },
{ "text": "我现在还不想学。", "next_node": "PATH_DECLINE" }
],
"preConditions": [
{ "type": "completed_quest", "questId": "QUEST_003" }
]
},
"PATH_ACCEPT": {
"type": "objective",
"goal": { "type": "level", "value": 5 },
"on_complete": "REWARD"
},
"PATH_DECLINE": {
"type": "dialogue",
"text": "功法修炼需要机缘,日后再谈。",
"options": [],
"actions": [
{ "type": "complete_quest", "questId": "QUEST_004" }
]
},
"REWARD": {
"type": "dialogue",
"text": "恭喜小友,长春功已初见成效,这是掌天瓶,望善用之。",
"options": [
{ "text": "收下奖励", "next_node": null }
],
"actions": [
{ "type": "give_xp", "amount": 300 },
{ "type": "give_gold", "amount": 200 },
{ "type": "give_item", "itemId": "ZHUTIANPING", "quantity": 1 },
{ "type": "complete_quest", "questId": "QUEST_004" }
]
}
}
}
}