Why do you need it scripted? anyway hmmm.. There is this wonderful page which has the equivalent JS call for all the event commands
Anyway, for the specific query
SceneManager.push(Scene_Save);
Curently I have:
if(DataManager.latestSavefileId()===0){
SceneManager.push(Scene_Save);}
else{
$gameSystem.onBeforeSave();
DataManager.saveGame(DataManager.latestSavefileId());
}
Unfirtunatly, if any previous save exist ===0 dont work.Even if I do new game, that will return the last saved game. Any idea to kbow if on the curent game a sve exist?
Save games are common to all playthru's of the game, you can't have a save game binded to a specific execution of the game... Else you won't even be able to load once you quit the game as the next execution will have a different set of saves...
If you want to do it this way, you need to find a plugin that will allow you to have saved games binded to for example an "account" or something to determine which set of saves you want to use...
Its not the point, the reason I do that it's for a level reset, it's the most easy way.
So the game load back at the start of the level.
User is not blinded at all...
If no save was used from the start of the game that will ask me witch save to use.
If he use one, that will use the same one.
If he decide to save on a new slot, that will save on this new one, etc..