Amend default autosave functions

I'm going to be moving to MZ, I think, but would like some clarity about how MZ does certain things.

Autosave: the default behaviour is to save after each battle and when the player changes maps.
I would like to remove the save after each battle (too many ways for that to lead to disaster) and only have it when the player changes maps.

How do I do that?
Thanks.
If you will use Visustella plugins:
http://www.yanfly.moe/wiki/Save_Core_VisuStella_MZ#Autosave_Settings

From rmmz_scenes.js:
Code:
// Battle auto-save.
Scene_Battle.prototype.terminate = function() {
    Scene_Message.prototype.terminate.call(this);
    $gameParty.onBattleEnd();
    $gameTroop.onBattleEnd();
    AudioManager.stopMe();
    if (this.shouldAutosave()) {
        this.requestAutosave(); // Remove this line.
    }
};

// Map transfer auto-save.
Scene_Map.prototype.onTransferEnd = function() {
    this._mapNameWindow.open();
    $gameMap.autoplay();
    if (this.shouldAutosave()) {
        this.requestAutosave();  // Remove this line.
    }
};
@NaosoX Thanks
Welcome 🙂
@NaosoX As I am totally new to MZ can you just clarify something for me.

The piece of code that you edited into your original reply - is that as well as the VS plugin, or instead of?
@Kes VS has their plugin obfuscated, so it's hard to modify that plugin
at all or any of VS plugin.

I dont like autosave in general for many reasons though, as it gives
more trouble.

either fixed point to request a save or player can save where they want
or on specific points.
@Kes if you use Visustella, you don't need to worry about anything else.

I gave reference to the core script rmmz_scenes.js
And what line calls save function.
If you choose to not use Visustella, how you make use of the information is up to you.


@ShadowDragon VS has left a lot of flexibility open for the user to customise and modify things.
Technically, you can leave autosave on.. but change plugin parameters to not call save on any of the listed autosave points, then call requestAutosave() when you need it.
I'll also mention that save core has plugin commands to force save/autosave.
@ShadowDragon Thanks for the clarification on VS obfuscation. My players can save anywhere in all my games. The autosave is there as the fallback failsafe. A game can crash, there might be a power cut, the player (precisely because they can save anywhere) might have saved themselves into something they regret. In all those cases (and more) autosave on map entry means that the player can pick up the game again without losing too much if their own save is either too far back, or disadvantageous.

@NaosoX thanks for the clarification. And your reply to ShadowDragon added to my knowledge of the plugin. Because I have yet to start a MZ project (I only released my last game 2 weeks ago) everything is new for me.
@ShadowDragon Thanks for the clarification on VS obfuscation. My players can save anywhere in all my games. The autosave is there as the fallback failsafe. A game can crash, there might be a power cut, the player (precisely because they can save anywhere) might have saved themselves into something they regret. In all those cases (and more) autosave on map entry means that the player can pick up the game again without losing too much if their own save is either too far back, or disadvantageous.

@NaosoX thanks for the clarification. And your reply to ShadowDragon added to my knowledge of the plugin. Because I have yet to start a MZ project (I only released my last game 2 weeks ago) everything is new for me.
Glad to be of help.

Original thread: https://forums.rpgmakerweb.com/threads/amend-default-autosave-functions.147548/