Custom variables and Global Save System

Hello, everybody.


I'm using the precious Global Save System script by theLEECH (you can find it here) and I really need to have a custom variable (not one of the $game_variables but $myVariable) saved in the global save file. I already tried to avoid this by using a default variable, but it somehow resets itself to 0 when I enter the second map of the game, so the custom variable is the onyl chance I see.


Can anyone help me find a way to store $myVariable directly in the global save file?
Thank you in advance for your help 🙂


P.S.: if you have an idea about why $myVariable is mysteriously reset and want to investigate, I can tell you that $myVariable is an array. 
I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Scripts is for presenting scripts you wrote yourself

Original thread: https://forums.rpgmakerweb.com/threads/custom-variables-and-global-save-system.71655/