MV How does the map pick a battleback?

Is there a hardcoded list of filenames? Is it in the terrain text file? If I wanted to change what battlebacks I use, would I just replace the file?
Edit: Looks like Robro had a better guess at what you meant to say.


The map doesn't pick anything. You select it, otherwise it's just not going to have one, and will use that blurry screenshot of the map.
1751525644399.png


If you want to change the battleback via an event, there's a command for that.

1751525732244.png


To use your own battleback images, just place them into either one of the img/battlebacks folders. If you got a split image like the default ones do, put one file into 1 and one file into 2.

1751525805840.png
They might be referring to the behavior of overworld maps? Overworld maps do have an added functionality of being able to change battlebacks based on the tile the player is on if the battlebacks for the map wasnt explicitly selected in the editor

@pawsplay
If thats the case, search sprites.js and look around the Spriteset_Battle functions for terrainBattleback1Name. Everything should be around there
It is probably similar in MV, but in MZ the battleback on the world map depends on the tile where the player is during the encounter.

Example in MZ, you can probably find the same kind of code in MV:


Code:
Sprite_Battleback.prototype.terrainBattleback1Name = function(type) {
    switch (type) {
        case 24:
        case 25:
            return "Wasteland";
        case 26:
        case 27:
            return "DirtField";
        case 32:
        case 33:
            return "Desert";
        case 34:
            return "Lava1";
        case 35:
            return "Lava2";
        case 40:
        case 41:
            return "Snowfield";
        case 42:
            return "Clouds";
        case 4:
        case 5:
            return "PoisonSwamp";
        default:
            return null;
    }
};
That's pretty interesting. I notice it picks vehicle battlebacks, and it knows about some things like forests or clouds. So, it looks like i would just over-write the named files.

I may end up doing battleback by region anyway, but this is kind of nifty.
If you're interested in changing it, Turan already has a plugin to make that whole system more flexible

Original thread: https://forums.rpgmakerweb.com/threads/how-does-the-map-pick-a-battleback.178693/