This script allows you to separate your map into separate “map regions”.
Each region can be treated as a separate section of the map, with their own names, music, and battlebacks.
When you move from one region to another, the new region’s name will be
used and the new region’s music will be played.
Script: download here
In the script editor, install this script below Materisls and above Main
To create a map region, note-tag the map with
The following options are available. You do not need to include all of them.
name - the name of the region bback1 - name of the file for the floor battleback bback2 - name of the file for the wall battleback bgm - the BGM to play when you move into this region bgs - the BGS to play when you move into this region fade - the fade duration for the previous BGM in milliseconds common_event - the ID of the common event to run
When a region name is specified, the name of the map is changed to the region name. The map name window will also be shown automatically when you move into a new region.
To enable region battlebacks, you need to first check the “specify battleback”
box for the map.
You can specify the volume and pitch of the music files if needed. These are specified as percentages, where 100 means 100% volume/pitch, and 50 means 50% volume/pitch.
The fade duration is specified in milliseconds. Therefore, if you want the music to fade out for a second, you would write 1000.
For the common event, if you need access to the map region data via script calls, you can use
$game_player.region_id - the current region $game_player.last_region_id - the previous region
Here’s map region 10 with the name “Grassland”, using Theme1 as the BGM, and a
Storm BGS with a lowered volume:
<map region: 10> name: Grassland bgm: Theme1 bgs: Storm 50 </map region>