MV Script Call Save/Load

I wanted to make the game save and through using an event and avoid the save menu altogether. I looked on and on to figure out how to use a Script Call to Save when activating an event and also have a different event Load when it is activated.

Examples: The player goes to a crystal and activates it, then it asks if you want to Save. When you use the option "Yes", it automatically saves the file without opening the save menu ever. It will just automatically save to the first Save Slot.

Likewise, the player can touch a different crystal and it asks if you want to Continue. When you use the option "Yes", it automatically loads the first Save Slot.

I understand how to use Script Call, but I cannot seem to get it to call to Save or Load from the first save slot.
if you want a single save slot, its best to use a single save slot
and continue to do do. (you can use events between the 2 if you use
an event if an savefile exist).

pure event it can give trouble with it.

TSR_Save is a maybe to much, but the auto save feature by plugin command
is useful, as well it has a single save slot option.

the feature it also have is to start from a save file, using this can also
continue directly when selecting on continue without going to scene_load.

there are some free plugins as well with only a autosave feature, but automatic
load feature isn't probably there.

I would recommend a plugin to do those features in a simple way so it wont
crash or fail.
if you want a single save slot, its best to use a single save slot
and continue to do do. (you can use events between the 2 if you use
an event if an savefile exist).

pure event it can give trouble with it.

TSR_Save is a maybe to much, but the auto save feature by plugin command
is useful, as well it has a single save slot option.

the feature it also have is to start from a save file, using this can also
continue directly when selecting on continue without going to scene_load.

there are some free plugins as well with only a autosave feature, but automatic
load feature isn't probably there.

I would recommend a plugin to do those features in a simple way so it wont
crash or fail.
If there is an autosave feature then it must be safe to do the exact same thing the autosave feature does without all the extra stuff I just don't need.
extract it might be a bit harder as it require other code in there to be extracted
as well targetting it.
there is a stand alone on that from someone else.

but you need more code to get the savefile ID or latest to make it work fully.
if you know js, you could try, or find the stand alone autosave feature.

there should be 2 very easy one on that part, but not on the loading part.
extract it might be a bit harder as it require other code in there to be extracted
as well targetting it.
there is a stand alone on that from someone else.

but you need more code to get the savefile ID or latest to make it work fully.
if you know js, you could try, or find the stand alone autosave feature.

there should be 2 very easy one on that part, but not on the loading part.

So, I found THIS thread and @Meremem was able to send me down the right path with his code.
JavaScript:
$gameSystem.onBeforeSave();
DataManager.saveGame( DataManager.lastAccessedSavefileId() );

With changing the bottom script with saveGame and then putting the save slot number in the parenthesis I got the game to save without opening the Save Screen.
JavaScript:
$gameSystem.onBeforeSave();
DataManager.saveGame(1);

That solved half my problem. Now I just need to figure out how to get the game to check IF there is a save file and if there is, I should be able to activate the event to load the save file (1).
that part alone wont really do much, as if you only have 1 slot, you want
the dataManager lastAccessedSavefileId.

there is also 1 in scene_load which you want to clean it before saving.
the problem is, when using evented save on choice "save/load" you
always see this this window first, so you must close it before it actually
save the game.

if you want a bit cleaner way, try this plugin which has save, load.

as you need more code to pull the evented way through.
you can check this video how he did that.

but there are downsides that wont really work out for more save files 😉

Original thread: https://forums.rpgmakerweb.com/threads/script-call-save-load.163722/