All encounter instances in code that points to Scene_Battle?

So far I got the random encounter to set to my own battle scene....
But its all I could find.
Code:
Scene_Map.prototype.updateEncounter = function() {
// go to my new one.
}

but where are the rest of them located?

For example:
When I do
event editor > Battle Processing....
This makes it go to the original Battle Scene.

Where do I change it so that it goes to my version of the battle scene?


Now I could just override battle scene and be done with it but....
Might as well learn more stuff doing it this way.

Any help would be appreciated.
Just look for every instance of Scene_Battle in all of the rpg_xxxx.js files.

It's called during Scene_Boot.start() for test battles
JavaScript:
Scene_Boot.prototype.start = function() {
    Scene_Base.prototype.start.call(this);
    SoundManager.preloadImportantSounds();
    if (DataManager.isBattleTest()) {
        DataManager.setupBattleTest();
        SceneManager.goto(Scene_Battle);

Inside Game_Interpreter.command301() for battles triggered via events
JavaScript:
// Battle Processing
Game_Interpreter.prototype.command301 = function() {
    if (!$gameParty.inBattle()) {
        var troopId;
        if (this._params[0] === 0) {  // Direct designation
            troopId = this._params[1];
        } else if (this._params[0] === 1) {  // Designation with a variable
            troopId = $gameVariables.value(this._params[1]);
        } else {  // Same as Random Encounter
            troopId = $gamePlayer.makeEncounterTroopId();
        }
        if ($dataTroops[troopId]) {
            BattleManager.setup(troopId, this._params[2], this._params[3]);
            BattleManager.setEventCallback(function(n) {
                this._branch[this._indent] = n;
            }.bind(this));
            $gamePlayer.makeEncounterCount();
            SceneManager.push(Scene_Battle);
        }
    }
    return true;
};

and during Scene_Map.updateEncounter() for random battles
JavaScript:
Scene_Map.prototype.updateEncounter = function() {
   if ($gamePlayer.executeEncounter()) {
       SceneManager.push(Scene_Battle);
   }
};
I thought I searched all the files but I might have selectively chosen files trying to find where I would expect them.... my bad.

But the second one is the one I was looking for thanks!
Everything you do with event commands is in the Game_Interpreter class, found at the bottom of rpg_objects.js - a very interesting class to look through to get a feel for "how things work"

Original thread: https://forums.rpgmakerweb.com/threads/all-encounter-instances-in-code-that-points-to-scene_battle.116632/