Need help one last time(i hope)

Lately ive bin wokring on a plugin. Got it even to a point where i can say it does everything i want it to be able too.

if not for one thing.

Ingame changes made cant be rememberd after you shutdown the game.

Ive got my variables from the plugin:

var Enabled1 = parameters['Enabled 1'];

var Enabled2 = parameters['Enabled 2'];

var Enabled3 = parameters['Enabled 3'];

In the plugin ive set Enabled1 to true, 2 to false and 3 to true.

Now at some point i will want to set Enabled2 to true by using PluginCommands:

if(command == 'Act2')

{

  Enabled2 = true

}

But when i restart the game is has forgotten that Enabled2 was set to true.

Supposedly i can change that with Game_System.

Just dont know how. Can someone tell me.
Please use meaningful thread titles - something that refers in some way to the question you are about to ask.
When people say to use $gameSystem, I find it to be very messy, but it is a lot quicker/easier. Basically, when you save your game, every variable that has been assign to the $gameSystem object gets saved too. So if you do somehting like:

$gameSystem.MY_PLUGIN = {};$gameSystem.MY_PLUGIN.Enabled1 = Enabled1// etc...for example, then when the game saves, it'll keep the MY_PLUGIN object in the save file data. Then when the game loads up you can just read the values you need.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-one-last-time-i-hope.54847/