Reset map tile-based Battleback data to default

Beregon

Veteran
Veteran
Joined
Aug 25, 2020
Messages
92
Reaction score
58
First Language
Czech
Primarily Uses
RMMZ
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?
 

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
378
Reaction score
351
First Language
german
Primarily Uses
RMMZ
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)
 

Beregon

Veteran
Veteran
Joined
Aug 25, 2020
Messages
92
Reaction score
58
First Language
Czech
Primarily Uses
RMMZ
Thanks, I'll try it!

Alright, worked like a charm, thank you so much!
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,096
Members
137,587
Latest member
Usagiis
Top