Any way to change battle transition?

Hi everyone. I've been using VX ace for a while and i'm starting with MV now. The thing i wanted to do was to make different battle transitions, for example one for random fights and a different one for boss fights. I suppose this has to be done via script/plugin right?

Thanks in advance.
Hi everyone. I've been using VX ace for a while and i'm starting with MV now. The thing i wanted to do was to make different battle transitions, for example one for random fights and a different one for boss fights. I suppose this has to be done via script/plugin right?

Thanks in advance.
It certainly would need to be done via a plugin

You'd have to override this in rpg_scenes.js:

Code:
Scene_Map.prototype.startEncounterEffect = function() {
    this._spriteset.hideCharacters();
    this._encounterEffectDuration = this.encounterEffectSpeed();
};

Scene_Map.prototype.updateEncounterEffect = function() {
    if (this._encounterEffectDuration > 0) {
        this._encounterEffectDuration--;
        var speed = this.encounterEffectSpeed();
        var n = speed - this._encounterEffectDuration;
        var p = n / speed;
        var q = ((p - 1) * 20 * p + 5) * p + 1;
        var zoomX = $gamePlayer.screenX();
        var zoomY = $gamePlayer.screenY() - 24;        
        if (n === 2) {            
            $gameScreen.setZoom(zoomX, zoomY, 1);
            this.snapForBattleBackground();
            this.startFlashForEncounter(speed / 2);
        }

    $gameScreen.setZoom(zoomX, zoomY, q);
    if (n === Math.floor(speed / 6)) {
        this.startFlashForEncounter(speed / 2);
    }

    if (n === Math.floor(speed / 2)) {
        BattleManager.playBattleBgm();
        this.startFadeOut(this.fadeSpeed());
    }
}};
Alternatively override this in rpg_scenes.js:

Scene_Map.prototype.launchBattle = function() { BattleManager.saveBgmAndBgs(); this.stopAudioOnBattleStart(); SoundManager.playBattleStart(); this.startEncounterEffect(); this._mapNameWindow.hide();};And do something like

this.startEncounterEffectBattle1(); for one encounter type and this.startEncounterEffectBattle2(); for another.
Thanks a lot mate. It will help a lot.

Original thread: https://forums.rpgmakerweb.com/threads/any-way-to-change-battle-transition.47225/