Do you want a window to pop up everytime you enter a new map area? Just insert this above main.
class Scene_Title
#Dubealex Addition (from XRXS) to show Map Name on screen
$map_infos = load_data("Data/MapInfos.rxdata")
for key in $map_infos.keys
$map_infos[key] = $map_infos[key].name
end
end
class Game_Map
#Dubealex Addition (from XRXS) to show Map Name on screen
def name
$map_infos[@map_id]
end
end
class Window_Float_Location < Window_Base
def initialize(location = '')
super(0,416,232,64)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = 'Times New Roman'
self.contents.font.size = 22
self.opacity = 100
self.back_opacity = 100
@location = location
@wait_count = 70
show_location
end
def show_location
self.contents.clear
self.contents.font.color = normal_color
w = self.contents.width
h = self.contents.height
self.contents.draw_text(0,0,w,h,@location,0)
wait
end
def wait
loop do
self.update
@wait_count -= 1
if @wait_count == 0
break
end
end
self.dispose
end
def update
Graphics.update
end
end
class Scene_Map
def transfer_player
# Clear player place move call flag
$game_temp.player_transferring = false
# If move destination is different than current map
if $game_map.map_id != $game_temp.player_new_map_id
# Set up a new map
$game_map.setup($game_temp.player_new_map_id)
end
# Set up player position
$game_player.moveto($game_temp.player_new_x, $game_temp.player_new_y)
# Set player direction
case $game_temp.player_new_direction
when 2 # down
$game_player.turn_down
when 4 # left
$game_player.turn_left
when 6 # right
$game_player.turn_right
when 8 # up
$game_player.turn_up
end
# Straighten player position
$game_player.straighten
# Update map (run parallel process event)
$game_map.update
# Remake sprite set
@spriteset.dispose
@spriteset = Spriteset_Map.new
# If processing transition
if $game_temp.transition_processing
# Clear transition processing flag
$game_temp.transition_processing = false
# Execute transition
Graphics.transition(20)
end
location = $game_map.name
float_location = Window_Float_Location.new(location)
# Run automatic change for BGM and BGS set on the map
$game_map.autoplay
# Frame reset
Graphics.frame_reset
# Update input information
Input.update
end
end
Yes I realize the code itself isn't that pretty, but I'll clean it up later, it was a quick job.
BTW: credit to dubealex for the location name itself.