Menu Commands Help Window for Default Main Menu

I'm a bit surprised no one else has requested this before me.

This should be an rather easy task, however, I'm quite disillusioned that I seem to not be able implement it myself, but only get error messages when I try to create it. :LZSsad:

Can someone lend me a hand?

Unbenannt.png
Uhm... Not sure what you are asking. You are just saying you are confused and can't do it yourself, but you never said what you try to do. 😛 The title says a little... but by far not enough.

I'd love to help, but you need to explain to us what you need help with. 😛
@JohnDoeNews Haha sorry, I guess I kept it a little too simple. :LZSblush: The screen below shows what I want to achieve (edited by myself in MS Paint). I'm looking for a small Help Text Window (next to the Gold Window) that displays a text depending on which menu item I'm hovering over. For example, when the cursor is on Items, I want a text "use an item" to be displayed etc.
Oh yes, now I understand. 😛 Now you've said it, the image is clear, but I was completely looking at the wrong thing.

I don't know how to do that, though. Sorry. Hopefully someone else does.
Here is my first crack at it.

*Does not work. But I need another scripter to tell me what is wrong.

When entering the items menu or skills etc, and backing out to the main menu, the game closes.


What is the piece I'm missing or did wrong?

I was not supposed to make a reference to viewport.
Fixed

Spoiler: Main Menu Command Help Text
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Menu Command Help Text       ║  Version: 1.01     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║ Show text for Commands in the Menu  ║    28 Dec 2022     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║                                                          ║
# ║  Add the command symbol below and write the text to show ║
# ║                                                          ║
# ╚══════════════════════════════════════════════════════════╝
# ╔═════════════════════════════════════╗
# ║ Terms of use:                       ║
# ║ Free for all uses in RPG Maker      ║
# ╚═════════════════════════════════════╝


module R2_Menu_Help_Command_Text
  Commands = {
            :item       => "Use an Item",
            :skill      => "Choose a Skill",
            :equip      => "Put on Clothes",
            :status     => "Look in the Mirror",
            :formation  => "Who's the Boss",
            :save       => "Journaling are we?",
            :game_end   => "Too much for you?",
            }
end

#==============================================================================
# ** Window_Menu_Help
#==============================================================================
class Window_Menu_Help < Window_Help
  def initialize(x, y, width, height)
    super(fitting_height(1))
    self.x = x
    self.y = y
    self.width = width
    self.height = 48
  end
  def create_contents
    contents.dispose
    self.contents = Bitmap.new(self.width - 196, fitting_height(1) - 24)
  end
  def set_command_text(index, cur_sym)
    set_text(index > -1 ? R2_Menu_Help_Command_Text::Commands[cur_sym] : "")
  end
end

#==============================================================================
# ** Window_MenuStatus
#==============================================================================
class Window_MenuStatus < Window_Selectable
  def window_height
    Graphics.height - 48
  end
end

#==============================================================================
# ** Window_MenuCommand
#==============================================================================
class Window_MenuCommand < Window_Command
  def update_help
    @help_window.set_command_text(index, current_symbol)
  end
end

#==============================================================================
# ** Scene_Menu
#==============================================================================
class Scene_Menu < Scene_MenuBase
  alias r2_menu_help_87fh_start start
  def start
    create_help_window
    r2_menu_help_87fh_start
  end
  def create_help_window
    y = Graphics.height - 48
    w = Graphics.width - 160
    @help_window = Window_Menu_Help.new(160, y, w, 48)
  end
  alias r2_command_help_window_92g7b  create_command_window
  def create_command_window
    r2_command_help_window_92g7b
    @command_window.help_window = @help_window
  end
end
Spoiler: v1.02
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Menu Command Help Text       ║  Version: 1.02     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║ Show text for Commands in the Menu  ║    28 Dec 2022     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║                                                          ║
# ║  Add the command symbol below and write the text to show ║
# ║                                                          ║
# ╚══════════════════════════════════════════════════════════╝
# ╔═════════════════════════════════════╗
# ║ Terms of use:                       ║
# ║ Free for all uses in RPG Maker      ║
# ╚═════════════════════════════════════╝


module R2_Menu_Help_Command_Text
  Commands = {
            :item       => "Use an Item",
            :skill      => "Choose a Skill",
            :equip      => "Put on Clothes",
            :status     => "Look in the Mirror",
            :formation  => "Who's the Boss",
            :save       => "Journaling are we?",
            :game_end   => "Too much for you?",
            }
end

#==============================================================================
# ** Sub Window for character selection adjustment
#==============================================================================
class Scene_ItemBase < Scene_MenuBase
  def show_sub_window(window)
    width_remain = Graphics.width - window.width
    window.x = cursor_left? ? width_remain : 0
    @viewport.rect.x = @viewport.ox = cursor_left? ? 0 : window.width
    @viewport.rect.width = width_remain
    window.height = Graphics.height
    window.show.activate
  end
end

#==============================================================================
# ** Window_Menu_Help
#==============================================================================
class Window_Menu_Help < Window_Help
  def initialize(x, y, width, height)
    super(fitting_height(1))
    self.x = x
    self.y = y
    self.width = width
    self.height = 48
  end
  def create_contents
    contents.dispose
    self.contents = Bitmap.new(self.width - 196, fitting_height(1) - 24)
  end
  def set_command_text(index, cur_sym)
    set_text(index > -1 ? R2_Menu_Help_Command_Text::Commands[cur_sym] : "")
  end
end

#==============================================================================
# ** Window_MenuStatus
#==============================================================================
class Window_MenuStatus < Window_Selectable
  def window_height
    Graphics.height - 48
  end
  def item_height
    (window_height - standard_padding * 2) / 3
  end
  def item_rect(index)
    rect = Rect.new
    rect.width = item_width
    rect.height = item_height - 15
    rect.x = index % col_max * (item_width + spacing)
    rect.y = index / col_max * item_height
    rect
  end
end
#==============================================================================
# ** Window_MenuCommand
#==============================================================================
class Window_MenuCommand < Window_Command
  def update_help
    @help_window.set_command_text(index, current_symbol)
  end
end

#==============================================================================
# ** Scene_Menu
#==============================================================================
class Scene_Menu < Scene_MenuBase
  alias r2_menu_help_87fh_start start
  def start
    create_help_window
    r2_menu_help_87fh_start
  end
  def create_help_window
    y = Graphics.height - 48
    w = Graphics.width - 160
    @help_window = Window_Menu_Help.new(160, y, w, 48)
  end
  alias r2_command_help_window_92g7b  create_command_window
  def create_command_window
    r2_command_help_window_92g7b
    @command_window.help_window = @help_window
  end
end
Just as a friendly reminder, you don't need to define or redefine these methods.

Ruby:
class Window_Menu_Help < Window_Help
  def initialize(x, y, width, height)
    super(fitting_height(1))
    self.x = x # Duplicate call
    self.y = y # Duplicate call
    self.width = width # Duplicate call
    self.height = 48 # Duplicate call
  end
end
###
class Window_MenuCommand
  # Some Code Here
  # Duplicate of Window_Selectable's method
  def help_window=(help_window)
    @help_window = help_window
    call_update_help
  end
end
Just as a friendly reminder, you don't need to define or redefine these methods.

Ruby:
class Window_Menu_Help < Window_Help
  def initialize(x, y, width, height)
    super(fitting_height(1))
    self.x = x # Duplicate call
    self.y = y # Duplicate call
    self.width = width # Duplicate call
    self.height = 48 # Duplicate call
  end
end
###
class Window_MenuCommand
  # Some Code Here
  # Duplicate of Window_Selectable's method
  def help_window=(help_window)
    @help_window = help_window
    call_update_help
  end
end
If I didn't use the self settings then it did not position correctly.
The second one was something I left in there while I was testing and yes probably isn't needed.
1672255924639.png

1672255944205.png
It seems this would be the reason behind it.

Ruby:
class Window_Help < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(line_number = 2)
    super(0, 0, Graphics.width, fitting_height(line_number))
  end

Here's your code with just 84 lines of code.

Spoiler: Shortened Code
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Menu Command Help Text       ║  Version: 1.01     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║ Show text for Commands in the Menu  ║    28 Dec 2022     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║                                                          ║
# ║  Add the command symbol below and write the text to show ║
# ║                                                          ║
# ╚══════════════════════════════════════════════════════════╝
# ╔═════════════════════════════════════╗
# ║ Terms of use:                       ║
# ║ Free for all uses in RPG Maker      ║
# ╚═════════════════════════════════════╝


module R2_Menu_Help_Command_Text
  Commands = {
            :item       => "Use an Item",
            :skill      => "Choose a Skill",
            :equip      => "Put on Clothes",
            :status     => "Look in the Mirror",
            :formation  => "Who's the Boss",
            :save       => "Journaling are we?",
            :game_end   => "Too much for you?",
            }
end

#==============================================================================
# ** Window_Menu_Help
#==============================================================================
class Window_Menu_Help < Window_Help
  def create_contents
    contents.dispose
    self.contents = Bitmap.new(self.width - 196, fitting_height(1) - 24)
  end
  def set_command_text(index, cur_sym)
    set_text(index > -1 ? R2_Menu_Help_Command_Text::Commands[cur_sym] : "")
  end
end

#==============================================================================
# ** Window_MenuStatus
#==============================================================================
class Window_MenuStatus < Window_Selectable
  def window_height
    Graphics.height - 48
  end
end

#==============================================================================
# ** Window_MenuCommand
#==============================================================================
class Window_MenuCommand < Window_Command
  def update_help
    @help_window.set_command_text(index, current_symbol)
  end
end

#==============================================================================
# ** Scene_Menu
#==============================================================================
class Scene_Menu < Scene_MenuBase
  alias r2_menu_help_87fh_start start
  def start
    create_help_window
    r2_menu_help_87fh_start
  end
  def create_help_window
    @help_window = Window_Menu_Help.new(1)
    @help_window.width = Graphics.width - 160
    @help_window.x = 160
    @help_window.y = Graphics.height - 48
  end
  alias r2_command_help_window_92g7b  create_command_window
  def create_command_window
    r2_command_help_window_92g7b
    @command_window.help_window = @help_window
  end
end
Awesome, both of you @Roninator2 and @kyonides

Thank you very much. It also helped me understanding what I was doing wrong when trying to do it myself.
@Roninator2 and @kyonides
I have encountered a problem. By reducing the size of the window, when you have multiple heroes in the party, the Actor Facesets are slightly shifted on top of each other. Which is strange, because shrinking the window shouldn't affect the position of the elements in it. What can I do about this?

Unbenannt.png
It's only the face graphic thats off. the rest is fitted into the selection frame.
I noticed this as well. You can try reducing the size of the actor faces, or increase the screen size.
It's only the face graphic thats off. the rest is fitted into the selection frame.
I noticed this as well. You can try reducing the size of the actor faces, or increase the screen size.
This is a workaround that I don't want to do for several reasons. Because I use faces in battles as well and everything would look off... Is there no way to adjust this so that the faces fit back into the selection? I don't see how this even happens when we just shrink the window. :LZSblush:

Is there no way to re-adjust the faces, given the fact that I use 3 heros max.?
If you only use three max then that is easy, just change the number from 4 to 3.
So change the window_menustatus to this.
Ruby:
class Window_MenuStatus < Window_Selectable
  def window_height
    Graphics.height - 48
  end
  def item_height
    (height - standard_padding * 2) / 3
  end
end

Next you might say that the selection window is larger than the actor space. Add in another method and add a subtraction to shorten the selection height.
So make you window_menustatus like this
Ruby:
class Window_MenuStatus < Window_Selectable
  def window_height
    Graphics.height - 48
  end
  def item_height
    (height - standard_padding * 2) / 3
  end
  def item_rect(index)
    rect = Rect.new
    rect.width = item_width
    rect.height = item_height - 15
    rect.x = index % col_max * (item_width + spacing)
    rect.y = index / col_max * item_height
    rect
  end
end
If you only use three max then that is easy, just change the number from 4 to 3.
So change the window_menustatus to this.
Ruby:
class Window_MenuStatus < Window_Selectable
  def window_height
    Graphics.height - 48
  end
  def item_height
    (height - standard_padding * 2) / 3
  end
end

Honestly, I ran a test with just item_height equal to 98, the end result of calculating (416-24) / 4, and the rectangle box covers the exact area needed by every single actor. The selection won't be stretched long enough to include the empty window space below but it works fine. Perhaps the OP might want to add just another window at the bottom of that screen. XD
I ran a test with just item_height equal to 98
Yes I think that works better. Puts the actors together and leaves a space that can used for something else.
I guess it depends then on how the OP want the status window to look.
@Roninator2 Hi, Ronni. Sorry to call you again, but I'm facing a graphical glitch while trying to use consumable items. Can we stretch the menu to the bottom for when consumables are selected? Else, if that's easier, I would be fine to have the help window here as well, so I could simply add a text like "Select a hero" (which would be cool the more I think of it).

Spoiler: Screen
Screenie.png
Then post the whole script as it looks like right now and so anybody will be able to make all the required alterations there.
Then post the whole script as it looks like right now and so anybody will be able to make all the required alterations there.
Spoiler: Script
Code:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Menu Command Help Text       ║  Version: 1.01     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║ Show text for Commands in the Menu  ║    28 Dec 2022     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║                                                          ║
# ║  Add the command symbol below and write the text to show ║
# ║                                                          ║
# ╚══════════════════════════════════════════════════════════╝
# ╔═════════════════════════════════════╗
# ║ Terms of use:                       ║
# ║ Free for all uses in RPG Maker      ║
# ╚═════════════════════════════════════╝


module R2_Menu_Help_Command_Text
  Commands = {
            :item       => Tw0Face::ITEMHELPTEXT,
            :skill      => Tw0Face::SKILLHELPTEXT,
            :equip      => Tw0Face::EQUIPHELPTEXT,
            :status     => Tw0Face::STATUSHELPTEXT,
            :options    => Tw0Face::OPTIONSHELPTEXT,
            :formation  => "",
            :save       => Tw0Face::SAVEHELPTEXT,
            :game_end   => Tw0Face::GAMEENDHELPTEXT,
            }
end

#==============================================================================
# ** Window_Menu_Help
#==============================================================================
class Window_Menu_Help < Window_Help
  def create_contents
    contents.dispose
    self.contents = Bitmap.new(self.width - 196, fitting_height(1) - 24)
  end
  def set_command_text(index, cur_sym)
    set_text(index > -1 ? R2_Menu_Help_Command_Text::Commands[cur_sym] : "")
  end
end

#==============================================================================
# ** Window_MenuStatus
#==============================================================================
class Window_MenuStatus < Window_Selectable
  def window_height
    Graphics.height - 48
  end
  def item_height
    (height - standard_padding * 2) / 3
  end
  def item_rect(index)
    rect = Rect.new
    rect.width = item_width
    rect.height = item_height - 15
    rect.x = index % col_max * (item_width + spacing)
    rect.y = index / col_max * item_height
    rect
  end
end

#==============================================================================
# ** Window_MenuCommand
#==============================================================================
class Window_MenuCommand < Window_Command
  def update_help
    @help_window.set_command_text(index, current_symbol)
  end
end

#==============================================================================
# ** Scene_Menu
#==============================================================================
class Scene_Menu < Scene_MenuBase
  alias r2_menu_help_87fh_start start
  def start
    create_help_window
    r2_menu_help_87fh_start
  end
  def create_help_window
    @help_window = Window_Menu_Help.new(1)
    @help_window.width = Graphics.width - 160
    @help_window.x = 160
    @help_window.y = Graphics.height - 48
  end
  alias r2_command_help_window_92g7b  create_command_window
  def create_command_window
    r2_command_help_window_92g7b
    @command_window.help_window = @help_window
  end
end
Maybe this
Ruby:
class Scene_ItemBase < Scene_MenuBase
  def show_sub_window(window)
    width_remain = Graphics.width - window.width
    window.x = cursor_left? ? width_remain : 0
    @viewport.rect.x = @viewport.ox = cursor_left? ? 0 : window.width
    @viewport.rect.width = width_remain
    window.height = Graphics.height
    window.show.activate
  end
end
Spoiler: Script
Code:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Menu Command Help Text       ║  Version: 1.01     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║ Show text for Commands in the Menu  ║    28 Dec 2022     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║                                                          ║
# ║  Add the command symbol below and write the text to show ║
# ║                                                          ║
# ╚══════════════════════════════════════════════════════════╝
# ╔═════════════════════════════════════╗
# ║ Terms of use:                       ║
# ║ Free for all uses in RPG Maker      ║
# ╚═════════════════════════════════════╝


module R2_Menu_Help_Command_Text
  Commands = {
            :item       => Tw0Face::ITEMHELPTEXT,
            :skill      => Tw0Face::SKILLHELPTEXT,
            :equip      => Tw0Face::EQUIPHELPTEXT,
            :status     => Tw0Face::STATUSHELPTEXT,
            :options    => Tw0Face::OPTIONSHELPTEXT,
            :formation  => "",
            :save       => Tw0Face::SAVEHELPTEXT,
            :game_end   => Tw0Face::GAMEENDHELPTEXT,
            }
end

#==============================================================================
# ** Window_Menu_Help
#==============================================================================
class Window_Menu_Help < Window_Help
  def create_contents
    contents.dispose
    self.contents = Bitmap.new(self.width - 196, fitting_height(1) - 24)
  end
  def set_command_text(index, cur_sym)
    set_text(index > -1 ? R2_Menu_Help_Command_Text::Commands[cur_sym] : "")
  end
end

#==============================================================================
# ** Window_MenuStatus
#==============================================================================
class Window_MenuStatus < Window_Selectable
  def window_height
    Graphics.height - 48
  end
  def item_height
    (height - standard_padding * 2) / 3
  end
  def item_rect(index)
    rect = Rect.new
    rect.width = item_width
    rect.height = item_height - 15
    rect.x = index % col_max * (item_width + spacing)
    rect.y = index / col_max * item_height
    rect
  end
end

#==============================================================================
# ** Window_MenuCommand
#==============================================================================
class Window_MenuCommand < Window_Command
  def update_help
    @help_window.set_command_text(index, current_symbol)
  end
end

#==============================================================================
# ** Scene_Menu
#==============================================================================
class Scene_Menu < Scene_MenuBase
  alias r2_menu_help_87fh_start start
  def start
    create_help_window
    r2_menu_help_87fh_start
  end
  def create_help_window
    @help_window = Window_Menu_Help.new(1)
    @help_window.width = Graphics.width - 160
    @help_window.x = 160
    @help_window.y = Graphics.height - 48
  end
  alias r2_command_help_window_92g7b  create_command_window
  def create_command_window
    r2_command_help_window_92g7b
    @command_window.help_window = @help_window
  end
end

That's the Scene_Menu not the Scene_Item script...

Original thread: https://forums.rpgmakerweb.com/threads/menu-commands-help-window-for-default-main-menu.153575/