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?
MV How does the map pick a battleback?
RPG Maker MV SupportEdit: 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.
If you want to change the battleback via an event, there's a command for that.
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.
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.
If you want to change the battleback via an event, there's a command for that.
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.
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
@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:
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.
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
forums.rpgmakerweb.com
Dynamic Battlebacks (MV/MZ)
Dynamic Battlebacks 1.0 ATT_Turan Introduction This plugin was inspired by a request from @werzaque about the hardcoded battlebacks on world maps. I have tested the basic functionality, please let me know if you encounter any errors. I will consider making compatibility patches if the other...
forums.rpgmakerweb.com
Original thread: https://forums.rpgmakerweb.com/threads/how-does-the-map-pick-a-battleback.178693/