Open Menu Screen During Messages Script for VX Ace

Hello, I have been working on a "visual novel"-like game in RPG Maker VX Ace and I was wondering whether any script that allows menu access during text messages events exists or can be made.

Since the majority of the gameplay will be based out of text messages and options, I wanted for the player to be able to open the menu screen (to save the game, change the settings, quit, etc) at any given moment, despite if text messages are running. Also, it would be great if the menu call did not erase the text and moved onto the next one immediately, but re-showed it until the interaction button (SPACE, ENTER, etc) is pressed, in case the player misses something accidentally.

For reference, I had found this script by Krimer that appears to do what I am looking for, although it is for MV- not VX Ace.

As an aside, I would like to avoid using images as text boxes and, while autosaving has crossed my mind, I would like for the player to be able to pick any save file they want, to save their progress whenever they wish. The latter may allow the player to try different options without having to re-play the entire scene from the beginning until their designated point, through multiple files. And, of course, I wouldn't like to change the engine I'm working with, since that's the fun and challenging part of the development! ^^

If something is unclear, let me know!
Try this :
Ruby:
module GlobalMenuOpen
  # Define the key to open the menu (e.g., Input::X for keyboard X key)
  OPEN_MENU_KEY = :X
end

class Scene_Base
  alias global_menu_update update

  def update
    global_menu_update
    check_global_menu_open
  end

  def check_global_menu_open
    if Input.trigger?(GlobalMenuOpen::OPEN_MENU_KEY)
      SceneManager.call(Scene_Menu)
    end
  end
end

class Scene_Map < Scene_Base
  alias global_menu_update_map update

  def update
    global_menu_update_map
    check_global_menu_open
  end
end

class Window_Message < Window_Base
  alias global_menu_update_message update

  def update
    global_menu_update_message
    Fiber.yield while $game_message.visible
    check_global_menu_open
  end
end
Try this :
Ruby:
module GlobalMenuOpen
  # Define the key to open the menu (e.g., Input::X for keyboard X key)
  OPEN_MENU_KEY = :X
end

class Scene_Base
  alias global_menu_update update

  def update
    global_menu_update
    check_global_menu_open
  end

  def check_global_menu_open
    if Input.trigger?(GlobalMenuOpen::OPEN_MENU_KEY)
      SceneManager.call(Scene_Menu)
    end
  end
end

class Scene_Map < Scene_Base
  alias global_menu_update_map update

  def update
    global_menu_update_map
    check_global_menu_open
  end
end

class Window_Message < Window_Base
  alias global_menu_update_message update

  def update
    global_menu_update_message
    Fiber.yield while $game_message.visible
    check_global_menu_open
  end
end

I placed the script below Materials, but when I hit "New Game", it gives me the following error (I named the script "Menu Update" for reference):
Script 'Menu Update' line 36: Name Error occurred.

undefined local variable or method
`check_global_menu_open` for
#<Window_Message:0xdc14334>
Am I missing something?
I placed the script below Materials, but when I hit "New Game", it gives me the following error (I named the script "Menu Update" for reference):

Am I missing something?
Hmm, maybe a scope mistake, I don't do ruby too often 😀

Does this work?
Spoiler: script
Ruby:
module GlobalMenuOpen
  # Define the key to open the menu (e.g., Input::X for keyboard X key)
  OPEN_MENU_KEY = :X
end

module MenuChecker
  def check_global_menu_open
    if Input.trigger?(GlobalMenuOpen::OPEN_MENU_KEY)
      SceneManager.call(Scene_Menu)
    end
  end
end

class Scene_Base
  alias global_menu_update update

  def update
    global_menu_update
    check_global_menu_open
  end
 
  include MenuChecker
end

class Scene_Map < Scene_Base
  alias global_menu_update_map update

  def update
    global_menu_update_map
    check_global_menu_open
  end
end

class Window_Message < Window_Base
  alias global_menu_update_message update

  def update
    global_menu_update_message
    check_global_menu_open
  end

  include MenuChecker
end
I was wondering whether any script that allows menu access during text messages events exists or can be made.
Trying to open the menu and save the game mid-event is just asking for chaos and calamity.
Hmm, maybe a scope mistake, I don't do ruby too often 😀

Does this work?
Spoiler: script
Ruby:
module GlobalMenuOpen
  # Define the key to open the menu (e.g., Input::X for keyboard X key)
  OPEN_MENU_KEY = :X
end

module MenuChecker
  def check_global_menu_open
    if Input.trigger?(GlobalMenuOpen::OPEN_MENU_KEY)
      SceneManager.call(Scene_Menu)
    end
  end
end

class Scene_Base
  alias global_menu_update update

  def update
    global_menu_update
    check_global_menu_open
  end
 
  include MenuChecker
end

class Scene_Map < Scene_Base
  alias global_menu_update_map update

  def update
    global_menu_update_map
    check_global_menu_open
  end
end

class Window_Message < Window_Base
  alias global_menu_update_message update

  def update
    global_menu_update_message
    check_global_menu_open
  end

  include MenuChecker
end
It now seems to break when I press the button (OPEN_MENU_KEY) to open the menu, with the following error message:
Script 'Menu Command' line 104: NameError occurred.

uninitialized class variable @@last_command_symbol in Window_MenuCommand

Trying to open the menu and save the game mid-event is just asking for chaos and calamity.
Yeah, I am concerned that this may break the game instead of adding onto it, but there's no harm in trying, I guess. 😅
RPG Maker VX Ace and I was wondering whether any script that allows menu access during text messages events exists or can be made.
Spoiler: Regendo MenuScreen While Message
Ruby:
#===================================
# MenuScreen While Message (MSWM)
#===================================
# by bStefan aka. regendo
# by request from AABattery
# : http://www.rpgmakervxace.net/index.php?/user/608-aabattery/
# please give credit if used
# for use with RMVX ACE
#===================================
# Call Scene_Menu while a message
# : is being displayed
#===================================
# implement over Main
#===================================
# customize:
# : add Scenes you don't want the
# : script to happen to NOCALLMENU
# : (like Scene_Battle, which would
# : be really annoying)
#===================================

module Regendo
 
  unless @scripts
    @scripts = Hash.new
    def self.contains?(key)
      @scripts[key] == true
    end
  end
  @scripts["Menu_during_Message"] = true
 
  module Menu_during_Message
   
    #=======
    #CONFIG
    #=======
    NOCALLMENU = [Scene_Battle] #scenes in which call_menu shall not work.
    BUTTON = Input::B #which button will trigger the menu?
  end
end
 
class Window_Message < Window_Base

  BUTTON = Regendo::Menu_during_Message::BUTTON
  NOCALLMENU = Regendo::Menu_during_Message::NOCALLMENU
 
  alias update_old update
  def update
    update_old
    call_menu if Input.trigger?(BUTTON) && !forbidden_scene_by_regendo
  end
 
  def call_menu
    Sound.play_ok
    SceneManager.call(Scene_Menu)
    Window_MenuCommand::init_command_position
  end
 
  def input_pause
    self.pause = true
    wait(10)
   
    case BUTTON
    when Input::B
      Fiber.yield until Input.trigger?(:C)
    when Input::C
      Fiber.yield until Input.trigger?(:B)
    else
      Fiber.yield until Input.trigger?(:B) || Input.trigger?(:C)
    end
   
    Input.update
    self.pause = false
  end
 
  def forbidden_scene_by_regendo
    return false unless NOCALLMENU
    NOCALLMENU.any? do |scene|
      SceneManager.scene_is?(scene)
    end
  end
end

Spoiler: Fiona VN Menu
Ruby:
#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ VN Interaction Menu v. 1.01 (04-27-2016)
#║ by Fiona Morella & Ryan Canteras
#║ rymakesgames.wordpress.com | [email hidden]
#║
#║ Creates a visual novel-style interaction menu, used to create command menus
#║ to interect with events. Events can be separated according to interaction
#║ type (Talk, Inspect) depending on the note tag assigned (vn_npc, vn_object).
#║ This script is great for visual novels, text games, and the mapping-impaired.
#║
#║ • For commercial and non-commercial use. Credit greatly appreciated.
#║
#║ • Hit us up if you use it in your game! We'd love to try it out.
#║
#║ • For inquiries, bug reports and feature suggestions, contact sabao
#║   on the script's thread on rpgmakerweb.com or rymakesgames.wordpress.com
#╚═=═=════════════════════════════════════════════════════════════════════════=#
#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ Version History
#║
#║ • 1.01 (4/27/2016) - Added support for the 'Move' command.
#╚═=═=════════════════════════════════════════════════════════════════════════=#
#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ HOW TO CALL THE MENU THROUGH EVENTS:
#║ • Script > 'SceneManager.call(Scene_VNMenu)'
#║
#║ HOW TO ADD EVENTS:
#║ • To add an event under the 'Move' category, add the comment 'vn_area' onto
#║   the event. To add an event under the 'Talk' category, add the comment 'vn_npc'
#║    onto the event. To add an event under the 'Investigate' category, add the
#║   comment 'vn_object' onto the event.
#║
#║ • If you want an event to disappear from the list, simply create a new page
#║   on that event WITHOUT a comment.
#║
#║ *You may want to execute the Wait command on your event first before calling
#║  the menu again to give the system time to refresh if you just triggered a
#║  switch to change the event's active page. We're working on fixing that.
#╚═=═=════════════════════════════════════════════════════════════════════════=#

#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ System Functions - Do NOT edit unless you know what you're doing.
#╚═=═=════════════════════════════════════════════════════════════════════════=#
class Game_Event
  def event
    return @event
  end
end

class Game_Event < Game_Character
 
  def note
    return "" if !@page || [email protected] || @page.list.size <= 0
    comment_list = []
    @page.list.each do |item|
      next unless item && (item.code == 108 || item.code == 408)
      comment_list.push(item.parameters[0])
    end
    comment_list.join("\r\n")
  end 
end

#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ Main Window - Lists all of the available primary commands.
#╚═=═=════════════════════════════════════════════════════════════════════════=#
class Window_VNMenu < Window_HorzCommand
 #--------------------------------------------------------------------------
 # * Object Initialization
 #--------------------------------------------------------------------------
 def initialize
   super(0, 0)
 end
 #--------------------------------------------------------------------------
 # * Get Window Width
 #--------------------------------------------------------------------------
 def window_width
   return Graphics.width
 end
 
 #--------------------------------------------------------------------------
 # * Get Window Height
 #--------------------------------------------------------------------------
 def window_height
   return 50
 end
  #--------------------------------------------------------------------------
  # * Get Digit Count
  #--------------------------------------------------------------------------
  def col_max
    return 5
  end
 #--------------------------------------------------------------------------
 # * Update Window Position
 #--------------------------------------------------------------------------
 def update_placement
   self.x = (Graphics.width - width) / 2
   self.y = (Graphics.height * 1.6 - height) / 2
 end
 #--------------------------------------------------------------------------
 # * Create Command List
 #--------------------------------------------------------------------------
 def make_command_list
   add_command("Move", :do_move)
   add_command("Talk", :do_talk)
   add_command("Inspect", :do_inspect)
   add_command("Load", :do_load)
   add_command("Save", :do_save)
 end
end

#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ Move Window - Lists all Area Names found on the current map.
#║                - Don't forget to add the comment 'vn_area' to your event!
#╚═=═=════════════════════════════════════════════════════════════════════════=#
class Window_VNMove < Window_Command
 #--------------------------------------------------------------------------
 # * Object Initialization
 #--------------------------------------------------------------------------
  def initialize(x,y)
    super(x,y)
    @data = []
    activate
    refresh
  end
 #--------------------------------------------------------------------------
 # * Get Window Height
 #--------------------------------------------------------------------------
 def window_height
   return Graphics.height - 50
 end
 #--------------------------------------------------------------------------
 # * Create Area List
 #-------------------------------------------------------------------------- 
 def make_command_list
   $game_map.events.each do |key,event|
     if event.note == 'vn_area'
       add_command(event.event.name,:movearea,true,event)
     end
   end
 end

  def refresh
    create_contents
    draw_all_items
  end
end

#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ Talk Window - Lists all NPC Names found on the current map.
#║             - Don't forget to add the comment 'vn_npc' to your event!
#╚═=═=════════════════════════════════════════════════════════════════════════=#
class Window_VNTalk < Window_Command
 #--------------------------------------------------------------------------
 # * Object Initialization
 #--------------------------------------------------------------------------
  def initialize(x,y)
    super(x,y)
    @data = []
    activate
    refresh
  end
 #--------------------------------------------------------------------------
 # * Get Window Height
 #--------------------------------------------------------------------------
 def window_height
   return Graphics.height - 50
 end
 #--------------------------------------------------------------------------
 # * Create NPC List
 #-------------------------------------------------------------------------- 
 def make_command_list
   $game_map.events.each do |key,event|
     if event.note == 'vn_npc'
       add_command(event.event.name,:npctalk,true,event)
     end
   end
 end

  def refresh
    create_contents
    draw_all_items
  end
end

#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ Inspect Window - Lists all Object Names found on the current map.
#║                - Don't forget to add the comment 'vn_object' to your event!
#╚═=═=════════════════════════════════════════════════════════════════════════=#
class Window_VNInspect < Window_Command
 #--------------------------------------------------------------------------
 # * Object Initialization
 #--------------------------------------------------------------------------
  def initialize(x,y)
    super(x,y)
    @data = []
    activate
    refresh
  end
 #--------------------------------------------------------------------------
 # * Get Window Height
 #--------------------------------------------------------------------------
 def window_height
   return Graphics.height - 50
 end
 #--------------------------------------------------------------------------
 # * Create Object List
 #-------------------------------------------------------------------------- 
 def make_command_list
   $game_map.events.each do |key,event|
     if event.note == 'vn_object'
       add_command(event.event.name,:objinspect,true,event)
     end
   end
 end

  def refresh
    create_contents
    draw_all_items
  end
end

#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ Scene_VNMenu - Performs basic processing related to the VN Menu.
#╚═=═=════════════════════════════════════════════════════════════════════════=#
class Scene_VNMenu < Scene_MenuBase

  def start
   super
   create_vnmenu_window
   create_vnmove_window
   create_vntalk_window
   create_vninspect_window
 end
 
 #--------------------------------------------------------------------------
 # * Create Main Window
 #--------------------------------------------------------------------------
  def create_vnmenu_window
   @command_window = Window_VNMenu.new
   @command_window.set_handler(:do_move,   method(:do_move))
   @command_window.set_handler(:do_talk,   method(:do_talk))
   @command_window.set_handler(:do_inspect,   method(:do_inspect))
   @command_window.set_handler(:do_load,   method(:do_load))
   @command_window.set_handler(:do_save,   method(:do_save))
   @command_window.set_handler(:cancel, method(:do_cancel))
 end

 #--------------------------------------------------------------------------
 # * Create Move Window
 #--------------------------------------------------------------------------
 def create_vnmove_window
  @move_window = Window_VNMove.new(0,50)
  @move_window.viewport = @viewport
  @move_window.hide
  @move_window.deactivate
  @move_window.set_handler(:cancel, method(:cancel_move))
  @move_window.set_handler(:movearea,method(:movearea))
end

 def movearea
   return_scene
   @move_window.current_data[:ext].start
  
 end
 
  def cancel_move
  @move_window.hide
  @move_window.unselect
  @move_window.deactivate
  @command_window.activate
end
 
 def do_move
   @move_window.refresh
   @move_window.show
   @move_window.select(0)
   @move_window.activate
   end
 
 #--------------------------------------------------------------------------
 # * Create Talk Window
 #--------------------------------------------------------------------------
 def create_vntalk_window
  @talk_window = Window_VNTalk.new(0,50)
  @talk_window.viewport = @viewport
  @talk_window.hide
  @talk_window.deactivate
  @talk_window.set_handler(:cancel, method(:cancel_talk))
  @talk_window.set_handler(:npctalk,method(:npctalk))
end

 def npctalk
   return_scene
   @talk_window.current_data[:ext].start
  
 end
 
  def cancel_talk
  @talk_window.hide
  @talk_window.unselect
  @talk_window.deactivate
  @command_window.activate
end
 
 def do_talk
   @talk_window.refresh
   @talk_window.show
   @talk_window.select(0)
   @talk_window.activate
   end

 #--------------------------------------------------------------------------
 # * Create Inspect Window
 #--------------------------------------------------------------------------
 def create_vninspect_window
  @inspect_window = Window_VNInspect.new(0,50)
  @inspect_window.viewport = @viewport
  @inspect_window.hide
  @inspect_window.deactivate
  @inspect_window.set_handler(:cancel, method(:cancel_inspect))
  @inspect_window.set_handler(:objinspect,method(:objinspect))
end

 def objinspect
   return_scene
   @inspect_window.current_data[:ext].start
  
 end
 
  def cancel_inspect
  @inspect_window.hide
  @inspect_window.unselect
  @inspect_window.deactivate
  @command_window.activate
end
 
 def do_inspect
   @inspect_window.refresh
   @inspect_window.show
   @inspect_window.select(0)
   @inspect_window.activate
   end
 end
 
 #--------------------------------------------------------------------------
 # * Call Load Menu
 #--------------------------------------------------------------------------
  def do_load
   SceneManager.call(Scene_Load)
 end
 
 #--------------------------------------------------------------------------
 # * Create Save Menu
 #--------------------------------------------------------------------------
  def do_save
   SceneManager.call(Scene_Save)
 end
 
 #--------------------------------------------------------------------------
 # * Close VN Menu
 #--------------------------------------------------------------------------
  def do_cancel
    return_scene
  end
It now seems to break when I press the button (OPEN_MENU_KEY) to open the menu, with the following error message:



Yeah, I am concerned that this may break the game instead of adding onto it, but there's no harm in trying, I guess. 😅
Did you place this script above Main and below the default scripts?
The error message looks like you might have placed it above some other script that needs to load first.

@Roninator2 's script look much more advanced though, you might want to look into them. 🙂
Spoiler: Regendo MenuScreen While Message
Ruby:
#===================================
# MenuScreen While Message (MSWM)
#===================================
# by bStefan aka. regendo
# by request from AABattery
# : http://www.rpgmakervxace.net/index.php?/user/608-aabattery/
# please give credit if used
# for use with RMVX ACE
#===================================
# Call Scene_Menu while a message
# : is being displayed
#===================================
# implement over Main
#===================================
# customize:
# : add Scenes you don't want the
# : script to happen to NOCALLMENU
# : (like Scene_Battle, which would
# : be really annoying)
#===================================

module Regendo
 
  unless @scripts
    @scripts = Hash.new
    def self.contains?(key)
      @scripts[key] == true
    end
  end
  @scripts["Menu_during_Message"] = true
 
  module Menu_during_Message
  
    #=======
    #CONFIG
    #=======
    NOCALLMENU = [Scene_Battle] #scenes in which call_menu shall not work.
    BUTTON = Input::B #which button will trigger the menu?
  end
end
 
class Window_Message < Window_Base

  BUTTON = Regendo::Menu_during_Message::BUTTON
  NOCALLMENU = Regendo::Menu_during_Message::NOCALLMENU
 
  alias update_old update
  def update
    update_old
    call_menu if Input.trigger?(BUTTON) && !forbidden_scene_by_regendo
  end
 
  def call_menu
    Sound.play_ok
    SceneManager.call(Scene_Menu)
    Window_MenuCommand::init_command_position
  end
 
  def input_pause
    self.pause = true
    wait(10)
  
    case BUTTON
    when Input::B
      Fiber.yield until Input.trigger?(:C)
    when Input::C
      Fiber.yield until Input.trigger?(:B)
    else
      Fiber.yield until Input.trigger?(:B) || Input.trigger?(:C)
    end
  
    Input.update
    self.pause = false
  end
 
  def forbidden_scene_by_regendo
    return false unless NOCALLMENU
    NOCALLMENU.any? do |scene|
      SceneManager.scene_is?(scene)
    end
  end
end

Spoiler: Fiona VN Menu
Ruby:
#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ VN Interaction Menu v. 1.01 (04-27-2016)
#║ by Fiona Morella & Ryan Canteras
#║ rymakesgames.wordpress.com | [email hidden]
#║
#║ Creates a visual novel-style interaction menu, used to create command menus
#║ to interect with events. Events can be separated according to interaction
#║ type (Talk, Inspect) depending on the note tag assigned (vn_npc, vn_object).
#║ This script is great for visual novels, text games, and the mapping-impaired.
#║
#║ • For commercial and non-commercial use. Credit greatly appreciated.
#║
#║ • Hit us up if you use it in your game! We'd love to try it out.
#║
#║ • For inquiries, bug reports and feature suggestions, contact sabao
#║   on the script's thread on rpgmakerweb.com or rymakesgames.wordpress.com
#╚═=═=════════════════════════════════════════════════════════════════════════=#
#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ Version History
#║
#║ • 1.01 (4/27/2016) - Added support for the 'Move' command.
#╚═=═=════════════════════════════════════════════════════════════════════════=#
#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ HOW TO CALL THE MENU THROUGH EVENTS:
#║ • Script > 'SceneManager.call(Scene_VNMenu)'
#║
#║ HOW TO ADD EVENTS:
#║ • To add an event under the 'Move' category, add the comment 'vn_area' onto
#║   the event. To add an event under the 'Talk' category, add the comment 'vn_npc'
#║    onto the event. To add an event under the 'Investigate' category, add the
#║   comment 'vn_object' onto the event.
#║
#║ • If you want an event to disappear from the list, simply create a new page
#║   on that event WITHOUT a comment.
#║
#║ *You may want to execute the Wait command on your event first before calling
#║  the menu again to give the system time to refresh if you just triggered a
#║  switch to change the event's active page. We're working on fixing that.
#╚═=═=════════════════════════════════════════════════════════════════════════=#

#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ System Functions - Do NOT edit unless you know what you're doing.
#╚═=═=════════════════════════════════════════════════════════════════════════=#
class Game_Event
  def event
    return @event
  end
end

class Game_Event < Game_Character
 
  def note
    return "" if !@page || [email protected] || @page.list.size <= 0
    comment_list = []
    @page.list.each do |item|
      next unless item && (item.code == 108 || item.code == 408)
      comment_list.push(item.parameters[0])
    end
    comment_list.join("\r\n")
  end
end

#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ Main Window - Lists all of the available primary commands.
#╚═=═=════════════════════════════════════════════════════════════════════════=#
class Window_VNMenu < Window_HorzCommand
 #--------------------------------------------------------------------------
 # * Object Initialization
 #--------------------------------------------------------------------------
 def initialize
   super(0, 0)
 end
 #--------------------------------------------------------------------------
 # * Get Window Width
 #--------------------------------------------------------------------------
 def window_width
   return Graphics.width
 end
 
 #--------------------------------------------------------------------------
 # * Get Window Height
 #--------------------------------------------------------------------------
 def window_height
   return 50
 end
  #--------------------------------------------------------------------------
  # * Get Digit Count
  #--------------------------------------------------------------------------
  def col_max
    return 5
  end
 #--------------------------------------------------------------------------
 # * Update Window Position
 #--------------------------------------------------------------------------
 def update_placement
   self.x = (Graphics.width - width) / 2
   self.y = (Graphics.height * 1.6 - height) / 2
 end
 #--------------------------------------------------------------------------
 # * Create Command List
 #--------------------------------------------------------------------------
 def make_command_list
   add_command("Move", :do_move)
   add_command("Talk", :do_talk)
   add_command("Inspect", :do_inspect)
   add_command("Load", :do_load)
   add_command("Save", :do_save)
 end
end

#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ Move Window - Lists all Area Names found on the current map.
#║                - Don't forget to add the comment 'vn_area' to your event!
#╚═=═=════════════════════════════════════════════════════════════════════════=#
class Window_VNMove < Window_Command
 #--------------------------------------------------------------------------
 # * Object Initialization
 #--------------------------------------------------------------------------
  def initialize(x,y)
    super(x,y)
    @data = []
    activate
    refresh
  end
 #--------------------------------------------------------------------------
 # * Get Window Height
 #--------------------------------------------------------------------------
 def window_height
   return Graphics.height - 50
 end
 #--------------------------------------------------------------------------
 # * Create Area List
 #--------------------------------------------------------------------------
 def make_command_list
   $game_map.events.each do |key,event|
     if event.note == 'vn_area'
       add_command(event.event.name,:movearea,true,event)
     end
   end
 end

  def refresh
    create_contents
    draw_all_items
  end
end

#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ Talk Window - Lists all NPC Names found on the current map.
#║             - Don't forget to add the comment 'vn_npc' to your event!
#╚═=═=════════════════════════════════════════════════════════════════════════=#
class Window_VNTalk < Window_Command
 #--------------------------------------------------------------------------
 # * Object Initialization
 #--------------------------------------------------------------------------
  def initialize(x,y)
    super(x,y)
    @data = []
    activate
    refresh
  end
 #--------------------------------------------------------------------------
 # * Get Window Height
 #--------------------------------------------------------------------------
 def window_height
   return Graphics.height - 50
 end
 #--------------------------------------------------------------------------
 # * Create NPC List
 #--------------------------------------------------------------------------
 def make_command_list
   $game_map.events.each do |key,event|
     if event.note == 'vn_npc'
       add_command(event.event.name,:npctalk,true,event)
     end
   end
 end

  def refresh
    create_contents
    draw_all_items
  end
end

#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ Inspect Window - Lists all Object Names found on the current map.
#║                - Don't forget to add the comment 'vn_object' to your event!
#╚═=═=════════════════════════════════════════════════════════════════════════=#
class Window_VNInspect < Window_Command
 #--------------------------------------------------------------------------
 # * Object Initialization
 #--------------------------------------------------------------------------
  def initialize(x,y)
    super(x,y)
    @data = []
    activate
    refresh
  end
 #--------------------------------------------------------------------------
 # * Get Window Height
 #--------------------------------------------------------------------------
 def window_height
   return Graphics.height - 50
 end
 #--------------------------------------------------------------------------
 # * Create Object List
 #--------------------------------------------------------------------------
 def make_command_list
   $game_map.events.each do |key,event|
     if event.note == 'vn_object'
       add_command(event.event.name,:objinspect,true,event)
     end
   end
 end

  def refresh
    create_contents
    draw_all_items
  end
end

#╔═=══════════════════════════════════════════════════════════════════════════=#
#║ Scene_VNMenu - Performs basic processing related to the VN Menu.
#╚═=═=════════════════════════════════════════════════════════════════════════=#
class Scene_VNMenu < Scene_MenuBase

  def start
   super
   create_vnmenu_window
   create_vnmove_window
   create_vntalk_window
   create_vninspect_window
 end
 
 #--------------------------------------------------------------------------
 # * Create Main Window
 #--------------------------------------------------------------------------
  def create_vnmenu_window
   @command_window = Window_VNMenu.new
   @command_window.set_handler(:do_move,   method(:do_move))
   @command_window.set_handler(:do_talk,   method(:do_talk))
   @command_window.set_handler(:do_inspect,   method(:do_inspect))
   @command_window.set_handler(:do_load,   method(:do_load))
   @command_window.set_handler(:do_save,   method(:do_save))
   @command_window.set_handler(:cancel, method(:do_cancel))
 end

 #--------------------------------------------------------------------------
 # * Create Move Window
 #--------------------------------------------------------------------------
 def create_vnmove_window
  @move_window = Window_VNMove.new(0,50)
  @move_window.viewport = @viewport
  @move_window.hide
  @move_window.deactivate
  @move_window.set_handler(:cancel, method(:cancel_move))
  @move_window.set_handler(:movearea,method(:movearea))
end

 def movearea
   return_scene
   @move_window.current_data[:ext].start
 
 end
 
  def cancel_move
  @move_window.hide
  @move_window.unselect
  @move_window.deactivate
  @command_window.activate
end
 
 def do_move
   @move_window.refresh
   @move_window.show
   @move_window.select(0)
   @move_window.activate
   end
 
 #--------------------------------------------------------------------------
 # * Create Talk Window
 #--------------------------------------------------------------------------
 def create_vntalk_window
  @talk_window = Window_VNTalk.new(0,50)
  @talk_window.viewport = @viewport
  @talk_window.hide
  @talk_window.deactivate
  @talk_window.set_handler(:cancel, method(:cancel_talk))
  @talk_window.set_handler(:npctalk,method(:npctalk))
end

 def npctalk
   return_scene
   @talk_window.current_data[:ext].start
 
 end
 
  def cancel_talk
  @talk_window.hide
  @talk_window.unselect
  @talk_window.deactivate
  @command_window.activate
end
 
 def do_talk
   @talk_window.refresh
   @talk_window.show
   @talk_window.select(0)
   @talk_window.activate
   end

 #--------------------------------------------------------------------------
 # * Create Inspect Window
 #--------------------------------------------------------------------------
 def create_vninspect_window
  @inspect_window = Window_VNInspect.new(0,50)
  @inspect_window.viewport = @viewport
  @inspect_window.hide
  @inspect_window.deactivate
  @inspect_window.set_handler(:cancel, method(:cancel_inspect))
  @inspect_window.set_handler(:objinspect,method(:objinspect))
end

 def objinspect
   return_scene
   @inspect_window.current_data[:ext].start
 
 end
 
  def cancel_inspect
  @inspect_window.hide
  @inspect_window.unselect
  @inspect_window.deactivate
  @command_window.activate
end
 
 def do_inspect
   @inspect_window.refresh
   @inspect_window.show
   @inspect_window.select(0)
   @inspect_window.activate
   end
 end
 
 #--------------------------------------------------------------------------
 # * Call Load Menu
 #--------------------------------------------------------------------------
  def do_load
   SceneManager.call(Scene_Load)
 end
 
 #--------------------------------------------------------------------------
 # * Create Save Menu
 #--------------------------------------------------------------------------
  def do_save
   SceneManager.call(Scene_Save)
 end
 
 #--------------------------------------------------------------------------
 # * Close VN Menu
 #--------------------------------------------------------------------------
  def do_cancel
    return_scene
  end
The first script by bStefan works like a charm! Thanks for sharing it here!

Did you place this script above Main and below the default scripts?
The error message looks like you might have placed it above some other script that needs to load first.

@Roninator2 's script look much more advanced though, you might want to look into them. 🙂
Yup, I did. I also tried changing its position between the custom scripts, but I couldn't get it to work strangely enough. I think I will end up using the first one shared by @Roninator2! Thanks a ton for the help nonetheless!👍
The first script by bStefan works like a charm! Thanks for sharing it here!


Yup, I did. I also tried changing its position between the custom scripts, but I couldn't get it to work strangely enough. I think I will end up using the first one shared by @Roninator2! Thanks a ton for the help nonetheless!👍
Was fun trying! Glad it was solved 😀
The first script by bStefan works like a charm! Thanks for sharing it here!
Update! I hope it's relevant enough to post it here but, regarding bStefan's "MenuScreen While Message" script, is there a way to temporarily switch off/on the script from activating in an event page? It looks like the "Change Menu Access" command is being overwritten as well, as the menu opens regardless if it's disabled in the operation.
Ruby:
class Window_Message < Window_Base
  alias r2_menu_call_switch_off  call_menu
  def call_menu
    return if $game_switches[1] == true
    r2_menu_call_switch_off
  end
end
change the switch number to what you want
Ruby:
class Window_Message < Window_Base
  alias r2_menu_call_switch_off  call_menu
  def call_menu
    return if $game_switches[1] == true
    r2_menu_call_switch_off
  end
end
change the switch number to what you want
That works! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/open-menu-screen-during-messages-script-for-vx-ace.170804/