Storing Players Decisions

Hello!

I am currently working in a plugin to store player's choices. This plugin must be able to store all the player's decisions during events in a database or a json or in any other format than can be accessed from outside the game.

Does anyone know how to get the player's decisions outside the event?

THanks in advance
I'd say the best place to start is Game_Message. I'm not sure which value you're trying to store. If you're trying to store the index I would suggest looking at Game_Message.prototype.onChoice

Code:
Game_Message.prototype.onChoice = function(n) {
    if (this._choiceCallback) {
        this._choiceCallback(n);
        this._choiceCallback = null;
    }
};

n is the index of the choice. I'm not in a position to play around with the anything but I would assume you can get the text that's stored in the choice by using the line

Code:
this._choices[n]
Why not have the choices linked to variables or switches?
For example if you have 4 choices, you connect them to a variable that changes from 1-4 depending on the choice you select or if you have a yes or no kinda choice you just make it turn a switch on or off.
And then they can be accessed through the save files right?
You can just have a autosave file which keeps updating at specific points or something like that and the variables and switches are visible in it, outside of the game.
Why do you need to access them from outside the game? Doing some sort of save import thing?

Original thread: https://forums.rpgmakerweb.com/threads/storing-players-decisions.113939/