How do I remove certain options from the menu?

Discussion in 'RGSS3 Script Requests' started by Alice_Langley, Nov 25, 2019.

  1. Alice_Langley

    Alice_Langley Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    I want to make a simple menu where you can only save and quit, how do I do that?
     
    #1
  2. slimmmeiske2

    slimmmeiske2 Little Red Riding Hood Moderator

    Messages:
    5,749
    Likes Received:
    4,181
    Location:
    Belgium
    First Language:
    Dutch
    Primarily Uses:
    RMXP
    #2
  3. Heirukichi

    Heirukichi Veteran Veteran

    Messages:
    1,303
    Likes Received:
    549
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    Code:
    class Window_MenuCommand < Window_Command
      #--------------------------------------------------------------------------
      # * Create Command List
      #--------------------------------------------------------------------------
      def make_command_list
        # add_main_commands
        # add_formation_command
        # add_original_commands
        add_save_command
        add_game_end_command
      end # Create Command List
    end # end of Window_MenuCommand class
    
    Commenting these three lines does the trick without removing their functionality from the game. The player will be unable to access them from the menu, but you will still be able to access them if you need them for any reason. You can either copy/paste this script or comment them in your own project, you can find them at line 37 of the Window_MenuCommand script.
     
    #3

Share This Page