Main Menu
  • Welcome to The RPG Maker Resource Kit.

[Request] Map name in menu

Started by J. Moreno, July 11, 2011, 02:32:02 PM

0 Members and 1 Guest are viewing this topic.

J. Moreno

I know that are several script that shows the map name in the screen, i dont want that, im not scripter either so i have no idea how to make it for myself... im using the default RPG Maker VX menu with the Integrated Reserve Party of Modern Algebra, so i only want a box that displays the map name above the money box, can someone helpme with this??

Thanks!

Do you want original music for your game? Take a look here! You may like it.
Visit my Youtube Channel to listen the newest tracks and subscribe if you like my work :)
Also I have my Soundcloud account:

pacdiggity

#1
#==============================================================================
# ** Window_Location
#------------------------------------------------------------------------------
#  This window displays the location of the current actor.
#==============================================================================

class Window_Location < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     x : window X coordinate
  #     y : window Y coordinate
  #--------------------------------------------------------------------------
  def initialize(x, y)
    super(x, y, 160, WLH + 32)
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    draw_icon(153, 4, 0)
    text = load_data("Data/MapInfos.rvdata")[$game_map.map_id].name
    self.contents.draw_text(4, 0, 120, WLH, text, 2)
  end
end

#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
#  This class performs the menu screen processing.
#==============================================================================

class Scene_Menu < Scene_Base
  #--------------------------------------------------------------------------
  # alias listing
  #--------------------------------------------------------------------------
  alias map_name_menu_start start
  alias map_name_menu_terminate terminate
  alias map_name_menu_update update
  #--------------------------------------------------------------------------
  # * Start Processing
  #--------------------------------------------------------------------------
  def start
    map_name_menu_start
    @map_window = Window_Location.new(0, 304)
  end
  #--------------------------------------------------------------------------
  # * Terminate Scene
  #--------------------------------------------------------------------------
  def terminate
    map_name_menu_terminate
    @map_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    map_name_menu_update
    @map_window.update
  end
end

Should do it. Tell me if you want anything different.
it's like a metaphor or something i don't know

cozziekuns

Uhh Pac @map_window.terminate should be @map_window.dispose.

pacdiggity

#3
Lulwut am I on something?
Lazy scripting! Alias method, forget how Window_Base works. Fundamental.
I fixed it.
it's like a metaphor or something i don't know

J. Moreno

Oh, so that was why when i closed the menu it gaves me an error lol. Yes, that is what i want! Thanks Pacman, now the issue i have i where i put the map box because i realize that i have very long map names.

So, i decided to put it in the top:



I know it looks kinda weird, if anyone has a better idea i will listen ;D

One more thing, and im not sure to make a new post for this, but, how i make my team of 3 instead of the default 4 with the default menu?

Do you want original music for your game? Take a look here! You may like it.
Visit my Youtube Channel to listen the newest tracks and subscribe if you like my work :)
Also I have my Soundcloud account:

pacdiggity

Here's a pretty cool menu designed for 3 characters. http://rmrk.net/index.php/topic,41214.0.html
Though I don't think it would work well with the party system.
it's like a metaphor or something i don't know

J. Moreno

In fact, i was using that script for the three party feature, but didnt work with the modern algebra´ script, thats why i dediced to change to the default menu, but respect for the map box you gave me it was perfect, thanks again!

Do you want original music for your game? Take a look here! You may like it.
Visit my Youtube Channel to listen the newest tracks and subscribe if you like my work :)
Also I have my Soundcloud account: