I want when the player chooses to save it'll automatically choose the first save slot (without any save screen popping up), and when choosing load it will load that save without the load screen.
One save and load without screen.
JS Plugin RequestsI've never tested it, but according to the script call list https://forums.rpgmakerweb.com/index.php?threads/rpg-maker-mv-script-call-list.46456/
To create a save....
$gameSystem.onBeforeSave();
if (DataManager.saveGame(index)) {
StorageManager.cleanBackup(index);
}
Index is the save slot in question.
To load a save...
if (DataManager.loadGame(index)) {
$gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
$gamePlayer.requestMapReload();
SceneManager.goto(Scene_Map);
}
To create a save....
$gameSystem.onBeforeSave();
if (DataManager.saveGame(index)) {
StorageManager.cleanBackup(index);
}
Index is the save slot in question.
To load a save...
if (DataManager.loadGame(index)) {
$gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
$gamePlayer.requestMapReload();
SceneManager.goto(Scene_Map);
}
Well I tested it and it works perfectly so far. Thank you for your help
Awesome, glad to hear it!
Original thread: https://forums.rpgmakerweb.com/threads/one-save-and-load-without-screen.116265/