Saving without choosing file

Hey everyone! I don't really know if this would require a plugin, so I'm asking here.

I would like to know if there's a way to make the game save in the file that's currently loaded, so the ''select save slot'' menu is completely skipped. For example: You load file 2. In game, there's a campfire that, when used, would save the game in file 2, the current one. If you loaded file 3, it would save in file 3 etc.

Thanks for the attention!
I'm working on a Perma Death plugin that also supports save locking, as described in your post. In case no one else finds a good solution right now, I could extend my plugin to enable save locking while not auto-removing it on game over.

Hey everyone! I don't really know if this would require a plugin, so I'm asking here.

I would like to know if there's a way to make the game save in the file that's currently loaded, so the ''select save slot'' menu is completely skipped. For example: You load file 2. In game, there's a campfire that, when used, would save the game in file 2, the current one. If you loaded file 3, it would save in file 3 etc.

Thanks for the attention!
If you're using MV, then you can use this script.
Code:
$gameSystem.onBeforeSave();
if(DataManager.saveGame(1)) {
   StorageManager.cleanBackup(1);
}
That will save your game to file 1.
I think you can do the system that you want without any plugins, just by using events and scripts. This one will come in handy i think. It will load the file.
Code:
if (DataManager.loadGame(1)) {
    $gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
    $gamePlayer.requestMapReload();
    SceneManager.goto(Scene_Map);
    $gameSystem.onAfterLoad();
}
If you're using MV, then you can use this script.
Code:
$gameSystem.onBeforeSave();
if(DataManager.saveGame(1)) {
   StorageManager.cleanBackup(1);
}
That will save your game to file 1.
I think you can do the system that you want without any plugins, just by using events and scripts. This one will come in handy i think. It will load the file.
Code:
if (DataManager.loadGame(1)) {
    $gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
    $gamePlayer.requestMapReload();
    SceneManager.goto(Scene_Map);
    $gameSystem.onAfterLoad();
}
Thanks for your help!

That could work pretty nicely, but I would need a way to make the game check which file is currently loaded. For example storing the save file number in a variable, so I can know which file should the script call override.
Thanks for your help!

That could work pretty nicely, but I would need a way to make the game check which file is currently loaded. For example storing the save file number in a variable, so I can know which file should the script call override.
I'm not sure if there is a script to make the game check what file exactly is loaded, but there is a script that you can use in conditional branch to check if that file even exists. In combination with if/else conditional branches and variables to set what file is that at the creation of the new file that should do the job i think.
Code:
StorageManager.exists(1)
I'm not sure if there is a script to make the game check what file exactly is loaded, but there is a script that you can use in conditional branch to check if that file even exists. In combination with if/else conditional branches and variables to set what file is that at the creation of the new file that should do the job i think.
Code:
StorageManager.exists(1)
I think I can make it work now! I'm gonna try it. Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/saving-without-choosing-file.161399/