[SOLVED] How $dataQuests is saved (to file) on YEP Quest System Plugin?

Hi there.

I'm using Quest Journal System from Yanfly. When I save the game and then loaded it again: The quests are there, the same way it was before the saving. BUT, analyzing the plugin's code itself, I didn't see any line that says "Save $dataQuests content to the save file."

http://yanfly.moe/2017/10/13/yep-152-quest-journal-system-rpg-maker-mv/
http://yanfly.moe/plugins/en/YEP_QuestJournal.js

Why I'm looking for this? I'm trying to make the Quests to be saved/loaded on a JSON file*, as a test for myself on learning how to make plugins. But when I didn't find how the quests are saved on the game I felt like it's a bad start on my first attempt to code something.

Here is a print showing every $dataQuests mention on the plugin:
Spoiler
XYZhwVN.png

*: I'm thinking in save the Quests in a file like Actors.json on Data folder. And then, maybe create a web editor to create/edit Quests. Wish me luck.
Like the default $dataActors, $dataItems, etc, $dataQuests serves only as a static reference. As you've noticed, the array itself is drawn and parsed from the plugin's parameters (plugins.js) rather than a data file like the default $dataX objects:
Spoiler: DataManager.questDatabaseCreate
Code:
DataManager.questDatabaseCreate = function() {
  $dataQuests = [null];
  for (var i = 1; i <= 100; ++i) {
    var questData = JSON.parse(Yanfly.Parameters['Quest ' + i] || 'null');
    if (!questData) continue;
    this.questDatabaseAdd(i, questData);
  };
};
The actual quest progression data is stored under $gameSystem, an object already included in save files. C.f.
Code:
Game_System.prototype.getAllQuests = function() {
  this.initQuestSettings();
  return this._questsKnown;
};
Thanks @caethyril

I get it now.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-how-dataquests-is-saved-to-file-on-yep-quest-system-plugin.110330/