Namespace in reactor_quests.js

ReactorQuests

23 functions in 5 groups · hide internal

The in-game character creator.

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 source
ReactorQuests.load()

Loads the quests file once; missing or malformed means none.

Getting Information

find

static source
ReactorQuests.find(idOrKey)

A quest by numeric id or by its key.

text

static source
ReactorQuests.text(key)

The log's own labels, replaceable per project from System.json.

Checks (True / False)

isReady

static source
ReactorQuests.isReady()

Whether it is ready.

Actions

applyReward

static source
ReactorQuests.applyReward(reward)

Applies the reward.

addMenuCommand

static source
ReactorQuests.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 source
ReactorQuests.takeOpenOn()

Take open on.

Other

featureOn

static source
ReactorQuests.featureOn()

Whether the game uses Reactor's quests (Database > Reactor Features; a quest plugin may do the job instead).

quests

static source
ReactorQuests.quests()

Quests.

settings

static source
ReactorQuests.settings()

The project's quest log settings from System.json, with defaults.

trackerSettings

static source
ReactorQuests.trackerSettings(raw)

The on-map tracker's settings (System.json reactorQuests.tracker), with defaults.

normalizeTracker

static source
ReactorQuests.normalizeTracker(raw)

Normalize tracker.

menuEnabled

static source
ReactorQuests.menuEnabled()

Whether the main menu offers Reactor's quest log: it is the game's log, the command is on, and there is something to show.

logMode

static source
ReactorQuests.logMode()

The game's log: "visustella" only when it was chosen and the plugin is running.

visustellaRunning

static source
ReactorQuests.visustellaRunning()

Visustella running.

keyOf

static source
ReactorQuests.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 source
ReactorQuests.mirror(quest, apply)

Run apply(key, $gameSystem) against VisuStella's log when it is the game's.

categoriesOf

static source
ReactorQuests.categoriesOf(quests)

The category names in the order they first appear among the given quests.

rewardItem

static source
ReactorQuests.rewardItem(reward)

The database record an item, weapon or armor reward names.

rewardGives

static source
ReactorQuests.rewardGives(reward)

Whether a reward gives something when it is given, not only text.

rewardAmount

static source
ReactorQuests.rewardAmount(reward)

Reward amount.

rewardText

static source
ReactorQuests.rewardText(reward)

A reward's line in the log: its own text, or what it gives when it has none.

compare

static source
ReactorQuests.compare(actual, operator, wanted)

Compare.