mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): quest editor with objectives, rewards, and quest chains
- New Quest mode (key 6) with full quest creation panel: - Title, description, required level - Quest giver / turn-in NPC ID linkage - Up to 4 objectives: Kill, Collect, Talk, Explore, Escort, Use Object - Rewards: XP and gold - Quest chain support via nextQuestId linking - Quest list showing all created quests with level and objective count - Save quests to JSON (included in Export Zone package) - Foundation for campaign system: create quest chains across NPCs, link objectives to placed creatures, build storylines
This commit is contained in:
parent
124ff5a54a
commit
f59d79537a
7 changed files with 239 additions and 2 deletions
|
|
@ -660,6 +660,12 @@ void EditorApp::exportZone(const std::string& outputDir) {
|
|||
npcSpawner_.saveToFile(npcPath);
|
||||
}
|
||||
|
||||
// Save quests
|
||||
if (questEditor_.questCount() > 0) {
|
||||
std::string questPath = base + "/quests.json";
|
||||
questEditor_.saveToFile(questPath);
|
||||
}
|
||||
|
||||
// Save placed objects
|
||||
if (objectPlacer_.objectCount() > 0) {
|
||||
std::string objPath = base + "/objects.json";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue