The in-game character creator.

Gameplay Systems

Quests

reactor_quests.js · 1,382 lines · 107 public functions

The in-game character creator.

What This Module Does

A quest is a record in data/ReactorQuests.json, authored in Database > Quests (its own file and global: plugins own data/Quests.json and $dataReactorQuests - YEP_QuestJournal, GS_QuestSystem - and must keep them): a name, a category, who gives it and where, a description, objectives and rewards (each can start hidden, and each can give gold, an item, EXP or a common event), and the rule that makes it appear - an event command, a switch, a variable, or the start of the game. The player's progress lives on $gameSystem, so it saves with the game. The tracked quest shows on the map in Window_QuestTracker.

Classes & Namespaces

Design Notes from the Source Code

A quest is a record in data/ReactorQuests.json, authored in Database > Quests (its own file and global: plugins own data/Quests.json and $dataReactorQuests - YEP_QuestJournal, GS_QuestSystem - and must keep them): a name, a category, who gives it and where, a description, objectives and rewards (each can start hidden, and each can give gold, an item, EXP or a common event), and the rule that makes it appear - an event command, a switch, a variable, or the start of the game. The player's progress lives on $gameSystem, so it saves with the game. The tracked quest shows on the map in Window_QuestTracker.

$gameSystem.quests() the progress record (Game_Quests) .discover(id) .complete(id) .fail(id) .reset(id) .status(id) .setObjective(id, index, "show" | "hide" | "complete" | "fail" | "reset") .setReward(id, index, visible) .giveRewards(id, index) .setTracked(id) .tracked() .known() .completed() .failed() ReactorQuests.find(idOrKey) the data record by id or key Scene_Quest the quest log; "Quests" in the main menu

Plugin commands (plugin "RPGReactor"): QuestSet, QuestObjective, QuestReward, OpenQuestLog - the event editor offers them under Reactor > Game Flow. A stock MZ runtime ignores all of it.

View reactor_quests.js on GitHub · Show internal (_) functions