i've make a little script that allow you to call the map name when you change it... like in Kingdom Hearts 2 (it show you the mapname for 3 or 4 second)
this is a new class (really simple)
This is what i've edit... is the interpreter class (interpreter5 in the script list) and i've try to put in some short line whit the ones i can call the map name when i teleport... the problem is that this script show me the name of the wrong map and the window doesn't disappear after few second... how can i do it? pls help me X|
P.S. is possible to make the mapname in bolde stile? like "This"?
Code:
class Game_Map
def name
$map_infos[@map_id]
end
end
class Window_MapName2 < Window_Base
#--------------------------------------------------------------------------
# - Inizializzazione dell'oggetto
#--------------------------------------------------------------------------
def initialize
super(0, 0, 640, 200)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# - Aggiornamento
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.name = "Bimini"
self.contents.font.size = 40
self.contents.font.color = normal_color
self.contents.draw_text(64, 6, 480, 136, $game_map.name, 1)
end
end
Code:
class Interpreter
#--------------------------------------------------------------------------
# - Trasporto
#--------------------------------------------------------------------------
def command_201
if $game_temp.in_battle
return true
end
if $game_temp.player_transferring or
$game_temp.message_window_showing or
$game_temp.transition_processing
return false
end
$game_temp.player_transferring = true
if @parameters[0] == 0
$game_temp.player_new_map_id = @parameters[1]
$game_temp.player_new_x = @parameters[2]
$game_temp.player_new_y = @parameters[3]
$game_temp.player_new_direction = @parameters[4]
@mapname = Window_MapName2.new
@mapname.x = 0
@mapname.y = 100
@mapname.opacity = 0
else
$game_temp.player_new_map_id = $game_variables[@parameters[1]]
$game_temp.player_new_x = $game_variables[@parameters[2]]
$game_temp.player_new_y = $game_variables[@parameters[3]]
$game_temp.player_new_direction = @parameters[4]
end
@index += 1
if @parameters[5] == 0
Graphics.freeze
$game_temp.transition_processing = true
$game_temp.transition_name = ""
end
return false
end
P.S. is possible to make the mapname in bolde stile? like "This"?