Change a room's name.

Is there anyway to change the name displayed in a room when you enter? I have it set to a name for displaying, but I wanna change it to something else at a certain point in the game. Is it possible to do it?
It's unnecessarily difficult to do since there is no built-in method for changing a map's display name. I found a couple of scripts to get around it.


http://www.rpgmakercentral.com/topic/20927-need-script-to-change-map-display-name/ Somewhere in this post.


http://www.rpgmakercentral.com/topic/1332-simple-change-map-display-name-notetag-version-added/ And here.


Alternatively, you could create a duplicate map with a different name. The setup isn't too much trouble unless you intend to do this often.


You can also get prettier map name displays by using a combination of events and pictures, which also happens to be another way around this limitation.
First, install this script (Copy and paste it into a blank space underneath "Materials" but below "Main")

Spoiler
#==============================================================================
# ** Night_Runner's Variable Display Name Script
#------------------------------------------------------------------------------
# History:
# Created for: Animebryan
# @> http://www.rpgmakervxace.net/topic/20927-need-script-to-change-map-display-name/
# Date Created: 4/Jan/2014
#
# Description:
# Under Map Properties, you can have the following Display name:
# Map \v[1]
# Which will put the value of variable 1 in place of \v[1].
# This will also work with the usual \s[#], etc as well.
#
# Ruby scripts can also be used, for example, if the following Display
# Name was used:
# SCRIPT:if($game_switches[1]=true);'\v[1]F';else;'B\v[1]';end
# will look as Switch 1, if it is active it will display \v[1]F, which
# could be 1F, and if switch 1 is not active it will display B\v[1], which
# could be B1
#==============================================================================



#==============================================================================
# ** Window_Base
#------------------------------------------------------------------------------
# Edited to use self.convert_escape_characters, as well as
# convert_escape_characters
#==============================================================================

class Window_Base
#--------------------------------------------------------------------------
# * self.convert_escape_characters
#--------------------------------------------------------------------------
def self.convert_escape_characters(*args, &blk)
w_base
= Window_Base.new(0, 0, 640, 480)
ret_val
= w_base.convert_escape_characters(*args, &blk)
w_base
.dispose
return ret_val
end
end

#==============================================================================
# ** Game_Map
#------------------------------------------------------------------------------
# Edited to use escape characters, as well as ruby scripts
#==============================================================================

class Game_Map
#--------------------------------------------------------------------------
# * Get Display Name
#--------------------------------------------------------------------------
def display_name
if @map.display_name.include?("SCRIPT:")
map_name
= eval(@map.display_name.gsub('SCRIPT:', ''))
Window_Base.convert_escape_characters(map_name)
else
Window_Base.convert_escape_characters(@map.display_name)
end
end
end

#==============================================================================
# ** End of Script.
#==============================================================================






Then open your event that is going to change the map display name. Go to the third tab of event commands and press "Script"


in the text box, type the following


txt = "PUT YOUR NEW MAP NAME HERE"

$game_variables[1] = txt



Then, right click on the map whose name your changing and click "Map properties"


Change the display name to 


\v[1]



Then test it out

Original thread: https://forums.rpgmakerweb.com/threads/change-a-rooms-name.65629/