Create a variable (option setting) independent of save files

I do run a common event when starting a new game/ loading an existing game. In this common event I want to check a variable and if that variable is "1", the code fires.

if (fst === 1) {

Graphics._requestFullScreen();
}

I am using Yanfly Options core and I want to set var fst = 1, when cursor is moved to the right. And var fst = 0, when cursor is moves to the left. The problem is that $gameVariables are stored inside save files. So I need to create a variable that is independent of save files and i don't know how to do that.

I tried: cursor right code: graphics._fst = 1;
common event code:
var fst = graphics._fst;
if (fst === 1) {
Graphics._requestFullScreen();
}

That worked only if I changed the option before launching a new/existing game. So whatever i did there didnt work after restarting the client.

I tried the same with

ConfigManager._fst = 1;
the results were the same.

Olivia_MetaControls gives me an error, when using another more important plugin. "'match' is undefined".
it's called "persistent variables".
if you search for that term you should find two or three plugins for that.
it's called "persistent variables".
if you search for that term you should find two or three plugins for that.
I was hoping for a solution that does not require a plugin since it is probably just a few coding lines that I am missing. And also because the Olivia_MetaControls didn't work for me.
even a few coding lines are better entered by plugin than by editing the core files for several reasons.

and your wish can't be done with a few lines.

GameVariables are NOT defined on program launch but on NewGame.
And all default saves are encapsuled there as well.

so you either need a plugin to rewrite the way the game variables are handled, OR you need a way to store data outside the savefiles.
both cases are more than a few lines of code.
even a few coding lines are better entered by plugin than by editing the core files for several reasons.

and your wish can't be done with a few lines.

GameVariables are NOT defined on program launch but on NewGame.
And all default saves are encapsuled there as well.

so you either need a plugin to rewrite the way the game variables are handled, OR you need a way to store data outside the savefiles.
both cases are more than a few lines of code.
I thought maybe I can create an Object or a Class (my Javascript is bad) put a variable in it and check for it within a common event.
So, coincidentally, I had a similar problem not so long ago, and so the coincidence is that just today I updated my old thread with the solution. You should take a look through it to see if it helps. I know I saw you post in this thread saying Olivia's plugin didn't work, but I would try to figure out why, because it's kind of important for this.

Anyways, here's my thread, it has all the code you need.
Thread

edit:
wrong link. Fixed.
I thought maybe I can create an Object or a Class (my Javascript is bad) put a variable in it and check for it within a common event.
yes, but how do you store and load that data when you exit the program and restart?
THAT is the problem, not creating the data.

Original thread: https://forums.rpgmakerweb.com/threads/create-a-variable-option-setting-independent-of-save-files.149775/