Hello! I have a problem that hopefully can get solved by a simple plugin.
TLDR, the plugin just needs to do the following:
"If Player loads File 99, load File 1 instead of File 99"
For more context and why I need this to begin with, here is my situation:
My game has two save files, 1 and 99. 1 is the save file the player uses to save the game automatically, while 99 is an autosave file I use to store global variables that stay the same across saves (I use Mr. Trivels GlobalSaveData plugin for this). Whenever I want to autosave, I use the script call "DataManager.saveGame(99)". If the player chooses file 1 in the load screen by either clicking it or pressing down/up before pressing Z/Space/Enter, everything works perfectly. However, if the player just presses space on the load screen, it automatically loads the last save, which in this case is file 99, even though this file is not visible to the player (I made every save after 1 invisible to the player by using "DataManager.maxSavefiles = function() { return 1; };" as a plugin). This confuses the players, since they want to load their last manual save and not my autosave. I believe the easiest way to solve this is to make File 99 not loadable by automatically making it load File 1 if the player chose to load File 99.
I hope everything is clear, please let me know if it isn't. Thanks in advance!
TLDR, the plugin just needs to do the following:
"If Player loads File 99, load File 1 instead of File 99"
For more context and why I need this to begin with, here is my situation:
My game has two save files, 1 and 99. 1 is the save file the player uses to save the game automatically, while 99 is an autosave file I use to store global variables that stay the same across saves (I use Mr. Trivels GlobalSaveData plugin for this). Whenever I want to autosave, I use the script call "DataManager.saveGame(99)". If the player chooses file 1 in the load screen by either clicking it or pressing down/up before pressing Z/Space/Enter, everything works perfectly. However, if the player just presses space on the load screen, it automatically loads the last save, which in this case is file 99, even though this file is not visible to the player (I made every save after 1 invisible to the player by using "DataManager.maxSavefiles = function() { return 1; };" as a plugin). This confuses the players, since they want to load their last manual save and not my autosave. I believe the easiest way to solve this is to make File 99 not loadable by automatically making it load File 1 if the player chose to load File 99.
I hope everything is clear, please let me know if it isn't. Thanks in advance!