I want my game to automatically load the last save file after the player's death without making him go through the title screen or load the save file menu.
My problem is that this script doesn't work for me, since it fails to load several plugin commands for some reason.
if (DataManager.loadGame(1))
{
$gamePlayer.reserveTransfer($gameMap.mapId(),
$gamePlayer.x, $gamePlayer.y);
$gamePlayer.requestMapReload();
SceneManager.goto(Scene_Map);
}
I could use this one, which works absolutely fine, but it makes the player select the save file which I don't want him to do. It has to be automatic.
SceneManager.push(Scene_Load);
So is there any other way to forcefully load a save file or somehow fix the first script?
My problem is that this script doesn't work for me, since it fails to load several plugin commands for some reason.
if (DataManager.loadGame(1))
{
$gamePlayer.reserveTransfer($gameMap.mapId(),
$gamePlayer.x, $gamePlayer.y);
$gamePlayer.requestMapReload();
SceneManager.goto(Scene_Map);
}
I could use this one, which works absolutely fine, but it makes the player select the save file which I don't want him to do. It has to be automatic.
SceneManager.push(Scene_Load);
So is there any other way to forcefully load a save file or somehow fix the first script?