Hello! My game has only one save slot. I know how to save to specific save slot via scripts, but I couldn't find a way to load the slot I want via a script. I don't use any plugins. I tried to use this script:
but for some reason i get "Cannot read property 'pages' of undefined". Can someone help me please?
Code:
if (DataManager.loadGame(1)) {
$gameSystem.onAfterLoad();
SceneManager._scene.fadeOutAll();
if ($gameSystem.versionId() !== $dataSystem.versionId) {
var p = $gamePlayer;
p.reserveTransfer($gameMap.mapId(), p.x, p.y, p.direction(), 0);
p.requestMapReload();
}
SceneManager.goto(Scene_Map);
}