I noticed that in the default world map tileset the battle background change automatically.
I wanna know where this information is stored in the editor or the folder, because it would be nice to change also for the other tilesets.
I don't know about the other versions, but this is how VX Ace does it:
First you need to use a tileset with the mode set to "Field Type". (Database, Tilesets, under the Name)
The rest of it is done in the scripts, as part of Spriteset_Battle, about 1/3 down you'll see a bunch of functions for setting the battlebacks.
These are the functions you'll want to edit:
#-------------------------------------------------------------------------- # * Get Filename of Battle Background (Floor) Corresponding to Terrain #-------------------------------------------------------------------------- def terrain_battleback1_name(type) case type when 24,25 # Wasteland "Wasteland" when 26,27 # Dirt field "DirtField" when 32,33 # Desert "Desert" when 34 # Rocks "Lava1" when 35 # Rocks (lava) "Lava2" when 40,41 # Snowfield "Snowfield" when 42 # Clouds "Clouds" when 4,5 # Poisonous swamp "PoisonSwamp" end end #-------------------------------------------------------------------------- # * Get Filename of Battle Background (Wall) Corresponding to Terrain #-------------------------------------------------------------------------- def terrain_battleback2_name(type) case type when 20,21 # Forest "Forest1" when 22,30,38 # Low hill "Cliff" when 24,25,26,27 # Wasteland, dirt field "Wasteland" when 32,33 # Desert "Desert" when 34,35 # Rocks "Lava" when 40,41 # Snowfield "Snowfield" when 42 # Clouds "Clouds" when 4,5 # Poisonous swamp "PoisonSwamp" end endThe "type" is the index of the autotile the player is standing on (will be "-1" if standing on a non-autotile).
0-15 is A1
16-47 is A2
48-79 is A3
80-127 is A4
(A5 are not autotiles)