Simple custom menu?

● ARCHIVED · READ-ONLY
Started by JustMadara9 7 posts View original ↗
  1. I hope there isn't a thread like this already open.. atleast I didn't find anything

    So, my problem is, I want to have a custom menu for my game, but I don't understand anything from scripting. I need only Save, Exit and reduced Inventory. No character screen or anything else. For inventory it would be enough with just key items. 

    Probably this isn't that hard, but how can I get this? I have to apply a script or delete some of them? 
  2. Edited for you. See if it is what you're looking for.

    *Just copy and paste it below Materials and above Main.

    Spoiler
    Code:
    #==============================================================================# ** Simple_Menu#==============================================================================class Scene_Menu < Scene_MenuBase  #--------------------------------------------------------------------------  # * Start Processing  #--------------------------------------------------------------------------  def start    super    create_command_window    create_gold_window    #create_status_window  end  #--------------------------------------------------------------------------  # * Create Command Window  #--------------------------------------------------------------------------  def create_command_window    @command_window = Window_MenuCommand.new    @command_window.set_handler(:item,      method(:command_item))    @command_window.set_handler(:save,      method(:command_save))    @command_window.set_handler(:game_end,  method(:command_game_end))    @command_window.set_handler(:cancel,    method(:return_scene))  end  #--------------------------------------------------------------------------  # * Create Gold Window  #--------------------------------------------------------------------------  def create_gold_window    @gold_window = Window_Gold.new    @gold_window.x = 0    @gold_window.y = Graphics.height - @gold_window.height  end  #--------------------------------------------------------------------------  # * Create Status Window  #--------------------------------------------------------------------------  def create_status_window    @status_window = Window_MenuStatus.new(@command_window.width, 0)  end  #--------------------------------------------------------------------------  # * [Item] Command  #--------------------------------------------------------------------------  def command_item    SceneManager.call(Scene_Item)  end  #--------------------------------------------------------------------------  # * [Save] Command  #--------------------------------------------------------------------------  def command_save    SceneManager.call(Scene_Save)  end  #--------------------------------------------------------------------------  # * [Exit Game] Command  #--------------------------------------------------------------------------  def command_game_end    SceneManager.call(Scene_End)  endend#==============================================================================# ** Window_MenuCommand#------------------------------------------------------------------------------#  This command window appears on the menu screen.#==============================================================================class Window_MenuCommand < Window_Command  #--------------------------------------------------------------------------  # * Initialize Command Selection Position (Class Method)  #--------------------------------------------------------------------------  def self.init_command_position    @@last_command_symbol = nil  end  #--------------------------------------------------------------------------  # * Object Initialization  #--------------------------------------------------------------------------  def initialize    super(0, 0)    select_last  end  #--------------------------------------------------------------------------  # * Get Window Width  #--------------------------------------------------------------------------  def window_width    return 160  end  #--------------------------------------------------------------------------  # * Get Number of Lines to Show  #--------------------------------------------------------------------------  def visible_line_number    item_max  end  #--------------------------------------------------------------------------  # * Create Command List  #--------------------------------------------------------------------------  def make_command_list    add_main_commands    add_original_commands    add_save_command    add_game_end_command  end  #--------------------------------------------------------------------------  # * Add Main Commands to List  #--------------------------------------------------------------------------  def add_main_commands    add_command(Vocab::item,   :item,   main_commands_enabled)  end  #--------------------------------------------------------------------------  # * For Adding Original Commands  #--------------------------------------------------------------------------  def add_original_commands  end  #--------------------------------------------------------------------------  # * Add Save to Command List  #--------------------------------------------------------------------------  def add_save_command    add_command(Vocab::save, :save, save_enabled)  end  #--------------------------------------------------------------------------  # * Add Exit Game to Command List  #--------------------------------------------------------------------------  def add_game_end_command    add_command(Vocab::game_end, :game_end)  end  #--------------------------------------------------------------------------  # * Get Activation State of Main Commands  #--------------------------------------------------------------------------  def main_commands_enabled    $game_party.exists  end  #--------------------------------------------------------------------------  # * Get Activation State of Save  #--------------------------------------------------------------------------  def save_enabled    !$game_system.save_disabled  end  #--------------------------------------------------------------------------  # * Processing When OK Button Is Pressed  #--------------------------------------------------------------------------  def process_ok    @@last_command_symbol = current_symbol    super  end  #--------------------------------------------------------------------------  # * Restore Previous Selection Position  #--------------------------------------------------------------------------  def select_last    select_symbol(@@last_command_symbol)  endend#==============================================================================# ** Window_ItemCategory#------------------------------------------------------------------------------#  This window is for selecting a category of normal items and equipment# on the item screen or shop screen.#==============================================================================class Window_ItemCategory < Window_HorzCommand  #--------------------------------------------------------------------------  # * Public Instance Variables  #--------------------------------------------------------------------------  attr_reader   :item_window  #--------------------------------------------------------------------------  # * Object Initialization  #--------------------------------------------------------------------------  def initialize    super(0, 0)  end  #--------------------------------------------------------------------------  # * Get Window Width  #--------------------------------------------------------------------------  def window_width    Graphics.width  end  #--------------------------------------------------------------------------  # * Get Digit Count  #--------------------------------------------------------------------------  def col_max    return 4  end  #--------------------------------------------------------------------------  # * Frame Update  #--------------------------------------------------------------------------  def update    super    @item_window.category = current_symbol if @item_window  end  #--------------------------------------------------------------------------  # * Create Command List  #--------------------------------------------------------------------------  def make_command_list    add_command(Vocab::key_item, :key_item)  end  #--------------------------------------------------------------------------  # * Set Item Window  #--------------------------------------------------------------------------  def item_window=(item_window)    @item_window = item_window    update  endend
  3. I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.


    Also, SEARCH is an invaluable tool. This exact request has only been made and filled a dozen times.
  4. Darkwes said:
    Edited for you. See if it is what you're looking for.

    *Just copy and paste it below Materials and above Main.

    Spoiler
    #==============================================================================# ** Simple_Menu#==============================================================================class Scene_Menu < Scene_MenuBase #-------------------------------------------------------------------------- # * Start Processing #-------------------------------------------------------------------------- def start super create_command_window create_gold_window #create_status_window end #-------------------------------------------------------------------------- # * Create Command Window #-------------------------------------------------------------------------- def create_command_window @command_window = Window_MenuCommand.new @command_window.set_handler:)item, method:)command_item)) @command_window.set_handler:)save, method:)command_save)) @command_window.set_handler:)game_end, method:)command_game_end)) @command_window.set_handler:)cancel, method:)return_scene)) end #-------------------------------------------------------------------------- # * Create Gold Window #-------------------------------------------------------------------------- def create_gold_window @gold_window = Window_Gold.new @gold_window.x = 0 @gold_window.y = Graphics.height - @gold_window.height end #-------------------------------------------------------------------------- # * Create Status Window #-------------------------------------------------------------------------- def create_status_window @status_window = Window_MenuStatus.new(@command_window.width, 0) end #-------------------------------------------------------------------------- # * [Item] Command #-------------------------------------------------------------------------- def command_item SceneManager.call(Scene_Item) end #-------------------------------------------------------------------------- # * [Save] Command #-------------------------------------------------------------------------- def command_save SceneManager.call(Scene_Save) end #-------------------------------------------------------------------------- # * [Exit Game] Command #-------------------------------------------------------------------------- def command_game_end SceneManager.call(Scene_End) endend#==============================================================================# ** Window_MenuCommand#------------------------------------------------------------------------------# This command window appears on the menu screen.#==============================================================================class Window_MenuCommand < Window_Command #-------------------------------------------------------------------------- # * Initialize Command Selection Position (Class Method) #-------------------------------------------------------------------------- def self.init_command_position @@last_command_symbol = nil end #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0) select_last end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 160 end #-------------------------------------------------------------------------- # * Get Number of Lines to Show #-------------------------------------------------------------------------- def visible_line_number item_max end #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- def make_command_list add_main_commands add_original_commands add_save_command add_game_end_command end #-------------------------------------------------------------------------- # * Add Main Commands to List #-------------------------------------------------------------------------- def add_main_commands add_command(Vocab::item, :item, main_commands_enabled) end #-------------------------------------------------------------------------- # * For Adding Original Commands #-------------------------------------------------------------------------- def add_original_commands end #-------------------------------------------------------------------------- # * Add Save to Command List #-------------------------------------------------------------------------- def add_save_command add_command(Vocab::save, :save, save_enabled) end #-------------------------------------------------------------------------- # * Add Exit Game to Command List #-------------------------------------------------------------------------- def add_game_end_command add_command(Vocab::game_end, :game_end) end #-------------------------------------------------------------------------- # * Get Activation State of Main Commands #-------------------------------------------------------------------------- def main_commands_enabled $game_party.exists end #-------------------------------------------------------------------------- # * Get Activation State of Save #-------------------------------------------------------------------------- def save_enabled !$game_system.save_disabled end #-------------------------------------------------------------------------- # * Processing When OK Button Is Pressed #-------------------------------------------------------------------------- def process_ok @@last_command_symbol = current_symbol super end #-------------------------------------------------------------------------- # * Restore Previous Selection Position #-------------------------------------------------------------------------- def select_last select_symbol(@@last_command_symbol) endend#==============================================================================# ** Window_ItemCategory#------------------------------------------------------------------------------# This window is for selecting a category of normal items and equipment# on the item screen or shop screen.#==============================================================================class Window_ItemCategory < Window_HorzCommand #-------------------------------------------------------------------------- # * Public Instance Variables #-------------------------------------------------------------------------- attr_reader :item_window #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0) end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width Graphics.width end #-------------------------------------------------------------------------- # * Get Digit Count #-------------------------------------------------------------------------- def col_max return 4 end #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update super @item_window.category = current_symbol if @item_window end #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- def make_command_list add_command(Vocab::key_item, :key_item) end #-------------------------------------------------------------------------- # * Set Item Window #-------------------------------------------------------------------------- def item_window=(item_window) @item_window = item_window update endend
    Whoa, thank you!! It's almost perfect, only, could you, please, remove the money window too? I hope I'm not bothering you too much.
  5. Shaz said:
    I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

    Also, SEARCH is an invaluable tool. This exact request has only been made and filled a dozen times.
    I'm very sorry. I guess I didn't use the right keywords because I couldn't find anything :/
  6. JustMadara9, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


    Check out the nifty MultiQuote button in the lower right corner of posts, which will let you respond to (and quote) several posts at the same time ;)
  7. Without the gold window:

    Spoiler
    Code:
    #==============================================================================# ** Simple_Menu#==============================================================================class Scene_Menu < Scene_MenuBase  #--------------------------------------------------------------------------  # * Start Processing  #--------------------------------------------------------------------------  def start    super    create_command_window  end  #--------------------------------------------------------------------------  # * Create Command Window  #--------------------------------------------------------------------------  def create_command_window    @command_window = Window_MenuCommand.new    @command_window.set_handler(:item,      method(:command_item))    @command_window.set_handler(:save,      method(:command_save))    @command_window.set_handler(:game_end,  method(:command_game_end))    @command_window.set_handler(:cancel,    method(:return_scene))  end  #--------------------------------------------------------------------------  # * Create Status Window  #--------------------------------------------------------------------------  def create_status_window    @status_window = Window_MenuStatus.new(@command_window.width, 0)  end  #--------------------------------------------------------------------------  # * [Item] Command  #--------------------------------------------------------------------------  def command_item    SceneManager.call(Scene_Item)  end  #--------------------------------------------------------------------------  # * [Save] Command  #--------------------------------------------------------------------------  def command_save    SceneManager.call(Scene_Save)  end  #--------------------------------------------------------------------------  # * [Exit Game] Command  #--------------------------------------------------------------------------  def command_game_end    SceneManager.call(Scene_End)  endend#==============================================================================# ** Window_MenuCommand#------------------------------------------------------------------------------#  This command window appears on the menu screen.#==============================================================================class Window_MenuCommand < Window_Command  #--------------------------------------------------------------------------  # * Initialize Command Selection Position (Class Method)  #--------------------------------------------------------------------------  def self.init_command_position    @@last_command_symbol = nil  end  #--------------------------------------------------------------------------  # * Object Initialization  #--------------------------------------------------------------------------  def initialize    super(0, 0)    select_last  end  #--------------------------------------------------------------------------  # * Get Window Width  #--------------------------------------------------------------------------  def window_width    return 160  end  #--------------------------------------------------------------------------  # * Get Number of Lines to Show  #--------------------------------------------------------------------------  def visible_line_number    item_max  end  #--------------------------------------------------------------------------  # * Create Command List  #--------------------------------------------------------------------------  def make_command_list    add_main_commands    add_original_commands    add_save_command    add_game_end_command  end  #--------------------------------------------------------------------------  # * Add Main Commands to List  #--------------------------------------------------------------------------  def add_main_commands    add_command(Vocab::item,   :item,   main_commands_enabled)  end  #--------------------------------------------------------------------------  # * For Adding Original Commands  #--------------------------------------------------------------------------  def add_original_commands  end  #--------------------------------------------------------------------------  # * Add Save to Command List  #--------------------------------------------------------------------------  def add_save_command    add_command(Vocab::save, :save, save_enabled)  end  #--------------------------------------------------------------------------  # * Add Exit Game to Command List  #--------------------------------------------------------------------------  def add_game_end_command    add_command(Vocab::game_end, :game_end)  end  #--------------------------------------------------------------------------  # * Get Activation State of Main Commands  #--------------------------------------------------------------------------  def main_commands_enabled    $game_party.exists  end  #--------------------------------------------------------------------------  # * Get Activation State of Save  #--------------------------------------------------------------------------  def save_enabled    !$game_system.save_disabled  end  #--------------------------------------------------------------------------  # * Processing When OK Button Is Pressed  #--------------------------------------------------------------------------  def process_ok    @@last_command_symbol = current_symbol    super  end  #--------------------------------------------------------------------------  # * Restore Previous Selection Position  #--------------------------------------------------------------------------  def select_last    select_symbol(@@last_command_symbol)  endend#==============================================================================# ** Window_ItemCategory#------------------------------------------------------------------------------#  This window is for selecting a category of normal items and equipment# on the item screen or shop screen.#==============================================================================class Window_ItemCategory < Window_HorzCommand  #--------------------------------------------------------------------------  # * Public Instance Variables  #--------------------------------------------------------------------------  attr_reader   :item_window  #--------------------------------------------------------------------------  # * Object Initialization  #--------------------------------------------------------------------------  def initialize    super(0, 0)  end  #--------------------------------------------------------------------------  # * Get Window Width  #--------------------------------------------------------------------------  def window_width    Graphics.width  end  #--------------------------------------------------------------------------  # * Get Digit Count  #--------------------------------------------------------------------------  def col_max    return 4  end  #--------------------------------------------------------------------------  # * Frame Update  #--------------------------------------------------------------------------  def update    super    @item_window.category = current_symbol if @item_window  end  #--------------------------------------------------------------------------  # * Create Command List  #--------------------------------------------------------------------------  def make_command_list    add_command(Vocab::key_item, :key_item)  end  #--------------------------------------------------------------------------  # * Set Item Window  #--------------------------------------------------------------------------  def item_window=(item_window)    @item_window = item_window    update  endend