Namespace in reactor_quests.js
ReactorQuests
23 public functions in 5 groups · show internal (_) functions
Quick Reference
Setup & Creation 1
| load() | Loads the quests file once; missing or malformed means none. |
Getting Information 2
| find() | A quest by numeric id or by its key. |
| text() | The log's own labels, replaceable per project from System.json. |
Checks (True / False) 1
| isReady() | Whether it is ready. |
Actions 3
| applyReward() | Applies the reward. |
| addMenuCommand() | The command goes in as the menu finishes building its list, where addOriginalCommands would have put it (afte… |
| takeOpenOn() | Take open on. |
Other 16
| featureOn() | Whether the game uses Reactor's quests (Database > Reactor Features; a quest plugin may do the job instead). |
| quests() | Quests. |
| settings() | The project's quest log settings from System.json, with defaults. |
| trackerSettings() | The on-map tracker's settings (System.json reactorQuests.tracker), with defaults. |
| normalizeTracker() | Normalize tracker. |
| menuEnabled() | Whether the main menu offers Reactor's quest log: it is the game's log, the command is on, and there is somet… |
| logMode() | The game's log: "visustella" only when it was chosen and the plugin is running. |
| visustellaRunning() | Visustella running. |
| keyOf() | A quest's key in VisuStella's list: its own, or one made from its id (the editor writes the same). |
| mirror() | Run apply(key, $gameSystem) against VisuStella's log when it is the game's. |
| categoriesOf() | The category names in the order they first appear among the given quests. |
| rewardItem() | The database record an item, weapon or armor reward names. |
| rewardGives() | Whether a reward gives something when it is given, not only text. |
| rewardAmount() | Reward amount. |
| rewardText() | A reward's line in the log: its own text, or what it gives when it has none. |
| compare() | Compare. |
Setup & Creation
load
static sourceReactorQuests.load()
Loads the quests file once; missing or malformed means none.
Getting Information
find
static sourceReactorQuests.find(idOrKey)
A quest by numeric id or by its key.
text
static sourceReactorQuests.text(key)
The log's own labels, replaceable per project from System.json.
Checks (True / False)
isReady
static sourceReactorQuests.isReady()
Whether it is ready.
Actions
applyReward
static sourceReactorQuests.applyReward(reward)
Applies the reward.
addMenuCommand
static sourceReactorQuests.addMenuCommand(commandWindow)
The command goes in as the menu finishes building its list, where addOriginalCommands would have put it (after Formation), and brings its own handler.
Details
The command goes in as the menu finishes building its list, where addOriginalCommands would have put it (after Formation), and brings its own handler. It used to ride addOriginalCommands and Scene_Menu.createCommandWindow, but VisuStella's MainMenuCore replaces both outright, so neither the command nor its handler reached the menu. A MainMenuCore submenu keeps its own list.
takeOpenOn
static sourceReactorQuests.takeOpenOn()
Take open on.
Other
featureOn
static sourceReactorQuests.featureOn()
Whether the game uses Reactor's quests (Database > Reactor Features; a quest plugin may do the job instead).
quests
static sourceReactorQuests.quests()
Quests.
settings
static sourceReactorQuests.settings()
The project's quest log settings from System.json, with defaults.
trackerSettings
static sourceReactorQuests.trackerSettings(raw)
The on-map tracker's settings (System.json reactorQuests.tracker), with defaults.
normalizeTracker
static sourceReactorQuests.normalizeTracker(raw)
Normalize tracker.
logMode
static sourceReactorQuests.logMode()
The game's log: "visustella" only when it was chosen and the plugin is running.
visustellaRunning
static sourceReactorQuests.visustellaRunning()
Visustella running.
keyOf
static sourceReactorQuests.keyOf(quest)
A quest's key in VisuStella's list: its own, or one made from its id (the editor writes the same).
mirror
static sourceReactorQuests.mirror(quest, apply)
Run apply(key, $gameSystem) against VisuStella's log when it is the game's.
categoriesOf
static sourceReactorQuests.categoriesOf(quests)
The category names in the order they first appear among the given quests.
rewardItem
static sourceReactorQuests.rewardItem(reward)
The database record an item, weapon or armor reward names.
rewardGives
static sourceReactorQuests.rewardGives(reward)
Whether a reward gives something when it is given, not only text.
rewardAmount
static sourceReactorQuests.rewardAmount(reward)
Reward amount.
rewardText
static sourceReactorQuests.rewardText(reward)
A reward's line in the log: its own text, or what it gives when it has none.
compare
static sourceReactorQuests.compare(actual, operator, wanted)
Compare.