Reset map tile-based Battleback data to default

So, I've discovered that if you don't set a specific Battleback for your map, the battleback is chosen based on which tile you were on when you triggered the battle. So if you were on a forest tile, you get the Forest+Grassland battleback, if you were on sand, you get the desert background.

Atleast, that's how it works with the Overworld tileset.

However, if you use an event to change the battleback to a specific one (say, for a boss encounter on the world map), then there doesn't seem to be any way to reset the functionality back to the default one? Meaning, no tile-based battlebacks anymore. Setting it to None just means theres no Battleback at all like in MV.

Is there a way to reset this back to the default functionality after changing it through events, say via a script call?
Oh my god, does this old function still exist? I think, this is some artifact from the old RPG Maker 2000 where we could setup battlebacks for each region. I just looked it up, in MZ this auto-select of the battlebacks, is hardcoded in the JS and the Maker doesnt provide any buttons or menus to change it.

So scanning the code I found out, to have auto-select Battlebacks
- the Player must be on an overworld Map, ie. in the Tileset menu of the Database, set the mode to Overworld. Obviously you did, but if any other dev arrives here..
- I haven't tested it, but running this JS Code snippet should switch back to auto-select Battlebacks

JavaScript:
$gameMap.changeBattleback(null, null)
Thanks, I'll try it!

Alright, worked like a charm, thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/reset-map-tile-based-battleback-data-to-default.126130/