Save-Point
Set Map's Display Name ACE - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker VX/VXAce (RGSS2/3) Engines (https://www.save-point.org/forum-117.html)
+---- Thread: Set Map's Display Name ACE (/thread-8608.html)



Set Map's Display Name ACE - kyonides - 12-16-2022

Set Map's Display Name ACE

by Kyonides Arkanthes

Introduction

Do you need to show the map's display name at any given moment?
Like when you stepped on a transparent event facing downwards or upwards or anywhere else...
Take advantage of it and make a script call that will set the temporary name and show it on screen TV for you!

Code:
# * Set Map's Display Name ACE * #
#   Scripter : Kyonides Arkanthes
#   2022-12-16

# $game_map.display_name = "New Name"
# map_display_name = "New Name"

# $game_map.clear_display_name

class Game_Map
  def display_name=(new_name)
    @open_display_name = true
    @display_name = new_name
  end
  def display_name() @display_name || @map.display_name end
  def clear_display_name() @display_name = nil end
  attr_accessor :open_display_name
end

class Game_Interpreter
  def map_display_name=(name)
    $game_map.display_name = name
  end
end

class Scene_Map
  alias :kyon_map_dis_name_scn_map_up :update
  def update
    kyon_map_dis_name_scn_map_up
    update_display_name if $game_map.open_display_name
  end

  def update_display_name
    $game_map.open_display_name = nil
    @map_name_window.open
  end
end

Terms & Conditions

It's just a free script, guys!
Please include my nickname in your game credits. Winking
I really hope this won't be the only script of mine that you're using in game project. Happy with a sweat