Here's the thing.
I have a common event at the begining of my game that declares a bunch of variables through script that are used in the game. They are declared in the following format:
Window.VARNAME = 0;
These variables are accessed and changed many times in the game.
My problem regards saving/loading the game.
If I save a game, load it and try to access VARNAME, it doesn't recognize the variable. If I call the common event that declares the variables again, it resets all variables.
How can I store the values of these variables in the save file?