Autosave

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);
If it was me, I would want to have the option to control what block it saved too.


I'd just set a player touch event and have it call the save scene with the above script call from Engr. Adiktuzmiko


                                              
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..
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..



And if he quits the game, reopens it and choose new game instead of loading the old save? If he did that then the game will remember the old save file and as such your check will return that file. 


That's your problem here right?

Even if I do new game, that will return the last saved game.



Well, if you simply want to check if a "new game" run already used a save or not, then you can always just use a switch... When you make a save, turn on that switch (set to true) then check that switch on your autosave. You'd need to write a snippet plugin for that switch to ON thing though
@Silenity 


Please don't attempt to hijack someone else's thread with your own question.


If you want to sort out that particular problem, start your own thread.

Original thread: https://forums.rpgmakerweb.com/threads/autosave.64129/