L's Simple Custom Menu Scripts (Revised)

L's Simple Custom Menu Scripts


 Basically, it's repost for one of 'lost' script.

CMS #1 - Simple edit of default menu
 This is my first CMS.  Basically, it's just an edit of default menu.  I made it several months ago, but I heavily edited it, looking like SDK-compatible.(but you can use it without SDK)

Screenshot Spoiler
Image


Script (Older one) Spoiler
  1.  
  2. #==============================================================================
  3. # **Game_Map
  4. #==============================================================================
  5. class Game_Map      
  6.    def name
  7.        $map_infos[@map_id]
  8.    end   
  9. end
  10.  
  11.  
  12. #========================================
  13. # **Scene_Title
  14. #--------------------------------------------------------------------------------
  15. # Setting functions for the Title
  16. #========================================
  17. class Scene_Title
  18.    $map_infos = load_data("Data/MapInfos.rxdata")
  19.    for key in $map_infos.keys
  20.       $map_infos[key] = $map_infos[key].name
  21.    end
  22. end
  23.  
  24. #==============================================================================
  25. # **Window_Infos
  26. #==============================================================================
  27. class Window_Infos < Window_Base
  28.    #--------------------------------------------------------------------------
  29.    # * Object Initialization
  30.    #--------------------------------------------------------------------------
  31.    def initialize
  32.       super(0, 0, 160, 130)
  33.       self.contents = Bitmap.new(width - 32, height - 32)
  34.       refresh
  35.    end
  36.    #--------------------------------------------------------------------------
  37.    # * Refresh
  38.    #--------------------------------------------------------------------------
  39.    def refresh
  40.       self.contents.clear
  41.       #---Show Time
  42.       self.contents.font.color = system_color
  43.       self.contents.draw_text(4, 0, 120, 32, "Time")
  44.       @total_sec = Graphics.frame_count / Graphics.frame_rate
  45.       hour = @total_sec / 60 / 60
  46.       min = @total_sec / 60 % 60
  47.       sec = @total_sec % 60
  48.       text = sprintf("%02d:%02d:%02d", hour, min, sec)
  49.       self.contents.font.color = normal_color
  50.       self.contents.draw_text(4, 0, 120, 32, text, 2)
  51.       #---Show Steps
  52.       self.contents.font.color = system_color
  53.       self.contents.draw_text(4, 25, 120, 32, "Steps")
  54.       self.contents.font.color = normal_color
  55.       self.contents.draw_text(4, 42, 120, 32, $game_party.steps.to_s, 2)
  56.       #---Show Money
  57.       #Advanced Gold Display mini-script by Dubealex.
  58.       case $game_party.gold
  59.          when 0..9999
  60.             gold = $game_party.gold
  61.          when 10000..99999
  62.             gold = $game_party.gold.to_s
  63.             array = gold.split(//)
  64.             gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
  65.          when 100000..999999
  66.             gold = $game_party.gold.to_s
  67.             array = gold.split(//)
  68.             gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
  69.          when 1000000..9999999
  70.             gold = $game_party.gold.to_s
  71.             array = gold.split(//)
  72.             gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
  73.       end
  74.       
  75.       self.contents.font.color = normal_color      
  76.       cx = contents.text_size($data_system.words.gold).width      
  77.       self.contents.draw_text(4, 67, 120-cx-2, 32, gold.to_s, 2)
  78.       self.contents.font.color = system_color
  79.       self.contents.draw_text(124-cx, 67, cx, 32, $data_system.words.gold, 2)
  80.    end
  81.    #--------------------------------------------------------------------------
  82.    # * Frame Update
  83.    #--------------------------------------------------------------------------
  84.    def update
  85.       super
  86.       if Graphics.frame_count / Graphics.frame_rate != @total_sec
  87.          refresh
  88.       end
  89.    end
  90. end
  91.  
  92.  
  93. #==============================================================================
  94. # **Window_MapName
  95. #==============================================================================
  96. class Window_MapName < Window_Base
  97.  def initialize
  98.     super(0, 0, 160, 96)
  99.     self.contents = Bitmap.new(width - 32, height - 32)   
  100.     refresh
  101.  end
  102.  def refresh
  103.     self.contents.clear
  104.     self.contents.font.color = system_color
  105.     self.contents.draw_text(4, 0, 120, 32, "Location")
  106.     self.contents.font.color = normal_color
  107.     self.contents.draw_text(4, 32, 120, 32, $game_map.name.to_s, 2)
  108.  end
  109. end
  110.  
  111.  
  112. #==============================================================================
  113. # ** Scene_Menu
  114. #------------------------------------------------------------------------------
  115. #   This class performs menu screen processing.
  116. #==============================================================================
  117.  
  118. class Scene_Menu
  119.    #--------------------------------------------------------------------------
  120.    # * Object Initialization
  121.    #       menu_index : command cursor's initial position
  122.    #--------------------------------------------------------------------------
  123.    def initialize(menu_index = 0)
  124.       @menu_index = menu_index      
  125.       commands_init
  126.       @changer = 0 #Change Party Order by Yargovish
  127.       @where = 0 #
  128.       @checker = 0   #
  129.    end
  130.    #--------------------------------------------------------------------------
  131.    # * Set Commands
  132.    #--------------------------------------------------------------------------
  133.    def commands_init
  134.       # MenuCommand
  135.       @commands = []
  136.       s1 = "Item"
  137.       s2 = "Skill"
  138.       s3 = "Equip"
  139.       s4 = "Status"
  140.       s5 = "Order"
  141.       s6 = "Option"
  142.       s7 = "System"
  143.       @commands.push(s1, s2, s3, s4, s5, s6, s7).flatten!
  144.       
  145.       @system_commands = []
  146.       o1 = "Save"
  147.       o2 = "Load"
  148.       o3 = "Exit"
  149.       @system_commands.push(o1, o2, o3).flatten!
  150.    end
  151.    #--------------------------------------------------------------------------
  152.    # * Main Processing
  153.    #--------------------------------------------------------------------------
  154.    def main
  155.       #Draw Windows
  156.       main_command_window
  157.       system_command_window
  158.       main_draw
  159.       #Execute transition
  160.       Graphics.transition
  161.       #Main Loop
  162.       loop do
  163.          #Main Loop
  164.          main_loop
  165.          break if main_scenechange?
  166.       end
  167.       #Prepare for transition
  168.       Graphics.freeze
  169.       #Dispose Windows
  170.       main_dispose
  171.    end
  172.    #--------------------------------------------------------------------------
  173.    # * Main Draw - Handles drawing windows
  174.    #--------------------------------------------------------------------------
  175.    def main_draw
  176.       #Draw Windows
  177.       # Make Info Window
  178.       @infos_window = Window_Infos.new
  179.       @infos_window.x = 0
  180.       @infos_window.y = 255
  181.       # Make map name window
  182.       @mapname_window = Window_MapName.new
  183.       @mapname_window.x = 0
  184.       @mapname_window.y = 384
  185.       # Make status window
  186.       @status_window = Window_MenuStatus.new
  187.       @status_window.x = 160
  188.       @status_window.y = 0      
  189.       end
  190.    #--------------------------------------------------------------------------
  191.    # * Main Command Window
  192.    #--------------------------------------------------------------------------
  193.    def main_command_window
  194.       # Make command window      
  195.       @command_window = Window_Command.new(160, @commands)
  196.       @command_window.index = @menu_index
  197.       # If number of party members is 0
  198.       if $game_party.actors.size == 0
  199.          # Disable items, skills, equipment, and status
  200.          @command_window.disable_item(0)
  201.          @command_window.disable_item(1)
  202.          @command_window.disable_item(2)
  203.          @command_window.disable_item(3)
  204.       end
  205.       # If save is forbidden
  206.       #if $game_system.save_disabled
  207.          # Disable save
  208.          #@command_window.disable_item(4)         
  209.       #end
  210.       if $game_party.actors.size <= 1 #
  211.          @command_window.disable_item(4)
  212.       end
  213.    end
  214.    #--------------------------------------------------------------------------
  215.    # * System Command Window
  216.    #--------------------------------------------------------------------------
  217.    def system_command_window
  218.       @load_enabled = false
  219.       @sys_command_window = Window_Command.new(128, @system_commands)
  220.       @sys_command_window.visible = false
  221.       @sys_command_window.active = false
  222.       @sys_command_window.x = 100
  223.       @sys_command_window.y = 210
  224.       @sys_command_window.z = 0
  225.       if $game_system.save_disabled
  226.          @sys_command_window.disable_item(0)
  227.       end
  228.       for i in 0..3
  229.          if (FileTest.exist?("Save#{i+1}.rxdata"))            
  230.             @load_enabled = true
  231.          end
  232.       end   
  233.       if !@load_enabled
  234.          @sys_command_window.disable_item(1)
  235.       end
  236.    end      
  237.    #--------------------------------------------------------------------------
  238.    # * Main Scene Change
  239.    #--------------------------------------------------------------------------
  240.    def main_scenechange?
  241.       # Abort loop if screen is changed
  242.       if $scene != self
  243.          return true
  244.       end
  245.       return false
  246.    end
  247.    #--------------------------------------------------------------------------
  248.    # * Main Dispose
  249.    #--------------------------------------------------------------------------
  250.    def main_dispose
  251.       # Dispose All Windows
  252.       @command_window.dispose
  253.       @sys_command_window.dispose
  254.       @infos_window.dispose
  255.       @mapname_window.dispose
  256.       @status_window.dispose
  257.    end
  258.    #--------------------------------------------------------------------------
  259.    # * Main Loop
  260.    #--------------------------------------------------------------------------
  261.    def main_loop
  262.       # Update game screen
  263.       Graphics.update
  264.       # Update input information
  265.       Input.update
  266.       # Frame update
  267.       update
  268.    end
  269.    #--------------------------------------------------------------------------
  270.    # * Frame Update
  271.    #--------------------------------------------------------------------------
  272.    def update
  273.       # Update Windows
  274.       update_windows
  275.       
  276.       if @sys_command_window.active
  277.          @sys_command_window.z = +500
  278.       end
  279.       
  280.       # If command window is active: call update_command
  281.       if @command_window.active
  282.          update_command
  283.          return
  284.       end
  285.       # If system window is active: call update_sys_command
  286.       if @sys_command_window.active
  287.          update_sys_command
  288.          return
  289.       end
  290.       # If status window is active: call update_status
  291.       if @status_window.active
  292.          update_status
  293.          return
  294.       end
  295.    end
  296.    #--------------------------------------------------------------------------
  297.    # * Window Update
  298.    #--------------------------------------------------------------------------
  299.    def update_windows      
  300.       @command_window.update if @command_window.visible
  301.       @sys_command_window.update if @sys_command_window.visible
  302.       @infos_window.update
  303.       @status_window.update
  304.       @mapname_window.update
  305.    end
  306.    #--------------------------------------------------------------------------
  307.    # * Frame Update (when command window is active)
  308.    #--------------------------------------------------------------------------
  309.    def update_command
  310.       # If B button was pressed
  311.       if Input.trigger?(Input::B)
  312.          # Play cancel SE
  313.          $game_system.se_play($data_system.cancel_se)
  314.          # Switch to map screen
  315.          $scene = Scene_Map.new
  316.          return
  317.       end
  318.       # If C button was pressed
  319.       if Input.trigger?(Input::C)
  320.          # If command other than save or end game, and party members = 0
  321.          if $game_party.actors.size == 0 and @command_window.index < 4
  322.             # Play buzzer SE
  323.             $game_system.se_play($data_system.buzzer_se)
  324.             return
  325.          end
  326.          # Branch by command window cursor position
  327.          case @command_window.index
  328.          when 0   # item
  329.             # Play decision SE
  330.             $game_system.se_play($data_system.decision_se)
  331.             # Switch to item screen
  332.             $scene = Scene_Item.new
  333.          when 1   # skill
  334.             # Play decision SE
  335.             $game_system.se_play($data_system.decision_se)
  336.             # Make status window active
  337.             @command_window.active = false
  338.             @status_window.active = true
  339.             @status_window.index = 0
  340.          when 2   # equipment
  341.             # Play decision SE
  342.             $game_system.se_play($data_system.decision_se)
  343.             # Make status window active
  344.             @command_window.active = false
  345.             @status_window.active = true
  346.             @status_window.index = 0
  347.          when 3   # status
  348.             # Play decision SE
  349.             $game_system.se_play($data_system.decision_se)
  350.             # Make status window active
  351.             @command_window.active = false
  352.             @status_window.active = true
  353.             @status_window.index = 0      
  354.          when 4   # Order
  355.             #Change Party Order by Yargovish
  356.             $game_system.se_play($data_system.decision_se)
  357.             @checker = 0
  358.             @command_window.active = false
  359.             @status_window.active = true
  360.             @status_window.index = 0   
  361.          when 5   #Option
  362.             #$game_system.se_play($data_system.decision_se)
  363.             #Put your Option Scene
  364.          when 6   #Call System Menu
  365.             $game_system.se_play($data_system.decision_se)
  366.             @sys_command_window.active = true
  367.             @sys_command_window.visible = true
  368.             @command_window.active = false            
  369.          end
  370.          return
  371.       end
  372.    end
  373.    #--------------------------------------------------------------------------
  374.    # * Update SysCommand Window
  375.    #--------------------------------------------------------------------------
  376.    def update_sys_command
  377.       if Input.trigger?(Input::B)
  378.          $game_system.se_play($data_system.cancel_se)
  379.          @command_window.active = true
  380.          @sys_command_window.active = false
  381.          @sys_command_window.visible = false
  382.          @sys_command_window.index = 0
  383.          @sys_command_window.z = 0
  384.          return
  385.       end
  386.       
  387.       if Input.trigger?(Input::C)
  388.          case @sys_command_window.index         
  389.          when 0   #Save
  390.             # # If saving is forbidden
  391.             if $game_system.save_disabled
  392.                # Play buzzer SE
  393.                $game_system.se_play($data_system.buzzer_se)
  394.                return
  395.             end
  396.             # Play decision SE
  397.             $game_system.se_play($data_system.decision_se)
  398.             # Switch to save screen
  399.             $scene = Scene_Save.new
  400.          when 1   #Load
  401.             #When there are no saved files
  402.             if !@load_enabled
  403.                # Play buzzer SE
  404.                $game_system.se_play($data_system.buzzer_se)
  405.                return
  406.             end
  407.             # Play decision SE
  408.             $game_system.se_play($data_system.decision_se)
  409.             # Switch to load screen
  410.             $scene = Scene_Load.new
  411.          when 2   #Quit
  412.             # Play decision SE
  413.             $game_system.se_play($data_system.decision_se)
  414.             # Switch to end game screen
  415.             $scene = Scene_End.new
  416.          end
  417.          return
  418.       end
  419.    end
  420.    #--------------------------------------------------------------------------
  421.    # * Frame Update (when status window is active)
  422.    #--------------------------------------------------------------------------
  423.    def update_status
  424.       # If B button was pressed
  425.       if Input.trigger?(Input::B)
  426.          # Play cancel SE
  427.          $game_system.se_play($data_system.cancel_se)
  428.          # Make command window active
  429.          @command_window.active = true
  430.          @status_window.active = false
  431.          @status_window.index = -1
  432.          return
  433.       end
  434.       # If C button was pressed
  435.       if Input.trigger?(Input::C)
  436.          # Branch by command window cursor position
  437.          case @command_window.index
  438.          when 1   # skill
  439.             # If this actor's action limit is 2 or more
  440.             if $game_party.actors[@status_window.index].restriction >= 2
  441.                # Play buzzer SE
  442.                $game_system.se_play($data_system.buzzer_se)
  443.                return
  444.             end
  445.             # Play decision SE
  446.             $game_system.se_play($data_system.decision_se)
  447.             # Switch to skill screen
  448.             $scene = Scene_Skill.new(@status_window.index)
  449.          when 2   # equipment
  450.             # Play decision SE
  451.             $game_system.se_play($data_system.decision_se)
  452.             # Switch to equipment screen
  453.             $scene = Scene_Equip.new(@status_window.index)
  454.          when 3   # status
  455.             # Play decision SE
  456.             $game_system.se_play($data_system.decision_se)
  457.             # Switch to status screen
  458.             $scene = Scene_Status.new(@status_window.index)
  459.          when 4   #Order
  460.             #Change Party Order by Yargovish
  461.             $game_system.se_play($data_system.decision_se)
  462.             if @checker == 0
  463.                @changer = $game_party.actors[@status_window.index]
  464.                @where = @status_window.index
  465.                @checker = 1
  466.             else
  467.                $game_party.actors[@where] = $game_party.actors[@status_window.index]
  468.                $game_party.actors[@status_window.index] = @changer
  469.                @checker = 0
  470.                @status_window.refresh
  471.                $game_player.refresh #
  472.             end
  473.          end
  474.          return
  475.       end
  476.    end      
  477. end
  478.  
  479.  
  480. class Scene_Save < Scene_File
  481.    alias save_on_decision on_decision
  482.    alias save_on_cancel on_cancel
  483.    #--------------------------------------------------------------------------
  484.    # * Decision Processing
  485.    #--------------------------------------------------------------------------
  486.    def on_decision(filename)
  487.       save_on_decision(filename)
  488.       $scene = Scene_Menu.new(6)
  489.    end
  490.    #--------------------------------------------------------------------------
  491.    # * Cancel Processing
  492.    #--------------------------------------------------------------------------
  493.    def on_cancel
  494.       save_on_cancel
  495.       $scene = Scene_Menu.new(6)
  496.    end
  497. end
  498.  
  499.  
  500. class Scene_Load < Scene_File
  501.    #--------------------------------------------------------------------------
  502.    # * Alias Listings
  503.    #--------------------------------------------------------------------------
  504.    alias load_initialize initialize
  505.    alias load_on_cancel on_cancel
  506.    #--------------------------------------------------------------------------
  507.    # * Object Initialization
  508.    #--------------------------------------------------------------------------
  509.    def initialize
  510.       @scene = $scene
  511.       load_initialize
  512.    end
  513.    #--------------------------------------------------------------------------
  514.    # * Cancel Processing
  515.    #--------------------------------------------------------------------------
  516.    def on_cancel
  517.       load_on_cancel
  518.       $scene = @scene
  519.    end
  520. end
  521.  
Expand to see the code.


Revised version (No SDK) Spoiler
  1.  
  2. #============================================================================
  3. #L's Custom Menu - Simple DMS Edit
  4. #============================================================================
  5.  
  6. module MenuCommand
  7.    Item       = 'Item'
  8.    Skill      = 'Skill'
  9.    Equip      = 'Equip'
  10.    Status    = 'Status'
  11.    Save       = 'Save'
  12.    Load       = 'Load'
  13.    End_Game = 'Exit'
  14.       
  15.    Order      = 'Order'
  16.    Party      = 'Party'
  17.    Option    = 'Option'
  18.    Quest      = 'Quest'
  19.    System    = 'System'
  20. end
  21.  
  22.  
  23. #------------------------------------------------------------------------------
  24. #   Game_Map
  25. #------------------------------------------------------------------------------
  26. class Game_Map
  27. #------------------------------------------------------------------------------
  28. #   Name
  29. #------------------------------------------------------------------------------
  30.    def name
  31.       $map_infos[@map_id]
  32.    end
  33. end
  34.  
  35.  
  36. #========================================
  37. #â €“   Scene_Title
  38. #--------------------------------------------------------------------------------
  39. # Setting functions for the Title
  40. #========================================
  41. class Scene_Title
  42.    $map_infos = load_data("Data/MapInfos.rxdata")
  43.    for key in $map_infos.keys
  44.       $map_infos[key] = $map_infos[key].name
  45.    end
  46. end
  47.  
  48.  
  49. class Window_Infos < Window_Base
  50.    #--------------------------------------------------------------------------
  51.    # * Object Initialization
  52.    #--------------------------------------------------------------------------
  53.    def initialize
  54.       super(0, 0, 160, 130)
  55.       self.contents = Bitmap.new(width - 32, height - 32)      
  56.       refresh
  57.    end
  58.    #--------------------------------------------------------------------------
  59.    # * Refresh
  60.    #--------------------------------------------------------------------------
  61.    def refresh
  62.       self.contents.clear
  63.       #---Show Time
  64.       self.contents.font.color = system_color
  65.       self.contents.draw_text(4, 0, 120, 32, "Time")
  66.       @total_sec = Graphics.frame_count / Graphics.frame_rate
  67.       hour = @total_sec / 60 / 60
  68.       min = @total_sec / 60 % 60
  69.       sec = @total_sec % 60
  70.       text = sprintf("%02d:%02d:%02d", hour, min, sec)
  71.       self.contents.font.color = normal_color
  72.       self.contents.draw_text(4, 0, 120, 32, text, 2)
  73.       #---Show Steps
  74.       self.contents.font.color = system_color
  75.       self.contents.draw_text(4, 25, 120, 32, "Steps")
  76.       self.contents.font.color = normal_color
  77.       self.contents.draw_text(4, 42, 120, 32, $game_party.steps.to_s, 2)
  78.       #---Show Money
  79.       case $game_party.gold
  80.          when 0..9999
  81.             gold = $game_party.gold
  82.          when 10000..99999
  83.             gold = $game_party.gold.to_s
  84.             array = gold.split(//)
  85.             gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
  86.          when 100000..999999
  87.             gold = $game_party.gold.to_s
  88.             array = gold.split(//)
  89.             gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
  90.          when 1000000..9999999
  91.             gold = $game_party.gold.to_s
  92.             array = gold.split(//)
  93.             gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
  94.       end
  95.       
  96.       self.contents.font.color = normal_color      
  97.       cx = contents.text_size($data_system.words.gold).width      
  98.       self.contents.draw_text(4, 67, 120-cx-2, 32, gold.to_s, 2)
  99.       self.contents.font.color = system_color
  100.       self.contents.draw_text(124-cx, 67, cx, 32, $data_system.words.gold, 2)
  101.    end
  102.    #--------------------------------------------------------------------------
  103.    # * Frame Update
  104.    #--------------------------------------------------------------------------
  105.    def update
  106.       super
  107.       if Graphics.frame_count / Graphics.frame_rate != @total_sec
  108.          refresh
  109.       end
  110.    end
  111. end
  112.  
  113.  
  114. class Window_MapName < Window_Base
  115.  def initialize
  116.     super(0, 0, 160, 96)
  117.     self.contents = Bitmap.new(width - 32, height - 32)   
  118.     refresh
  119.  end
  120.  def refresh
  121.     self.contents.clear
  122.     self.contents.font.color = system_color
  123.     self.contents.draw_text(4, 0, 120, 32, "Location")
  124.     self.contents.font.color = normal_color
  125.     self.contents.draw_text(4, 32, 120, 32, $game_map.name.to_s, 2)
  126.  end
  127. end
  128.  
  129.  
  130. #==============================================================================
  131. # ** Scene_Menu
  132. #------------------------------------------------------------------------------
  133. #   This class performs menu screen processing.
  134. #==============================================================================
  135.  
  136. class Scene_Menu
  137.    #--------------------------------------------------------------------------
  138.    # * Object Initialization
  139.    #       menu_index : command cursor's initial position
  140.    #--------------------------------------------------------------------------
  141.    def initialize(menu_index = 0)
  142.       @menu_index = menu_index      
  143.       commands_init
  144.       @changer = 0 #Change Party Order by Yargovish
  145.       @where = 0 #
  146.       @checker = 0   #
  147.    end
  148.    #--------------------------------------------------------------------------
  149.    # * Set Commands
  150.    #--------------------------------------------------------------------------
  151.    def commands_init
  152.       @commands = []
  153.       s1 = MenuCommand::Item
  154.       s2 = MenuCommand::Skill
  155.       s3 = MenuCommand::Equip
  156.       s4 = MenuCommand::Status
  157.       s5 = MenuCommand::Order
  158.       s6 = MenuCommand::System
  159.       @commands.push(s1, s2, s3, s4, s5, s6).flatten!
  160.       
  161.       @sys_commands = []
  162.       o1 = MenuCommand::Option
  163.       o2 = MenuCommand::Save
  164.       o3 = MenuCommand::Load
  165.       o4 = MenuCommand::End_Game
  166.       @sys_commands.push(o1, o2, o3, o4).flatten!
  167.    end
  168.    #--------------------------------------------------------------------------
  169.    # * Main Processing
  170.    #--------------------------------------------------------------------------
  171.    def main
  172.       #Draw Windows      
  173.       main_window
  174.       #Execute transition
  175.       Graphics.transition
  176.       #Main Loop
  177.       loop do
  178.          #Main Loop
  179.          main_loop
  180.          break if main_scenechange?
  181.       end
  182.       #Prepare for transition
  183.       Graphics.freeze
  184.       #Dispose Windows
  185.       main_dispose
  186.    end
  187.    #--------------------------------------------------------------------------
  188.    # * Main Draw - Handles drawing windows
  189.    #--------------------------------------------------------------------------
  190.    def main_window
  191.       #Draw Windows
  192.       main_command_window
  193.       system_command_window
  194.       # Make Info Window
  195.       @infos_window = Window_Infos.new
  196.       @infos_window.x = 0
  197.       @infos_window.y = 255
  198.       # Make map name window
  199.       @mapname_window = Window_MapName.new
  200.       @mapname_window.x = 0
  201.       @mapname_window.y = 384
  202.       # Make status window
  203.       @status_window = Window_MenuStatus.new
  204.       @status_window.x = 160
  205.       @status_window.y = 0      
  206.       end
  207.    #--------------------------------------------------------------------------
  208.    # * Main Command Window
  209.    #--------------------------------------------------------------------------
  210.    def main_command_window
  211.       # Make command window      
  212.       @command_window = Window_Command.new(160, @commands)
  213.       @command_window.index = @menu_index
  214.       if @command_window.height > 256
  215.          @command_window.height = 256
  216.       end
  217.       # If number of party members is 0
  218.       if $game_party.actors.size == 0
  219.          # Disable items, skills, equipment, and status
  220.          @command_window.disable_item(0)
  221.          @command_window.disable_item(1)
  222.          @command_window.disable_item(2)
  223.          @command_window.disable_item(3)
  224.       end
  225.       if $game_party.actors.size <= 1 #
  226.          #Disable change party order
  227.          @command_window.disable_item(4)
  228.       end
  229.    end
  230.    #--------------------------------------------------------------------------
  231.    # * System Command Window
  232.    #--------------------------------------------------------------------------
  233.    def system_command_window      
  234.       @sys_command_window = Window_Command.new(128, @sys_commands)
  235.       @sys_command_window.visible = false
  236.       @sys_command_window.active = false
  237.       @sys_command_window.x = 100
  238.       @sys_command_window.y = 210
  239.       @sys_command_window.z = 0
  240.       check_save_available
  241.       check_load_available
  242.    end
  243.    #-----------------
  244.    def check_save_available
  245.       # If save is forbidden
  246.       if $game_system.save_disabled
  247.          # Disable save
  248.          @sys_command_window.disable_item(1)
  249.       end
  250.    end
  251.    #-----------------
  252.    def check_load_available
  253.       #Check if saved file exists
  254.       @load_enabled = false
  255.       for i in 0..3
  256.          if (FileTest.exist?("Save#{i+1}.rxdata"))            
  257.             @load_enabled = true
  258.          end
  259.       end   
  260.       if !@load_enabled
  261.          #Put your @command_window.disable_item(index)
  262.          @sys_command_window.disable_item(2)
  263.       end
  264.    end
  265.    #--------------------------------------------------------------------------
  266.    # * Main Scene Change
  267.    #--------------------------------------------------------------------------
  268.    def main_scenechange?
  269.       # Abort loop if screen is changed
  270.       if $scene != self
  271.          return true
  272.       end
  273.       return false
  274.    end
  275.    #--------------------------------------------------------------------------
  276.    # * Main Dispose
  277.    #--------------------------------------------------------------------------
  278.    def main_dispose
  279.       # Dispose All Windows
  280.       @command_window.dispose
  281.       @sys_command_window.dispose
  282.       @infos_window.dispose
  283.       @mapname_window.dispose
  284.       @status_window.dispose
  285.    end
  286.    #--------------------------------------------------------------------------
  287.    # * Main Loop
  288.    #--------------------------------------------------------------------------
  289.    def main_loop
  290.       # Update game screen
  291.       Graphics.update
  292.       # Update input information
  293.       Input.update
  294.       # Frame update
  295.       update
  296.    end
  297.    #--------------------------------------------------------------------------
  298.    # * Frame Update
  299.    #--------------------------------------------------------------------------
  300.    def update
  301.       # Update Windows
  302.       update_windows
  303.       
  304.       if @sys_command_window.active
  305.          @sys_command_window.z = +500
  306.       end
  307.       
  308.       # If command window is active: call update_command
  309.       if @command_window.active
  310.          update_command
  311.          return
  312.       end
  313.       # If system window is active: call update_sys_command
  314.       if @sys_command_window.active
  315.          update_sys_command
  316.          return
  317.       end
  318.       # If status window is active: call update_status
  319.       if @status_window.active
  320.          update_status
  321.          return
  322.       end
  323.    end
  324.    #--------------------------------------------------------------------------
  325.    # * Window Update
  326.    #--------------------------------------------------------------------------
  327.    def update_windows      
  328.       @command_window.update if @command_window.visible
  329.       @sys_command_window.update if @sys_command_window.visible
  330.       @infos_window.update
  331.       @status_window.update
  332.       @mapname_window.update
  333.    end
  334.    #--------------------------------------------------------------------------
  335.    # * Frame Update (when command window is active)
  336.    #--------------------------------------------------------------------------
  337.    def update_command
  338.       # If B button was pressed
  339.       if Input.trigger?(Input::B)
  340.          # Play cancel SE
  341.          $game_system.se_play($data_system.cancel_se)
  342.          # Switch to map screen
  343.          $scene = Scene_Map.new
  344.          return
  345.       end
  346.       # If C button was pressed
  347.       if Input.trigger?(Input::C)
  348.          # Return if Disabled Command
  349.          if disabled_main_command?
  350.             # Play buzzer SE
  351.             $game_system.se_play($data_system.buzzer_se)
  352.             return
  353.          end
  354.          main_command_input
  355.          return
  356.       end
  357.    end
  358.    #--------------------------------------------------------------------------
  359.    # * Update SysCommand Window
  360.    #--------------------------------------------------------------------------
  361.    def update_sys_command
  362.       if Input.trigger?(Input::B)
  363.          $game_system.se_play($data_system.cancel_se)
  364.          @command_window.active = true
  365.          @sys_command_window.active = false
  366.          @sys_command_window.visible = false
  367.          @sys_command_window.index = 0
  368.          @sys_command_window.z = -500
  369.          return
  370.       end
  371.       # If C button was pressed
  372.       if Input.trigger?(Input::C)
  373.          # Return if Disabled Command
  374.          if disabled_main_command?
  375.             # Play buzzer SE
  376.             $game_system.se_play($data_system.buzzer_se)
  377.             return
  378.          end
  379.          # Command Input
  380.          sys_command_input
  381.          return
  382.       end
  383.    end
  384.    #--------------------------------------------------------------------------
  385.    # * Frame Update (when status window is active)
  386.    #--------------------------------------------------------------------------
  387.    def update_status
  388.       # If B button was pressed
  389.       if Input.trigger?(Input::B)
  390.          # Play cancel SE
  391.          $game_system.se_play($data_system.cancel_se)
  392.          # Make command window active
  393.          @command_window.active = true
  394.          @status_window.active = false
  395.          @status_window.index = -1
  396.          return
  397.       end
  398.       # If C button was pressed
  399.       if Input.trigger?(Input::C)
  400.          # Return if Disabled Command
  401.          if disabled_main_command?
  402.             # Play buzzer SE
  403.             $game_system.se_play($data_system.buzzer_se)
  404.             return
  405.          end
  406.          # Command Input
  407.          sub_command_input
  408.          return
  409.       end
  410.    end
  411.    #--------------------------------------------------------------------------
  412.    # * Disabled Main Command? Test
  413.    #--------------------------------------------------------------------------
  414.    def disabled_main_command?
  415.       # Gets Current Command
  416.       command = @commands[@command_window.index]
  417.       sys_command = @sys_commands[@sys_command_window.index]
  418.       # Gets Menu Commands
  419.       c = MenuCommand
  420.       # If 0 Party Size
  421.       if $game_party.actors.size == 0
  422.          # If Item, Skill, Equip or Status Selected
  423.          if [c::Item, c::Skill, c::Equip, c::Status].include?(command)
  424.             return true
  425.          end
  426.       end
  427.       if $game_party.actors.size <= 1
  428.          if [c::Order].include?(command)
  429.             return true
  430.          end
  431.       end
  432.       # If Save Disabled && Command is Save
  433.       return true if $game_system.save_disabled && sys_command == c::Save
  434.       # If Load Disabled && Command is Load
  435.       return true if !@load_enabled && sys_command == c::Load
  436.       return false
  437.    end
  438.    #--------------------------------------------------------------------------
  439.    # * Update Command Check
  440.    #--------------------------------------------------------------------------
  441.    def main_command_input
  442.       # Loads Current Command
  443.       command = @commands[@command_window.index]
  444.       # Play decision SE
  445.       $game_system.se_play($data_system.decision_se)
  446.       # Checks Commands
  447.       case command
  448.       when MenuCommand::Item   #item
  449.          command_item
  450.       when MenuCommand::Skill #skill
  451.          command_skill
  452.       when MenuCommand::Equip #equip
  453.          command_equip
  454.       when MenuCommand::Status   #status
  455.          command_status
  456.       when MenuCommand::Order #order
  457.          command_order
  458.       when MenuCommand::System   #call system submenu
  459.          $game_system.se_play($data_system.decision_se)
  460.          @sys_command_window.active = true
  461.          @sys_command_window.visible = true
  462.          @command_window.active = false      
  463.       end
  464.    end
  465.    #--------------------------------------------------------------------------
  466.    # * Update System Command Check
  467.    #--------------------------------------------------------------------------
  468.    def sys_command_input
  469.       # Loads Current Command
  470.       sys_command = @sys_commands[@sys_command_window.index]
  471.       # Play decision SE
  472.       $game_system.se_play($data_system.decision_se)
  473.       # Checks Commands
  474.       case sys_command
  475.       when MenuCommand::Option   #option
  476.          command_option
  477.       when MenuCommand::Save   #save
  478.          command_save
  479.       when MenuCommand::Load   #load
  480.          command_load
  481.       when MenuCommand::End_Game   #exit
  482.          command_endgame
  483.       end
  484.    end
  485.    #--------------------------------------------------------------------------
  486.    # * Disabled Sub Command? Test
  487.    #--------------------------------------------------------------------------
  488.    def disabled_sub_command?
  489.       # Loads Current Command
  490.       command = @commands[@command_window.index]
  491.       # If Skill Selected
  492.       if command == MenuCommand::Skill
  493.          # If this actor's action limit is 2 or more
  494.          if $game_party.actors[@status_window.index].restriction >= 2
  495.             return true
  496.          end
  497.       end
  498.       return false
  499.    end
  500.    #--------------------------------------------------------------------------
  501.    # * Update Status Check
  502.    #--------------------------------------------------------------------------
  503.    def sub_command_input
  504.       # Loads Current Command
  505.       command = @commands[@command_window.index]
  506.       # Play decision SE
  507.       $game_system.se_play($data_system.decision_se)
  508.       # Checks Command By Name
  509.       case command
  510.       when MenuCommand::Skill
  511.          command_skill
  512.       when MenuCommand::Equip
  513.          command_equip
  514.       when MenuCommand::Status
  515.          command_status
  516.       when MenuCommand::Order
  517.          command_order
  518.       end
  519.    end
  520.    #--------------------------------------------------------------------------
  521.    # * Command Item
  522.    #--------------------------------------------------------------------------
  523.    def command_item
  524.       # Switch to item screen
  525.       $scene = Scene_Item.new
  526.    end
  527.    #--------------------------------------------------------------------------
  528.    # * Command Skill
  529.    #--------------------------------------------------------------------------
  530.    def command_skill
  531.       # If Main Command Active
  532.       if @command_window.active
  533.          # Activate Status Window
  534.          active_status_window
  535.          return
  536.       end
  537.       # Switch to skill screen
  538.       $scene = Scene_Skill.new(@status_window.index)
  539.    end
  540.    #--------------------------------------------------------------------------
  541.    # * Command Equip
  542.    #--------------------------------------------------------------------------
  543.    def command_equip
  544.       # If Main Command Active
  545.       if @command_window.active
  546.          # Activate Status Window
  547.          active_status_window
  548.          return
  549.       end
  550.       # Switch to equipment screen
  551.       $scene = Scene_Equip.new(@status_window.index)
  552.    end
  553.    #--------------------------------------------------------------------------
  554.    # * Command Status
  555.    #--------------------------------------------------------------------------
  556.    def command_status
  557.       # If Main Command Active
  558.       if @command_window.active
  559.          # Activate Status Window
  560.          active_status_window
  561.          return
  562.       end
  563.       # Switch to status screen
  564.       $scene = Scene_Status.new(@status_window.index)
  565.    end
  566.    #--------------------------------------------------------------------------
  567.    # * Command Order
  568.    #--------------------------------------------------------------------------
  569.    def command_order
  570.       # If Main Command Active
  571.       if @command_window.active
  572.          # Activate Status Window
  573.          active_status_window
  574.          @checker = 0
  575.          return
  576.       end
  577.       #Change Party Order by Yargovish
  578.       if @checker == 0
  579.          @changer = $game_party.actors[@status_window.index]
  580.          @where = @status_window.index
  581.          @checker = 1
  582.       else
  583.          $game_party.actors[@where] = $game_party.actors[@status_window.index]
  584.          $game_party.actors[@status_window.index] = @changer
  585.          @checker = 0
  586.          @status_window.refresh
  587.          $game_player.refresh #
  588.       end         
  589.    end
  590.    #--------------------------------------------------------------------------
  591.    # * Command Party
  592.    #--------------------------------------------------------------------------
  593.    def command_party
  594.       # Switch to party change screen
  595.       #Put your Party Change Scene here
  596.    end
  597.    #--------------------------------------------------------------------------
  598.    # * Command Option
  599.    #--------------------------------------------------------------------------
  600.    def command_option
  601.       # Switch to party change screen
  602.       #Put your Option Scene here
  603.    end
  604.    #--------------------------------------------------------------------------
  605.    # * Command Quest
  606.    #--------------------------------------------------------------------------
  607.    def command_quest
  608.       # Switch to party change screen
  609.       #Put your Quest Scene here
  610.    end
  611.    #--------------------------------------------------------------------------
  612.    # * Command Save
  613.    #--------------------------------------------------------------------------
  614.    def command_save
  615.       # Switch to save screen
  616.       $scene = Scene_Save.new
  617.    end
  618.    #--------------------------------------------------------------------------
  619.    # * Command Load
  620.    #--------------------------------------------------------------------------
  621.    def command_load
  622.       # Switch to load screen
  623.       $scene = Scene_Load.new
  624.    end
  625.    #--------------------------------------------------------------------------
  626.    # * Command End Game
  627.    #--------------------------------------------------------------------------
  628.    def command_endgame
  629.       # Switch to end game screen
  630.       $scene = Scene_End.new
  631.    end
  632.    #--------------------------------------------------------------------------
  633.    # * Activate Status Window
  634.    #--------------------------------------------------------------------------
  635.    def active_status_window
  636.       # Make status window active
  637.       @command_window.active = false
  638.       @status_window.active = true
  639.       #@status_window.visible = true
  640.       @status_window.index = 0
  641.    end
  642. end
  643.  
Expand to see the code.


The rest will be posted separately, for I cannot post 'many' scripts in one message.

Credit
Well... various authors for various menu scripts, for I learned how to make my main menu by reading them.

Authoress' Note
I'm quite retired now, so I may not answer all of your question.   Feel free to use them.
cool im gonna use it!thanks!
Gosh, forget '$scene.current_location.to_s' thing. It's commented out, so you don't have to mind, but I forgot delete that line while posting.
I just have one little question about your menu system scripts.
Well a few actually, but,
1. When I go and select Options it dose nothing(did you leave that out?)
2. When I select Help nothing(same as 1)

other than these two questions awesome scripts.
'Option' and 'Help' are dummy commands until you got any script for that(sams as 'Quest Log'). Just get any 'config' script and call it by menu command('help/tutorial', and 'quest' too). If you don't need them, you may delete the commands.
Ok.
I was wanderin, but also it can be used for like the three book scripts.
Monster, Item, and Skills.
Is there a way to script an Option screen to were the player can change the Window screen, Music volume, sound volume, activate random battles or event battles(touch a monster to battle it), or some other random stuff I can't think of right now.

And for the Help command, is there a way to make it say like:
"Talk to (NPC) for directions to near by village" or something.
Or just gives random help on monsters weakness, how to find a town, what path to take in a cave, or what items are required for a recipe to make a weapon or piece of equipment.

But this is just me here.
Chaos_Prime, all that you said sounds cool, I'm no scripter, But i'm sure someone could come up with that stuff, and by the way Landarma, Nice work, I know how hard it is to make a CMS, Because I tried and failed miserably
At CMS #2, it doesn't show me the character stats?
[QUOTE=Robintje;258740]At CMS #2, it doesn't show me the character stats?[/QUOTE]

[normal], [poison] things or what stats?

**By the way, they're all old. I already revised them, yet to post.

**Edit: Posted revised ones.
why in the CMS#2 the "option" and "help" don't work?
They're 'optional' dummy commands. You have to get any option script for that. Or you can delete them if they're not needed.
lol, really nice! CMS #1 is almost exactly what I did, only, I added 'Options' and 'Load' above and below the 'Save' command. Options is dummy of course(until I figure out how to do one options system myself ^_^) I also like CMS #2, especially in the screenshot.
I cant see any of the text or nething where my character is supposed to be on #2 no sdk...heres a pic

http://img88.imageshack.us/img88/8263/errorkw8.th.png[/IMG]
I don't have no idea, either. By default, it uses your default font. So, if it is not font problem..... I don't know.
Reposting broken scripts.  Since I cannot post them all at once, I'll post it one-by-one.


CMS #1 - Simple edit of default menu
Continued..

SDK2 version Spoiler
#============================================================================
#L's Custom Menu - Simple DMS Edit SDK2 ver.
#============================================================================

#--------------------------------------------------------------------------
# * Begin SDK Log
#--------------------------------------------------------------------------
SDK.log("L's DMS Edit", 'Landarma', '???', '2007-03-17')

#--------------------------------------------------------------------------
# * Begin SDK Requirement Check
#--------------------------------------------------------------------------
SDK.check_requirements(2.0, [1])

#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if SDK.enabled?("L's DMS Edit")

module SDK::Scene_Commands
 #============================================================================
 # ** Scene_Menu
 #============================================================================
 module Scene_Menu
   Item     = 'Item'
   Skill    = 'Skill'
   Equip    = 'Equip'
   Status   = 'Status'
   Save     = 'Save'
   Load     = 'Load'
   End_Game = 'Exit'
   
   Order    = 'Order'
   Party    = 'Party'
   Option   = 'Option'
   Quest    = 'Quest'
   System   = 'System'
   
   Menu_Commands = [Item, Skill, Equip, Status, Order, System]
   SysMenu_Commands = [Option, Save, Load, End_Game]
 end
end


if SDK.enabled?('Map Info')

#==============================================================================
# â €“   Game_Map
#==============================================================================
class Game_Map    
 def name
    $data_mapinfos[@map_id].name
 end  
end

else
#------------
#------------------------------------------------------------------------------
#  Game_Map
#------------------------------------------------------------------------------
class Game_Map
#------------------------------------------------------------------------------
#  Name
#------------------------------------------------------------------------------
 def name
   $map_infos[@map_id]
 end
end


#========================================
#â €“   Scene_Title
#--------------------------------------------------------------------------------
# Setting functions for the Title
#========================================
class Scene_Title
 $map_infos = load_data("Data/MapInfos.rxdata")
 for key in $map_infos.keys
   $map_infos[key] = $map_infos[key].name
 end
end

#-----------------
end


class Window_Infos < Window_Base
 #--------------------------------------------------------------------------
 # * Object Initialization
 #--------------------------------------------------------------------------
 def initialize
   super(0, 0, 160, 130)
   self.contents = Bitmap.new(width - 32, height - 32)
   self.windowskin = RPG::Cache.windowskin($game_system.windowskin_name)    
   refresh
 end
 #--------------------------------------------------------------------------
 # * Refresh
 #--------------------------------------------------------------------------
 def refresh
   self.contents.clear
   #---Show Time
   self.contents.font.color = system_color
   self.contents.draw_text(4, 0, 120, 32, "Time")
   @total_sec = Graphics.frame_count / Graphics.frame_rate
   hour = @total_sec / 60 / 60
   min = @total_sec / 60 % 60
   sec = @total_sec % 60
   text = sprintf("%02d:%02d:%02d", hour, min, sec)
   self.contents.font.color = normal_color
   self.contents.draw_text(4, 0, 120, 32, text, 2)
   #---Show Steps
   self.contents.font.color = system_color
   self.contents.draw_text(4, 25, 120, 32, "Steps")
   self.contents.font.color = normal_color
   self.contents.draw_text(4, 42, 120, 32, $game_party.steps.to_s, 2)
   #---Show Money
   case $game_party.gold
   when 0..9999
     gold = $game_party.gold
   when 10000..99999
     gold = $game_party.gold.to_s
     array = gold.split(//)
     gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
   when 100000..999999
     gold = $game_party.gold.to_s
     array = gold.split(//)
     gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
   when 1000000..9999999
     gold = $game_party.gold.to_s
     array = gold.split(//)
     gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
   when 10000000..99999999
     gold = $game_party.gold.to_s
     array = gold.split(//)
     gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s+","+array[5].to_s+array[6].to_s+array[7].to_s
   when 100000000..999999999
     gold = $game_party.gold
   end
   
   self.contents.font.color = normal_color    
   cx = contents.text_size($data_system.words.gold).width    
   self.contents.draw_text(4, 67, 120-cx-2, 32, gold.to_s, 2)
   self.contents.font.color = system_color
   self.contents.draw_text(124-cx, 67, cx, 32, $data_system.words.gold, 2)
 end
 #--------------------------------------------------------------------------
 # * Frame Update
 #--------------------------------------------------------------------------
 def update
   super
   if Graphics.frame_count / Graphics.frame_rate != @total_sec
     refresh
   end
 end
end


class Window_MapName < Window_Base
def initialize
  super(0, 0, 160, 96)
  self.contents = Bitmap.new(width - 32, height - 32)  
  refresh
end
def refresh
  self.contents.clear
  self.contents.font.color = system_color
  self.contents.draw_text(4, 0, 120, 32, "Location")
  self.contents.font.color = normal_color
  self.contents.draw_text(4, 32, 120, 32, $game_map.name, 2)
end
end


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

class Scene_Menu < SDK::Scene_Base
 #--------------------------------------------------------------------------
 # * Object Initialization
 #     menu_index : command cursor's initial position
 #--------------------------------------------------------------------------
 def initialize(menu_index = 0)
   @menu_index = menu_index
   party_order_init
 end
 #--------------------------------------------------------------------------
 # * Party Order Change Initiation
 #--------------------------------------------------------------------------
 def party_order_init
   @changer = 0 #Change Party Order by Yargovish
   @where = 0 #
   @checker = 0  #
 end
 #--------------------------------------------------------------------------
 # * Main Processing : Window Initialization
 #--------------------------------------------------------------------------
 def main_window
   super
   # Make main command window
   main_command_window
   system_command_window
   # Make Info Window
   @infos_window = Window_Infos.new
   @infos_window.x = 0
   @infos_window.y = 255
   # Make map name window
   @mapname_window = Window_MapName.new
   @mapname_window.x = 0
   @mapname_window.y = 384
   # Make status window
   @status_window = Window_MenuStatus.new
   @status_window.x = 160
   @status_window.y = 0
 end
 #--------------------------------------------------------------------------
 # * Main Processing : Window Initialization : Main Command
 #--------------------------------------------------------------------------
 def main_command_window
   # Make command window
   command = SDK::Scene_Commands::Scene_Menu::Menu_Commands.dup
   @command_window = Window_Command.new(160, command)
   @command_window.index = @menu_index
   if @command_window.height > 256
     @command_window.height = 256
   end
   # If number of party members is 0
   if $game_party.actors.size == 0
     # Disable items, skills, equipment, and status
     @command_window.disable_item(0)
     @command_window.disable_item(1)
     @command_window.disable_item(2)
     @command_window.disable_item(3)
   end
   if $game_party.actors.size <= 1 #
     #Disable change party order
     @command_window.disable_item(4)
   end
 end
 #--------------------------------------------------------------------------
 # * Main Processing : Window Initialization : System Command
 #--------------------------------------------------------------------------
 def system_command_window
   # Make command window
   sys_command = SDK::Scene_Commands::Scene_Menu::SysMenu_Commands.dup
   @sys_command_window = Window_Command.new(128, sys_command)
   @sys_command_window.visible = false
   @sys_command_window.active = false
   @sys_command_window.x = 100
   @sys_command_window.y = 180
   #@sys_command_window.z = 0
   check_save_available
   check_load_available
 end
 #-----------------
 def check_save_available
   # If save is forbidden
   if $game_system.save_disabled
     # Disable save
     @sys_command_window.disable_item(1)
   end
 end
 #-----------------
 def check_load_available
   #Check if saved file exists
   @load_enabled = false
   for i in 0..3
     if (FileTest.exist?("Save#{i+1}.rxdata"))        
       @load_enabled = true
     end
   end  
   if !@load_enabled
     #Put your @command_window.disable_item(index)
     @sys_command_window.disable_item(2)
   end
 end
 #--------------------------------------------------------------------------
 # * Frame Update
 #--------------------------------------------------------------------------
 def update
   super
   # If command window is active: call update_command
   if @command_window.active
     update_command
     return
   # If status window is active: call update_status
   elsif @status_window.active
     update_status
     return
   end
   
   if @sys_command_window.active
     @sys_command_window.z = +500
   end
   # If system window is active: call update_sys_command
   if @sys_command_window.active
     update_sys_command
     return
   end
 end
 #--------------------------------------------------------------------------
 # * Frame Update (when command window is active)
 #--------------------------------------------------------------------------
 def update_command
   # If B button was pressed
   if Input.trigger?(Input::B)
     # Play cancel SE
     $game_system.se_play($data_system.cancel_se)
     # Switch to map screen
     $scene = Scene_Map.new
     return
   end
   # If C button was pressed
   if Input.trigger?(Input::C)
     # Return if Disabled Command
     if disabled_main_command?
       # Play buzzer SE
       $game_system.se_play($data_system.buzzer_se)
       return
     end
     # Command Input
     main_command_input
     return
   end
 end
 #--------------------------------------------------------------------------
 # * Update SysCommand Window
 #--------------------------------------------------------------------------
 def update_sys_command
   if Input.trigger?(Input::B)
     $game_system.se_play($data_system.cancel_se)
     @command_window.active = true
     @sys_command_window.active = false
     @sys_command_window.visible = false
     @sys_command_window.index = 0
     @sys_command_window.z = -500
     return
   end
   # If C button was pressed
   if Input.trigger?(Input::C)
     # Return if Disabled Command
     if disabled_main_command?
       # Play buzzer SE
       $game_system.se_play($data_system.buzzer_se)
       return
     end
     # Command Input
     sys_command_input
     return
   end
 end
 #--------------------------------------------------------------------------
 # * Frame Update (when status window is active)
 #--------------------------------------------------------------------------
 def update_status
   # If B button was pressed
   if Input.trigger?(Input::B)
     # Play cancel SE
     $game_system.se_play($data_system.cancel_se)
     # Make command window active
     @command_window.active = true
     @status_window.active = false
     @status_window.index = -1
     return
   end
   # If C button was pressed
   if Input.trigger?(Input::C)
     # Return if Disabled Command
     if disabled_main_command?
       # Play buzzer SE
       $game_system.se_play($data_system.buzzer_se)
       return
     end
     # Command Input
     sub_command_input
     return
   end
 end
 #--------------------------------------------------------------------------
 # * Disabled Main Command? Test
 #--------------------------------------------------------------------------
 def disabled_main_command?
   # Gets Current Command
   command = @command_window.command
   sys_command = @sys_command_window.command
   # Gets SDK Scene_Menu Commands
   c = SDK::Scene_Commands::Scene_Menu
   # If 0 Party Size
   if $game_party.actors.size == 0
     # If Item, Skill, Equip or Status Selected
     if [c::Item, c::Skill, c::Equip, c::Status].include?(command)
       return true
     end
   end
   if $game_party.actors.size <= 1
     if [c::Order].include?(command)
       return true
     end
   end
   # If Save Disabled && Command is Save
   return true if $game_system.save_disabled && sys_command == c::Save
   # If Load Disabled && Command is Load
   return true if !@load_enabled && sys_command == c::Load
   return false
 end
 #--------------------------------------------------------------------------
 # * Main Command Input
 #--------------------------------------------------------------------------
 def main_command_input
   # Play decision SE
   $game_system.se_play($data_system.decision_se)
   # Branch by command window cursor position
   case @command_window.command
   when SDK::Scene_Commands::Scene_Menu::Item      # item
     command_item
   when SDK::Scene_Commands::Scene_Menu::Skill     # skill
     command_skill
   when SDK::Scene_Commands::Scene_Menu::Equip     # equipment
     command_equip
   when SDK::Scene_Commands::Scene_Menu::Status    # status
     command_status
   when SDK::Scene_Commands::Scene_Menu::Order      # order
     command_order
   when SDK::Scene_Commands::Scene_Menu::Option    #option
     command_option
   when SDK::Scene_Commands::Scene_Menu::System  # call system menu      
     $game_system.se_play($data_system.decision_se)
     @sys_command_window.active = true
     @sys_command_window.visible = true
     @command_window.active = false  
   end
 end
 #--------------------------------------------------------------------------
 # * System Command Input
 #--------------------------------------------------------------------------
 def sys_command_input
   # Play decision SE
   $game_system.se_play($data_system.decision_se)
   # Branch by command window cursor position
   case @sys_command_window.command
   when SDK::Scene_Commands::Scene_Menu::Save  #save
     command_save
   when SDK::Scene_Commands::Scene_Menu::Load  #load
     command_load
   when SDK::Scene_Commands::Scene_Menu::End_Game  #end game
     command_endgame
   when SDK::Scene_Commands::Scene_Menu::Option    #option
     command_option
   end
 end
 #--------------------------------------------------------------------------
 # * Disabled Sub Command? Test
 #--------------------------------------------------------------------------
 def disabled_sub_command?
   # If Skill Selected
   if @command_window.command == SDK::Scene_Commands::Scene_Menu::Skill
     # If this actor's action limit is 2 or more
     if $game_party.actors[@status_window.index].restriction >= 2
       return true
     end
   end
   return false
 end
 #--------------------------------------------------------------------------
 # * Sub Command Input
 #--------------------------------------------------------------------------
 def sub_command_input
   # Play decision SE
   $game_system.se_play($data_system.decision_se)
   # Branch by command window cursor position
   case @command_window.command
   when SDK::Scene_Commands::Scene_Menu::Skill     # skill
     command_skill
   when SDK::Scene_Commands::Scene_Menu::Equip     # equipment
     command_equip
   when SDK::Scene_Commands::Scene_Menu::Status    # status
     command_status
   when SDK::Scene_Commands::Scene_Menu::Order      # order
     command_order
   end
 end
 #--------------------------------------------------------------------------
 # * Command : Item
 #--------------------------------------------------------------------------
 def command_item
   # Switch to item screen
   $scene = Scene_Item.new
 end
 #--------------------------------------------------------------------------
 # * Command : Skill
 #--------------------------------------------------------------------------
 def command_skill
   # If Main Command Active
   if @command_window.active
     # Activate Status Window
     active_status_window
     return
   end
   # Switch to skill screen
   $scene = Scene_Skill.new(@status_window.index)
 end
 #--------------------------------------------------------------------------
 # * Command : Equip
 #--------------------------------------------------------------------------
 def command_equip
   # If Main Command Active
   if @command_window.active
     # Activate Status Window
     active_status_window
     return
   end
   # Switch to equipment screen
   $scene = Scene_Equip.new(@status_window.index)
 end
 #--------------------------------------------------------------------------
 # * Command : Status
 #--------------------------------------------------------------------------
 def command_status
   # If Main Command Active
   if @command_window.active
     # Activate Status Window
     active_status_window
     return
   end
   # Switch to status screen
   $scene = Scene_Status.new(@status_window.index)
 end
 #--------------------------------------------------------------------------
 # * Command : Order
 #--------------------------------------------------------------------------
 def command_order
   # If Main Command Active
   if @command_window.active
     # Activate Status Window
     active_status_window
     @checker = 0
     return
   end
   #Change Party Order by Yargovish
   if @checker == 0
     @changer = $game_party.actors[@status_window.index]
     @where = @status_window.index
     @checker = 1
   else
     $game_party.actors[@where] = $game_party.actors[@status_window.index]
     $game_party.actors[@status_window.index] = @changer
     @checker = 0
     @status_window.refresh
     $game_player.refresh #
   end      
 end
 #--------------------------------------------------------------------------
 # * Command : Party
 #--------------------------------------------------------------------------
 def command_party
   # Switch to party change screen
   #Put your Party Change Scene here
 end
 #--------------------------------------------------------------------------
 # * Command : Option
 #--------------------------------------------------------------------------
 def command_option
   # Switch to option screen
   #Put your Option Scene here
   $scene = Scene_ConfigurationType.new
 end
 #--------------------------------------------------------------------------
 # * Command : Quest
 #--------------------------------------------------------------------------
 def command_quest
   # Switch to quest screen
   #Put your Quest Scene here
 end
 #--------------------------------------------------------------------------
 # * Command : Save
 #--------------------------------------------------------------------------
 def command_save
   # Switch to save screen
   $scene = Scene_Save.new
 end
 #--------------------------------------------------------------------------
 # * Command : Load
 #--------------------------------------------------------------------------
 def command_load
   # Switch to load screen
   $scene = Scene_Load.new
 end
 #--------------------------------------------------------------------------
 # * Command : End Game
 #--------------------------------------------------------------------------
 def command_endgame
   # Switch to end game screen
   $scene = Scene_End.new
 end
 #--------------------------------------------------------------------------
 # * Activate Status Window
 #--------------------------------------------------------------------------
 def active_status_window
   # Make status window active
   @command_window.active = false
   @status_window.active = true
   @status_window.index = 0
 end
end

#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
end
Expand to see the code.



CMS #2 - Simple-looking menu
 Originally, it was for private use, so I didn't intend to release it by public.  I tried to make its look as simple as possible, but some things were not that simple for me.
(Note: I tried to make it look like that of RPG Tkool Dante98/DantePC.  Though it doesn't look same, it looks similar to that of oldest RPG Maker series product..)

Screenshot Spoiler
http://img368.imageshack.us/img368/3828/rmxpcmstest04cl4.png[/img]


Script (Older one) Spoiler
#L's Custom Menu 2

#==============================================================================
# Window_Gold
#==============================================================================
class Window_Gold < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(439, 413, 200, 64)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    #Z-Pos
    self.z = 100
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Advanced Gold Display mini-script by Dubealex.
    self.contents.clear     
    case $game_party.gold
      when 0..9999
        gold = $game_party.gold
      when 10000..99999
        gold = $game_party.gold.to_s
        array = gold.split(//)
        gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
      when 100000..999999
        gold = $game_party.gold.to_s
        array = gold.split(//)
        gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
      when 1000000..9999999
        gold = $game_party.gold.to_s
        array = gold.split(//)
        gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
      end
 
    self.contents.font.color = system_color
    gold_word = $data_system.words.gold.to_s + " /"
    cx = contents.text_size(gold_word).width
    cx2=contents.text_size(gold.to_s).width
    self.contents.draw_text(4, 0, 160-cx-2, 32, gold_word)
    self.contents.font.color = text_color(0)
    self.contents.draw_text(164-cx2+2, 0, cx2, 32, gold.to_s, 2)
  end
end


#==============================================================================
# Window_PlayTime
#==============================================================================
class Window_PlayTime < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(239, 413, 200, 64)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    #Z-Pos
    self.z = 100
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 120, 32, "Time")
    @total_sec = Graphics.frame_count / Graphics.frame_rate
    hour = @total_sec / 60 / 60
    min = @total_sec / 60 % 60
    sec = @total_sec % 60
    text = sprintf("%02d:%02d:%02d", hour, min, sec)
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 0, 160, 32, text, 2)
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    if Graphics.frame_count / Graphics.frame_rate != @total_sec
      refresh
    end
  end
end


#==============================================================================
# â €“   Game_Map
#==============================================================================
class Game_Map   
  def name
     $map_infos[@map_id]
  end   
end


#========================================
#â €“   Scene_Title
#--------------------------------------------------------------------------------
# Setting functions for the Title
#========================================
class Scene_Title
  $map_infos = load_data("Data/MapInfos.rxdata")
  for key in $map_infos.keys
    $map_infos[key] = $map_infos[key].name
  end
end

#==============================================================================
# Window_MapName
#==============================================================================
class Window_MapName < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 413, 239, 64)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    #Z-Pos
    self.z = 100
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear   
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 0, 200, 32, $game_map.name.to_s, 1)
  end 
end


#==============================================================================
# Window_MenuStatus
#==============================================================================
class Window_MenuStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    $game_party.actors.size < 4 ? i = 14 : i = 0
    $game_party.actors.size == 1 ? i = 24 : i = i
    super(177, 0, 462, ($game_party.actors.size * 72)+i)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    #Z-Pos
    self.z = 100
    #Refresh and add the contents to window   
    refresh
    self.active = false
    self.index = -1
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      x = 16
      y = i*64
      actor = $game_party.actors[i]
      draw_actor_name(actor, x, y)
      draw_actor_class(actor, x + 144, y)
      draw_actor_state(actor, x + 260, y )
      draw_actor_level(actor, x, y + 32)
      draw_actor_hp(actor, x + 98, y + 32)
      draw_actor_sp(actor, x + 254, y + 32)
    end
  end
  #--------------------------------------------------------------------------
  # * Cursor Rectangle Update
  #--------------------------------------------------------------------------
  def update_cursor_rect
    if @index < 0
      self.cursor_rect.empty
    else
      self.cursor_rect.set(0, @index * 64, self.width - 32, 64)
    end
  end
end


#==============================================================================
# Scene_Menu
#==============================================================================
class Scene_Menu
  def initialize(menu_index = 0)
    @menu_index = menu_index
    commands_init
    @changer = 0 #Change Party Order by Yargovish
    @where = 0 #
    @checker = 0  #
  end
  #--------------------------------------------------------------------------
  # * Set Commands
  #--------------------------------------------------------------------------
  def commands_init
    # MenuCommand
    @commands = []
    s1 = "Item"
    s2 = "Skill"
    s3 = "Equip"
    s4 = "Status"
    s5 = "Order"
    s6 = "System"
    @commands.push(s1, s2, s3, s4, s5, s6).flatten!
   
    @system_commands = []
    o1 = "Option"
    o2 = "Help"
    o3 = "Save"
    o4 = "Load"
    o5 = "Exit"
    @system_commands.push(o1, o2, o3, o4, o5).flatten!
  end
  #--------------------------------------------------------------------------
  # * Main - Handles drawing/disposing windows and the main loop
  #--------------------------------------------------------------------------
  def main
    #Draw Windows
    main_command_window
    system_command_window
    main_draw
    #Execute transition
    Graphics.transition
    #Main Loop
    loop do
      #Main Loop
      main_loop
      break if main_scenechange?
    end
    #Prepare for transition
    Graphics.freeze
    #Dispose Windows
    main_dispose
  end
  #--------------------------------------------------------------------------
  # * Main Draw - Handles drawing windows
  #--------------------------------------------------------------------------
  def main_draw
    #Draw Background
    @background = Spriteset_Map.new
    #Draw Windows   
    @gold_window = Window_Gold.new
    @gold_window.x = 439
    @gold_window.y = 413
    @playtime_window = Window_PlayTime.new
    @playtime_window.x = 239
    @playtime_window.y = 413   
    @map_window = Window_MapName.new
    @map_window.x = 0
    @map_window.y = 413
    @map_window.z = 100
    @status_window = Window_MenuStatus.new       
  end
  #--------------------------------------------------------------------------
  # * Main Command Window
  #--------------------------------------------------------------------------
  def main_command_window 
    @command_window = Window_Command.new(160, @commands)
    @command_window.index = @menu_index
    # If number of party members is 0
    if $game_party.actors.size == 0
      # Disable items, skills, equipment, and status
      @command_window.disable_item(0)
      @command_window.disable_item(1)
      @command_window.disable_item(2)
      @command_window.disable_item(3)
    end
   
    if $game_party.actors.size <= 1 #
      @command_window.disable_item(4)
    end   
  end
   
  def system_command_window
    @load_enabled = false
    @sys_command_window = Window_Command.new(160, @system_commands)
    @sys_command_window.visible = false
    @sys_command_window.active = false
    @sys_command_window.x = 100
    @sys_command_window.y = 180
    @sys_command_window.z = 0
    if $game_system.save_disabled
      @sys_command_window.disable_item(2)
    end
    for i in 0..3
      if (FileTest.exist?("Save#{i+1}.rxdata"))       
        @load_enabled = true
      end
    end 
    if !@load_enabled
      @sys_command_window.disable_item(3)
    end
  end   
  #--------------------------------------------------------------------------
  # * Main Scene Change
  #--------------------------------------------------------------------------
  def main_scenechange?
    # Abort loop if screen is changed
    if $scene != self
      return true
    end
    return false
  end
  #--------------------------------------------------------------------------
  # * Main Dispose
  #--------------------------------------------------------------------------
  def main_dispose
    #Dispose Background
    @background.dispose
    # Dispose All Windows
    @gold_window.dispose
    @playtime_window.dispose
    @map_window.dispose
    @status_window.dispose
    @command_window.dispose
    @sys_command_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Main Loop
  #--------------------------------------------------------------------------
  def main_loop
    # Update game screen
    Graphics.update
    # Update input information
    Input.update
    # Frame update
    update
  end
  #--------------------------------------------------------------------------
  # * Update
  #--------------------------------------------------------------------------
  def update
    # Update Windows
    update_windows
    #update_command if @command_window.active and @command_window.visible
    #update_sys_command if @sys_command_window.active and @sys_command_window.visible
    #update_status if @status_window.active
   
    if @sys_command_window.active
      @sys_command_window.z = +500
    end
   
    # If command window is active: call update_command
    if @command_window.active
      update_command
      return
    end
    # If system window is active: call update_sys_command
    if @sys_command_window.active
      update_sys_command
      return
    end
    # If status window is active: call update_status
    if @status_window.active
      update_status
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Window Update
  #--------------------------------------------------------------------------
  def update_windows   
    @command_window.update if @command_window.visible
    @sys_command_window.update if @sys_command_window.visible
    @gold_window.update
    @playtime_window.update
    @map_window.update
    @status_window.update
  end
  #--------------------------------------------------------------------------
  # * Update Command Window
  #--------------------------------------------------------------------------
  def update_command
    # If B button was pressed
    if Input.trigger?(Input::B)
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)
      # Switch to map screen
      $scene = Scene_Map.new
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)
      # If command other than save or end game, and party members = 0
      if $game_party.actors.size == 0 and @command_window.index < 4
        # Play buzzer SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # Branch by command window cursor position
      case @command_window.index
      when 0 # Item     
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to item screen
        $scene = Scene_Item.new
      when 1 # Skill
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        @command_window.active = false
        @status_window.active = true
        @status_window.index = 0
      when 2 # Equip
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        @command_window.active = false
        @status_window.active = true
        @status_window.index = 0     
      when 3 # Status
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        @command_window.active = false
        @status_window.active = true
        @status_window.index = 0         
      when 4 # Order
        #Change Party Order by Yargovish
        $game_system.se_play($data_system.decision_se)
        @checker = 0
        @command_window.active = false
        @status_window.active = true
        @status_window.index = 0     
      when 5 # System
        $game_system.se_play($data_system.decision_se)
        @sys_command_window.active = true
        @sys_command_window.visible = true
        @command_window.active = false         
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Update SysCommand Window
  #--------------------------------------------------------------------------
  def update_sys_command
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @command_window.active = true
      @sys_command_window.active = false
      @sys_command_window.visible = false
      @sys_command_window.index = 0
      @sys_command_window.z = 0
      return
    end
   
    if Input.trigger?(Input::C)
      case @sys_command_window.index     
      when 0
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Option.new
      when 1
        # Play decision SE
        #$game_system.se_play($data_system.decision_se)
        #$scene = Scene_HelpScreen.new
      when 2
        # # If saving is forbidden
        if $game_system.save_disabled
          # Play buzzer SE
          $game_system.se_play($data_system.buzzer_se)
          return
        end
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to save screen
        $scene = Scene_Save.new
      when 3
        if !@load_enabled
          # Play buzzer SE
          $game_system.se_play($data_system.buzzer_se)
          return
        end
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to load screen
        $scene = Scene_Load.new
      when 4
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to end game screen
        $scene = Scene_End.new
      end
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Frame Update (when status window is active)
  #--------------------------------------------------------------------------
  def update_status
    # If B button was pressed
    if Input.trigger?(Input::B)
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)
      # Make command window active
      @command_window.active = true
      @status_window.active = false
      @status_window.index = -1
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Branch by command window cursor position
      case @command_window.index
      when 1  # skill
        # If this actor's action limit is 2 or more
        if $game_party.actors[@status_window.index].restriction >= 2
          # Play buzzer SE
          $game_system.se_play($data_system.buzzer_se)
          return
        end
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to skill screen
        $scene = Scene_Skill.new(@status_window.index)
      when 2  # equipment
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to equipment screen
        $scene = Scene_Equip.new(@status_window.index)
      when 3  # status
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to status screen
        $scene = Scene_Status.new(@status_window.index)
      when 4
        #Change Party Order by Yargovish
        $game_system.se_play($data_system.decision_se)
        if @checker == 0
          @changer = $game_party.actors[@status_window.index]
          @where = @status_window.index
          @checker = 1
        else
          $game_party.actors[@where] = $game_party.actors[@status_window.index]
          $game_party.actors[@status_window.index] = @changer
          @checker = 0
          @status_window.refresh
          $game_player.refresh #
        end       
      end
      return
    end
  end 
end


class Scene_Load < Scene_File
  #--------------------------------------------------------------------------
  # * Alias Listings
  #--------------------------------------------------------------------------
  alias load_initialize initialize
  alias load_on_cancel on_cancel
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    @scene = $scene
    load_initialize
  end
  #--------------------------------------------------------------------------
  # * Cancel Processing
  #--------------------------------------------------------------------------
  def on_cancel
    load_on_cancel
    $scene = @scene
  end
end
Expand to see the code.


To be continued..
CMS #2 - Simple-looking menu
Continued from previous.

Revised Script (No SDK) Spoiler
#============================================================================
#L's Custom Menu #2 - Retro-looking
#============================================================================
=begin
  This CMS is the result of attempted recreating RPG Tkool Dante98/DantePC Menu
for RPG Maker XP.(except map name and time windows, and some commands ;))  Map
as Background, and the size-changing Window_MenuStatus is inspired by D2Win
(MS Windows frontend for Dante98/98 II Games).
=end
#==============================================================================

module MenuCommand
  Item     = 'Item'
  Skill    = 'Skill'
  Equip    = 'Equip'
  Status   = 'Status'
  Save     = 'Save'
  Load     = 'Load'
  End_Game = 'Exit'
   
  Help     = 'Help'
  Order    = 'Order'
  Party    = 'Party'
  Option   = 'Option'
  Quest    = 'Quest'
  Limit    = 'Limit'
  System   = 'System'
end


#==============================================================================
# Window_Gold
#==============================================================================

class Window_Gold < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(439, 413, 200, 64)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Advanced Gold Display mini-script by Dubealex.
    self.contents.clear     
    case $game_party.gold
    when 0..9999
      gold = $game_party.gold
    when 10000..99999
      gold = $game_party.gold.to_s
      array = gold.split(//)
      gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
    when 100000..999999
      gold = $game_party.gold.to_s
      array = gold.split(//)
      gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
    when 1000000..9999999
      gold = $game_party.gold.to_s
      array = gold.split(//)
      gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
    end
 
    self.contents.font.color = system_color
    gold_word = $data_system.words.gold.to_s + " /"
    cx = contents.text_size(gold_word).width
    cx2=contents.text_size(gold.to_s).width
    self.contents.draw_text(4, 0, 160-cx-2, 32, gold_word)
    self.contents.font.color = text_color(0)
    self.contents.draw_text(164-cx2+2, 0, cx2, 32, gold.to_s, 2)
  end
end


#==============================================================================
# Window_PlayTime
#==============================================================================

class Window_PlayTime < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(239, 413, 200, 64)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 120, 32, "Time")
    @total_sec = Graphics.frame_count / Graphics.frame_rate
    hour = @total_sec / 60 / 60
    min = @total_sec / 60 % 60
    sec = @total_sec % 60
    text = sprintf("%02d:%02d:%02d", hour, min, sec)
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 0, 160, 32, text, 2)
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    if Graphics.frame_count / Graphics.frame_rate != @total_sec
      refresh
    end
  end
end


#------------------------------------------------------------------------------
#  Game_Map
#------------------------------------------------------------------------------
class Game_Map
#------------------------------------------------------------------------------
#  Name
#------------------------------------------------------------------------------
  def name
    $map_infos[@map_id]
  end
end


#========================================
#â €“   Scene_Title
#--------------------------------------------------------------------------------
# Setting functions for the Title
#========================================
class Scene_Title
  $map_infos = load_data("Data/MapInfos.rxdata")
  for key in $map_infos.keys
    $map_infos[key] = $map_infos[key].name
  end
end


#==============================================================================
# Window_MapName
#==============================================================================

class Window_MapName < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 413, 239, 64)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear   
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 0, 200, 32, $game_map.name.to_s, 1)
  end 
end


#==============================================================================
# Window_MenuStatus
#==============================================================================

class Window_MenuStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    $game_party.actors.size < 4 ? i = 14 : i = 0
    $game_party.actors.size == 1 ? i = 24 : i = i
    super(177, 0, 462, ($game_party.actors.size * 72)+i)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    #Refresh and add the contents to window   
    refresh
    self.active = false
    self.index = -1
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      x = 16
      y = i*64
      actor = $game_party.actors[i]
      draw_actor_name(actor, x, y)
      draw_actor_class(actor, x + 144, y)
      draw_actor_state(actor, x + 260, y )
      draw_actor_level(actor, x, y + 32)
      draw_actor_hp(actor, x + 98, y + 32)
      draw_actor_sp(actor, x + 254, y + 32)
    end
  end
  #--------------------------------------------------------------------------
  # * Cursor Rectangle Update
  #--------------------------------------------------------------------------
  def update_cursor_rect
    if @index < 0
      self.cursor_rect.empty
    else
      self.cursor_rect.set(0, @index * 64, self.width - 32, 64)
    end
  end
end


#==============================================================================
# Scene_Menu
#==============================================================================
class Scene_Menu
  def initialize(menu_index = 0)
    @menu_index = menu_index
    commands_init
    @changer = 0 #Change Party Order by Yargovish
    @where = 0 #
    @checker = 0  #
  end
  #--------------------------------------------------------------------------
  # * Set Commands
  #--------------------------------------------------------------------------
  def commands_init
    # MenuCommand
    @commands = []
    s1 = MenuCommand::Item
    s2 = MenuCommand::Skill
    s3 = MenuCommand::Equip
    s4 = MenuCommand::Status
    s5 = MenuCommand::Order
    s6 = MenuCommand::Limit
    s7 = MenuCommand::System
    @commands.push(s1, s2, s3, s4, s5, s6, s7).flatten!
   
    @sys_commands = []
    o1 = MenuCommand::Option
    o2 = MenuCommand::Help
    o3 = MenuCommand::Save
    o4 = MenuCommand::Load
    o5 = MenuCommand::End_Game
    @sys_commands.push(o3, o4, o5).flatten!
  end
  #--------------------------------------------------------------------------
  # * Main - Handles drawing/disposing windows and the main loop
  #--------------------------------------------------------------------------
  def main
    #Draw Background
    @background = Spriteset_Map.new
    #Draw Windows
    main_window
    #Execute transition
    Graphics.transition
    #Main Loop
    loop do
      #Main Loop
      main_loop
      break if main_scenechange?
    end
    #Prepare for transition
    Graphics.freeze
    #Dispose Windows
    main_dispose
  end
  #--------------------------------------------------------------------------
  # * Main Draw - Handles drawing windows
  #--------------------------------------------------------------------------
  def main_window   
    #Draw Windows
    main_command_window
    system_command_window   
    @gold_window = Window_Gold.new
    @gold_window.x = 439
    @gold_window.y = 413
    @playtime_window = Window_PlayTime.new
    @playtime_window.x = 239
    @playtime_window.y = 413   
    @map_window = Window_MapName.new
    @map_window.x = 0
    @map_window.y = 413
    @map_window.z = 100
    @status_window = Window_MenuStatus.new       
  end
  #--------------------------------------------------------------------------
  # * Main Command Window
  #--------------------------------------------------------------------------
  def main_command_window 
    @command_window = Window_Command.new(160, @commands)
    @command_window.index = @menu_index
    # If number of party members is 0
    if $game_party.actors.size == 0
      # Disable items, skills, equipment, and status
      @command_window.disable_item(0)
      @command_window.disable_item(1)
      @command_window.disable_item(2)
      @command_window.disable_item(3)
    end
   
    if $game_party.actors.size <= 1 #
      #Disable change party order
      @command_window.disable_item(4)
    end   
  end
  #--------------------------------------------------------------------------
  # * System Command Window
  #--------------------------------------------------------------------------
  def system_command_window
    @sys_command_window = Window_Command.new(160, @sys_commands)
    @sys_command_window.visible = false
    @sys_command_window.active = false
    @sys_command_window.x = 100
    @sys_command_window.y = 210
    @sys_command_window.z = 0
    check_save_available
    check_load_available
  end
  #-----------------
  def check_save_available
    if $game_system.save_disabled
      @sys_command_window.disable_item(0)
    end
  end
  #-----------------
  def check_load_available
    #Check if saved file exists
    @load_enabled = false
    for i in 0..3
      if (FileTest.exist?("Save#{i+1}.rxdata"))       
        @load_enabled = true
      end
    end 
    if !@load_enabled
      @sys_command_window.disable_item(1)
    end
  end   
  #--------------------------------------------------------------------------
  # * Main Scene Change
  #--------------------------------------------------------------------------
  def main_scenechange?
    # Abort loop if screen is changed
    if $scene != self
      return true
    end
    return false
  end
  #--------------------------------------------------------------------------
  # * Main Dispose
  #--------------------------------------------------------------------------
  def main_dispose
    #Dispose Background
    @background.dispose
    # Dispose All Windows
    @gold_window.dispose
    @playtime_window.dispose
    @map_window.dispose
    @status_window.dispose
    @command_window.dispose
    @sys_command_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Main Loop
  #--------------------------------------------------------------------------
  def main_loop
    # Update game screen
    Graphics.update
    # Update input information
    Input.update
    # Frame update
    update
  end
  #--------------------------------------------------------------------------
  # * Update
  #--------------------------------------------------------------------------
  def update
    # Update Windows
    update_windows
    #update_command if @command_window.active and @command_window.visible
    #update_sys_command if @sys_command_window.active and @sys_command_window.visible
    #update_status if @status_window.active
   
    if @sys_command_window.active
      @sys_command_window.z = +500
    end
   
    # If command window is active: call update_command
    if @command_window.active
      update_command
      return
    end
    # If system window is active: call update_sys_command
    if @sys_command_window.active
      update_sys_command
      return
    end
    # If status window is active: call update_status
    if @status_window.active
      update_status
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Window Update
  #--------------------------------------------------------------------------
  def update_windows   
    @command_window.update if @command_window.visible
    @sys_command_window.update if @sys_command_window.visible
    @gold_window.update
    @playtime_window.update
    @map_window.update
    @status_window.update
  end
  #--------------------------------------------------------------------------
  # * Update Command Window
  #--------------------------------------------------------------------------
  def update_command
    # If B button was pressed
    if Input.trigger?(Input::B)
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)
      # Switch to map screen
      $scene = Scene_Map.new
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Return if Disabled Command
      if disabled_main_command?
        # Play buzzer SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      main_command_input
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Update SysCommand Window
  #--------------------------------------------------------------------------
  def update_sys_command
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @command_window.active = true
      @sys_command_window.active = false
      @sys_command_window.visible = false
      @sys_command_window.index = 0
      @sys_command_window.z = -500
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Return if Disabled Command
      if disabled_main_command?
        # Play buzzer SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # Command Input
      sys_command_input
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Frame Update (when status window is active)
  #--------------------------------------------------------------------------
  def update_status
    # If B button was pressed
    if Input.trigger?(Input::B)
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)
      # Make command window active
      @command_window.active = true
      @status_window.active = false
      @status_window.index = -1
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Return if Disabled Command
      if disabled_main_command?
        # Play buzzer SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # Command Input
      sub_command_input
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Disabled Main Command? Test
  #--------------------------------------------------------------------------
  def disabled_main_command?
    # Gets Current Command
    command = @commands[@command_window.index]
    sys_command = @sys_commands[@sys_command_window.index]
    # Gets SDK Scene_Menu Commands
    c = MenuCommand
    # If 0 Party Size
    if $game_party.actors.size == 0
      # If Item, Skill, Equip or Status Selected
      if [c::Item, c::Skill, c::Equip, c::Status].include?(command)
        return true
      end
    end
    if $game_party.actors.size <= 1
      if [c::Order].include?(command)
        return true
      end
    end
    # If Save Disabled && Command is Save
    return true if $game_system.save_disabled && sys_command == c::Save
    # If Load Disabled && Command is Load
    return true if !@load_enabled && sys_command == c::Load
    return false
  end
  #--------------------------------------------------------------------------
  # * Update Command Check
  #--------------------------------------------------------------------------
  def main_command_input
    # Loads Current Command
    command = @commands[@command_window.index]
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Checks Commands
    case command
    when MenuCommand::Item  #item
      command_item
    when MenuCommand::Skill #skill
      command_skill
    when MenuCommand::Equip #equip
      command_equip
    when MenuCommand::Status  #status
      command_status
    when MenuCommand::Order #order
      command_order
    when MenuCommand::Limit #limit break skill
      command_limitbreak
    when MenuCommand::System  #call system submenu
      $game_system.se_play($data_system.decision_se)
      @sys_command_window.active = true
      @sys_command_window.visible = true
      @command_window.active = false     
    end
  end
  #--------------------------------------------------------------------------
  # * Update System Command Check
  #--------------------------------------------------------------------------
  def sys_command_input
    # Loads Current Command
    sys_command = @sys_commands[@sys_command_window.index]
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Checks Commands
    case sys_command
    when MenuCommand::Help
      command_help
    when MenuCommand::Option  #option
      command_option
    when MenuCommand::Save  #save
      command_save
    when MenuCommand::Load  #load
      command_load
    when MenuCommand::End_Game  #exit
      command_endgame
    end
  end
  #--------------------------------------------------------------------------
  # * Disabled Sub Command? Test
  #--------------------------------------------------------------------------
  def disabled_sub_command?
    # Loads Current Command
    command = @commands[@command_window.index]
    # If Skill Selected
    if command == MenuCommand::Skill
      # If this actor's action limit is 2 or more
      if $game_party.actors[@status_window.index].restriction >= 2
        return true
      end
    end
    return false
  end
  #--------------------------------------------------------------------------
  # * Update Status Check
  #--------------------------------------------------------------------------
  def sub_command_input
    # Loads Current Command
    command = @commands[@command_window.index]
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Checks Command By Name
    case command
    when MenuCommand::Skill
      command_skill
    when MenuCommand::Equip
      command_equip
    when MenuCommand::Status
      command_status
    when MenuCommand::Order
      command_order
    when MenuCommand::Limit #limit break skill
      command_limitbreak
    end
  end
  #--------------------------------------------------------------------------
  # * Command Item
  #--------------------------------------------------------------------------
  def command_item
    # Switch to item screen
    $scene = Scene_Item.new
  end
  #--------------------------------------------------------------------------
  # * Command Skill
  #--------------------------------------------------------------------------
  def command_skill
    # If Main Command Active
    if @command_window.active
      # Activate Status Window
      active_status_window
      return
    end
    # Switch to skill screen
    $scene = Scene_Skill.new(@status_window.index)
  end
  #--------------------------------------------------------------------------
  # * Command Equip
  #--------------------------------------------------------------------------
  def command_equip
    # If Main Command Active
    if @command_window.active
      # Activate Status Window
      active_status_window
      return
    end
    # Switch to equipment screen
    $scene = Scene_Equip.new(@status_window.index)
  end
  #--------------------------------------------------------------------------
  # * Command Status
  #--------------------------------------------------------------------------
  def command_status
    # If Main Command Active
    if @command_window.active
      # Activate Status Window
      active_status_window
      return
    end
    # Switch to status screen
    $scene = Scene_Status.new(@status_window.index)
  end
  #--------------------------------------------------------------------------
  # * Command Order
  #--------------------------------------------------------------------------
  def command_order
    # If Main Command Active
    if @command_window.active
      # Activate Status Window
      active_status_window
      @checker = 0
      return
    end
    #Change Party Order by Yargovish
    if @checker == 0
      @changer = $game_party.actors[@status_window.index]
      @where = @status_window.index
      @checker = 1
    else
      $game_party.actors[@where] = $game_party.actors[@status_window.index]
      $game_party.actors[@status_window.index] = @changer
      @checker = 0
      @status_window.refresh
      $game_player.refresh #
    end     
  end
  #--------------------------------------------------------------------------
  # * Command Party
  #--------------------------------------------------------------------------
  def command_party
    # Switch to party change screen
    #Put your Party Change Scene here
  end
  #--------------------------------------------------------------------------
  # * Command Option
  #--------------------------------------------------------------------------
  def command_option
    # Switch to option screen
    #Put your Option Scene here
  end
  #--------------------------------------------------------------------------
  # * Command Quest
  #--------------------------------------------------------------------------
  def command_quest
    # Switch to quest log screen
    #Put your Quest Scene here
  end
  #--------------------------------------------------------------------------
  # * Command Quest
  #--------------------------------------------------------------------------
  def command_help
    # Switch to help screen
    #Put your Help Scene here
  end
  #--------------------------------------------------------------------------
  # * Command LimitBreak
  #--------------------------------------------------------------------------
  def command_limitbreak
    # If Main Command Active
    if @command_window.active
      # Activate Status Window
      active_status_window
      return
    end
    # Switch to limit screen
    #Put your limit Scene here
    $scene = Scene_LimitMenu.new(@status_window.index) #for Alistor's Limit Break menu
  end
  #--------------------------------------------------------------------------
  # * Command Save
  #--------------------------------------------------------------------------
  def command_save
    # Switch to save screen
    $scene = Scene_Save.new
  end
  #--------------------------------------------------------------------------
  # * Command Load
  #--------------------------------------------------------------------------
  def command_load
    # Switch to load screen
    $scene = Scene_Load.new
  end
  #--------------------------------------------------------------------------
  # * Command End Game
  #--------------------------------------------------------------------------
  def command_endgame
    # Switch to end game screen
    $scene = Scene_End.new
  end
  #--------------------------------------------------------------------------
  # * Activate Status Window
  #--------------------------------------------------------------------------
  def active_status_window
    # Make status window active
    @command_window.active = false
    @status_window.active = true
    @status_window.visible = true
    @status_window.index = 0
  end
end
Expand to see the code.


   
To be continued..
CMS #2 - Simple-looking menu
Continued from previous..

SDK2 version Spoiler
#==============================================================================
#L's Custom Menu #2 - SDK2 ver.
#--------------------------------------------------------------------------
=begin
  This CMS is the result of attempted recreating RPG Tkool Dante98/DantePC Menu
for RPG Maker XP.(except map name and time windows, and some commands ;))  Map
as Background, and the size-changing Window_MenuStatus is inspired by D2Win
(Windows frontend for Dante98/98 II Games).
=end
#==============================================================================

#--------------------------------------------------------------------------
# * Begin SDK Log
#--------------------------------------------------------------------------
SDK.log("L's CMS #2", 'L', 1.01, '2007-03-15')

#--------------------------------------------------------------------------
# * Begin SDK Requirement Check
#--------------------------------------------------------------------------
SDK.check_requirements(2.0, [1, 3])

#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if SDK.enabled?("L's CMS #2")

module SDK::Scene_Commands
  #============================================================================
  # ** Scene_Menu
  #============================================================================
  module Scene_Menu
    Item     = 'Item'
    Skill    = 'Skill'
    Equip    = 'Equip'
    Status   = 'Status'
    Save     = 'Save'
    Load     = 'Load'
    End_Game = 'Exit'
   
    Order    = 'Order'
    Party    = 'Party'
    Option   = 'Option'
    Quest    = 'Quest'
    System   = 'System'
  end
end


#==============================================================================
# Window_Gold
#==============================================================================

class Window_Gold < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(439, 413, 200, 64)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Advanced Gold Display mini-script by Dubealex.
    self.contents.clear     
    case $game_party.gold
    when 0..9999
      gold = $game_party.gold
    when 10000..99999
      gold = $game_party.gold.to_s
      array = gold.split(//)
      gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
    when 100000..999999
      gold = $game_party.gold.to_s
      array = gold.split(//)
      gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
    when 1000000..9999999
      gold = $game_party.gold.to_s
      array = gold.split(//)
      gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
    end
 
    self.contents.font.color = system_color
    gold_word = $data_system.words.gold.to_s + " /"
    cx = contents.text_size(gold_word).width
    cx2=contents.text_size(gold.to_s).width
    self.contents.draw_text(4, 0, 160-cx-2, 32, gold_word)
    self.contents.font.color = text_color(0)
    self.contents.draw_text(164-cx2+2, 0, cx2, 32, gold.to_s, 2)
  end
end


#==============================================================================
# Window_PlayTime
#==============================================================================

class Window_PlayTime < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(239, 413, 200, 64)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 120, 32, "Time")
    @total_sec = Graphics.frame_count / Graphics.frame_rate
    hour = @total_sec / 60 / 60
    min = @total_sec / 60 % 60
    sec = @total_sec % 60
    text = sprintf("%02d:%02d:%02d", hour, min, sec)
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 0, 160, 32, text, 2)
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    if Graphics.frame_count / Graphics.frame_rate != @total_sec
      refresh
    end
  end
end


#==============================================================================
# â €“   Game_Map
#==============================================================================
class Game_Map   
  def name
     $map_infos[@map_id]
  end   
end


#========================================
#â €“   Scene_Title
#--------------------------------------------------------------------------------
# Setting functions for the Title
#========================================
class Scene_Title
  $map_infos = load_data("Data/MapInfos.rxdata")
  for key in $map_infos.keys
    $map_infos[key] = $map_infos[key].name
  end
end


#==============================================================================
# Window_MapName
#==============================================================================

class Window_MapName < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 413, 239, 64)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear   
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 0, 200, 32, $game_map.name.to_s, 1)
  end 
end


#==============================================================================
# Window_MenuStatus
#==============================================================================

class Window_MenuStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    $game_party.actors.size < 4 ? i = 14 : i = 0
    $game_party.actors.size == 1 ? i = 24 : i = i
    super(177, 0, 462, ($game_party.actors.size * 72)+i)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    #Refresh and add the contents to window   
    refresh
    self.active = false
    self.index = -1
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      x = 16
      y = i*64
      actor = $game_party.actors[i]
      draw_actor_name(actor, x, y)
      draw_actor_class(actor, x + 144, y)
      draw_actor_state(actor, x + 260, y )
      draw_actor_level(actor, x, y + 32)
      draw_actor_hp(actor, x + 98, y + 32)
      draw_actor_sp(actor, x + 254, y + 32)
    end
  end
  #--------------------------------------------------------------------------
  # * Cursor Rectangle Update
  #--------------------------------------------------------------------------
  def update_cursor_rect
    if @index < 0
      self.cursor_rect.empty
    else
      self.cursor_rect.set(0, @index * 64, self.width - 32, 64)
    end
  end
end


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

class Scene_Menu < SDK::Scene_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     menu_index : command cursor's initial position
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @menu_index = menu_index
    party_order_init
  end
  #--------------------------------------------------------------------------
  # * Party Order Change Initiation
  #--------------------------------------------------------------------------
  def party_order_init
    @changer = 0 #Change Party Order by Yargovish
    @where = 0 #
    @checker = 0  #
  end
  #--------------------------------------------------------------------------
  # * Main Processing : Spriteset Initialization
  #--------------------------------------------------------------------------
  def main_spriteset 
    #Draw Background
    @background = Spriteset_Map.new
  end
  #--------------------------------------------------------------------------
  # * Main Processing : Window Initialization
  #--------------------------------------------------------------------------
  def main_window
    super
    # Make main command window
    main_command_window
    system_command_window
    # Make play time window
    @playtime_window = Window_PlayTime.new
    @playtime_window.x = 239
    @playtime_window.y = 413
    # Make map window
    @map_window = Window_MapName.new
    @map_window.x = 0
    @map_window.y = 413
    # Make gold window
    @gold_window = Window_Gold.new
    @gold_window.x = 439
    @gold_window.y = 413
    # Make status window
    @status_window = Window_MenuStatus.new
  end
  #--------------------------------------------------------------------------
  # * Main Processing : Window Initialization : Main Command
  #--------------------------------------------------------------------------
  def main_command_window
    # Make command window
    s1 = SDK::Scene_Commands::Scene_Menu::Item
    s2 = SDK::Scene_Commands::Scene_Menu::Skill
    s3 = SDK::Scene_Commands::Scene_Menu::Equip
    s4 = SDK::Scene_Commands::Scene_Menu::Status
    s5 = SDK::Scene_Commands::Scene_Menu::Order
    s6 = SDK::Scene_Commands::Scene_Menu::System
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])
    @command_window.index = @menu_index
    # If number of party members is 0
    if $game_party.actors.size == 0
      # Disable items, skills, equipment, and status
      @command_window.disable_item(0)
      @command_window.disable_item(1)
      @command_window.disable_item(2)
      @command_window.disable_item(3)
    end
    if $game_party.actors.size <= 1 #
      # Disable change party order
      @command_window.disable_item(4)
    end
  end
  #--------------------------------------------------------------------------
  # * Main Processing : Window Initialization : System Command
  #--------------------------------------------------------------------------
  def system_command_window
    # Make command window
    o1 = SDK::Scene_Commands::Scene_Menu::Option
    o2 = SDK::Scene_Commands::Scene_Menu::Save
    o3 = SDK::Scene_Commands::Scene_Menu::Load
    o4 = SDK::Scene_Commands::Scene_Menu::End_Game
    @sys_command_window = Window_Command.new(160, [o1, o2, o3, o4])
    @sys_command_window.visible = false
    @sys_command_window.active = false
    @sys_command_window.x = 100
    @sys_command_window.y = 180
    #@sys_command_window.z = 0
    check_save_available
    check_load_available
  end
  #-----------------
  def check_save_available
    # If save is forbidden
    if $game_system.save_disabled
      # Disable save
      @sys_command_window.disable_item(1)
    end
  end
  #-----------------
  def check_load_available
    #Check if saved file exists
    @load_enabled = false
    for i in 0..3
      if (FileTest.exist?("Save#{i+1}.rxdata"))       
        @load_enabled = true
      end
    end 
    if !@load_enabled
      #Put your @command_window.disable_item(index)
      @sys_command_window.disable_item(2)
    end
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  alias_method :l_cms_menu_update, :update
  def update
    super
    l_cms_menu_update
   
    if @sys_command_window.active
      @sys_command_window.z = +500
    end
    # If system window is active: call update_sys_command
    if @sys_command_window.active
      update_sys_command
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Frame Update (when command window is active)
  #--------------------------------------------------------------------------
  def update_command
    # If B button was pressed
    if Input.trigger?(Input::B)
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)
      # Switch to map screen
      $scene = Scene_Map.new
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Return if Disabled Command
      if disabled_main_command?
        # Play buzzer SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # Command Input
      main_command_input
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Update SysCommand Window
  #--------------------------------------------------------------------------
  def update_sys_command
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @command_window.active = true
      @sys_command_window.active = false
      @sys_command_window.visible = false
      @sys_command_window.index = 0
      @sys_command_window.z = -500
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Return if Disabled Command
      if disabled_sys_command?
        # Play buzzer SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # Command Input
      sys_command_input
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Frame Update (when status window is active)
  #--------------------------------------------------------------------------
  def update_status
    # If B button was pressed
    if Input.trigger?(Input::B)
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)
      # Make command window active
      @command_window.active = true
      @status_window.active = false
      @status_window.index = -1
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Return if Disabled Command
      if disabled_main_command?
        # Play buzzer SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # Command Input
      sub_command_input
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Disabled Main Command? Test
  #--------------------------------------------------------------------------
  def disabled_main_command?
    # Gets Current Command
    command = @command_window.command
    # Gets SDK Scene_Menu Commands
    c = SDK::Scene_Commands::Scene_Menu
    # If 0 Party Size
    if $game_party.actors.size == 0
      # If Item, Skill, Equip or Status Selected
      if [c::Item, c::Skill, c::Equip, c::Status].include?(command)
        return true
      end
    end
    if $game_party.actors.size <= 1
      if [c::Order].include?(command)
        return true
      end
    end
    return false
  end
  #--------------------------------------------------------------------------
  # * Disabled System Command? Test
  #--------------------------------------------------------------------------
  def disabled_sys_command?
    # Gets Current Command
    sys_command = @sys_command_window.command
    # Gets SDK Scene_Menu Commands
    c = SDK::Scene_Commands::Scene_Menu
    # If Save Disabled && Command is Save
    return true if $game_system.save_disabled && sys_command == c::Save
    # If Load Disabled && Command is Load
    return true if !@load_enabled && sys_command == c::Load
    return false
  end   
  #--------------------------------------------------------------------------
  # * Main Command Input
  #--------------------------------------------------------------------------
  def main_command_input
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Branch by command window cursor position
    case @command_window.command
    when SDK::Scene_Commands::Scene_Menu::Item      # item
      command_item
    when SDK::Scene_Commands::Scene_Menu::Skill     # skill
      command_skill
    when SDK::Scene_Commands::Scene_Menu::Equip     # equipment
      command_equip
    when SDK::Scene_Commands::Scene_Menu::Status    # status
      command_status
    when SDK::Scene_Commands::Scene_Menu::Order      # order
      command_order
    when SDK::Scene_Commands::Scene_Menu::System  # call system menu     
      $game_system.se_play($data_system.decision_se)
      @sys_command_window.active = true
      @sys_command_window.visible = true
      @command_window.active = false   
    end
  end
  #--------------------------------------------------------------------------
  # * System Command Input
  #--------------------------------------------------------------------------
  def sys_command_input
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Branch by command window cursor position
    case @sys_command_window.command
    when SDK::Scene_Commands::Scene_Menu::Option  #option
      command_option
    when SDK::Scene_Commands::Scene_Menu::Save  #save
      command_save
    when SDK::Scene_Commands::Scene_Menu::Load  #load
      command_load
    when SDK::Scene_Commands::Scene_Menu::End_Game  #end game
      command_endgame
    end
  end
  #--------------------------------------------------------------------------
  # * Disabled Sub Command? Test
  #--------------------------------------------------------------------------
  def disabled_sub_command?
    # If Skill Selected
    if @command_window.command == SDK::Scene_Commands::Scene_Menu::Skill
      # If this actor's action limit is 2 or more
      if $game_party.actors[@status_window.index].restriction >= 2
        return true
      end
    end
    return false
  end
  #--------------------------------------------------------------------------
  # * Sub Command Input
  #--------------------------------------------------------------------------
  def sub_command_input
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Branch by command window cursor position
    case @command_window.command
    when SDK::Scene_Commands::Scene_Menu::Skill     # skill
      command_skill
    when SDK::Scene_Commands::Scene_Menu::Equip     # equipment
      command_equip
    when SDK::Scene_Commands::Scene_Menu::Status    # status
      command_status
    when SDK::Scene_Commands::Scene_Menu::Order      # order
      command_order
    end
  end
  #--------------------------------------------------------------------------
  # * Command : Item
  #--------------------------------------------------------------------------
  def command_item
    # Switch to item screen
    $scene = Scene_Item.new
  end
  #--------------------------------------------------------------------------
  # * Command : Skill
  #--------------------------------------------------------------------------
  def command_skill
    # If Main Command Active
    if @command_window.active
      # Activate Status Window
      active_status_window
      return
    end
    # Switch to skill screen
    $scene = Scene_Skill.new(@status_window.index)
  end
  #--------------------------------------------------------------------------
  # * Command : Equip
  #--------------------------------------------------------------------------
  def command_equip
    # If Main Command Active
    if @command_window.active
      # Activate Status Window
      active_status_window
      return
    end
    # Switch to equipment screen
    $scene = Scene_Equip.new(@status_window.index)
  end
  #--------------------------------------------------------------------------
  # * Command : Status
  #--------------------------------------------------------------------------
  def command_status
    # If Main Command Active
    if @command_window.active
      # Activate Status Window
      active_status_window
      return
    end
    # Switch to status screen
    $scene = Scene_Status.new(@status_window.index)
  end
  #--------------------------------------------------------------------------
  # * Command : Order
  #--------------------------------------------------------------------------
  def command_order
    # If Main Command Active
    if @command_window.active
      # Activate Status Window
      active_status_window
      @checker = 0
      return
    end
    #Change Party Order by Yargovish
    if @checker == 0
      @changer = $game_party.actors[@status_window.index]
      @where = @status_window.index
      @checker = 1
    else
      $game_party.actors[@where] = $game_party.actors[@status_window.index]
      $game_party.actors[@status_window.index] = @changer
      @checker = 0
      @status_window.refresh
      $game_player.refresh #
    end     
  end
  #--------------------------------------------------------------------------
  # * Command : Party
  #--------------------------------------------------------------------------
  def command_party
    # Switch to party change screen
    #Put your Party Change Scene here
  end
  #--------------------------------------------------------------------------
  # * Command : Option
  #--------------------------------------------------------------------------
  def command_option
    # Switch to option screen
    #Put your Option Scene here
  end
  #--------------------------------------------------------------------------
  # * Command : Quest
  #--------------------------------------------------------------------------
  def command_quest
    # Switch to quest screen
    #Put your Quest Scene here
  end
  #--------------------------------------------------------------------------
  # * Command : Save
  #--------------------------------------------------------------------------
  def command_save
    # Switch to save screen
    $scene = Scene_Save.new
  end
  #--------------------------------------------------------------------------
  # * Command : Load
  #--------------------------------------------------------------------------
  def command_load
    # Switch to load screen
    $scene = Scene_Load.new
  end
  #--------------------------------------------------------------------------
  # * Command : End Game
  #--------------------------------------------------------------------------
  def command_endgame
    # Switch to end game screen
    $scene = Scene_End.new
  end
  #--------------------------------------------------------------------------
  # * Activate Status Window
  #--------------------------------------------------------------------------
  def active_status_window
    # Make status window active
    @command_window.active = false
    @status_window.active = true
    @status_window.index = 0
  end
end

#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
end
Expand to see the code.


To be continued..
Continued from previous..

CMS #3 - One-person menu
  1-person menu, literally.  I can't remember what I wrote originally.  The 'Variable' can be used for fame, score, or anything.

Screenshot Spoiler
http://img138.imageshack.us/img138/2205/rmxpcmstest03cv6.png[/img]


Script (Older) Spoiler
class Window_Base < Window
  SYSTEM_WORD_EVA = "Evade" #
  #--------------------------------------------------------------------------
  # * Draw Parameter
  #     actor : actor
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #     type  : parameter type (0-6)
  #--------------------------------------------------------------------------
  def draw_actor_parameter(actor, x, y, type)
    case type
    when 0
      parameter_name = $data_system.words.atk
      parameter_value = actor.atk
    when 1
      parameter_name = $data_system.words.pdef
      parameter_value = actor.pdef
    when 2
      parameter_name = $data_system.words.mdef
      parameter_value = actor.mdef
    when 3
      parameter_name = $data_system.words.str
      parameter_value = actor.str
    when 4
      parameter_name = $data_system.words.dex
      parameter_value = actor.dex
    when 5
      parameter_name = $data_system.words.agi
      parameter_value = actor.agi
    when 6
      parameter_name = $data_system.words.int
      parameter_value = actor.int
    when 7 #
      parameter_name = SYSTEM_WORD_EVA #
      parameter_value = actor.eva #
    end
    self.contents.font.color = system_color
    self.contents.draw_text(x, y, 120, 32, parameter_name)
    self.contents.font.color = normal_color
    self.contents.draw_text(x + 120, y, 36, 32, parameter_value.to_s, 2)
  end
end


#==============================================================================
# â €“   Game_Map
#==============================================================================
class Game_Map   
  def name
     $map_infos[@map_id]
  end   
end


#========================================
#â €“   Scene_Title
#--------------------------------------------------------------------------------
# Setting functions for the Title
#========================================
class Scene_Title
  $map_infos = load_data("Data/MapInfos.rxdata")
  for key in $map_infos.keys
    $map_infos[key] = $map_infos[key].name
  end
end


#==============================================================================
# InfoWindow
#==============================================================================
class Window_Info < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 384, 640, 96)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.size = 22
    #Z-Pos
    self.z = 100
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear
    #Add Contents
    self.contents.font.color = system_color
    self.contents.draw_text(4,0,120,32,'Location')
    self.contents.font.color = normal_color
    self.contents.draw_text(96,0,360,32,$game_map.name.to_s)
   
    #Draw Steps
    self.contents.font.color = system_color
    self.contents.draw_text(4,32,120,32,'Steps')
    self.contents.font.color = normal_color
    self.contents.draw_text(48,32, 120, 32, $game_party.steps.to_s, 2)
   
    #Draw Play Time
    self.contents.font.color = system_color
    self.contents.draw_text(200,32,120,32,'Play Time')
    @total_sec = Graphics.frame_count / Graphics.frame_rate
    hour = @total_sec / 60 / 60
    min = @total_sec / 60 % 60
    sec = @total_sec % 60
    text = sprintf("%02d:%02d:%02d", hour, min, sec)
    self.contents.font.color = normal_color
    self.contents.draw_text(310, 32, 120, 32, text)
   
    #Draw Gold
    #Advanced Gold Display mini-script by Dubealex.
    case $game_party.gold
    when 0..9999
      gold = $game_party.gold
    when 10000..99999
      gold = $game_party.gold.to_s
      array = gold.split(//)
      gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
    when 100000..999999
      gold = $game_party.gold.to_s
      array = gold.split(//)
      gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
    when 1000000..9999999
      gold = $game_party.gold.to_s
      array = gold.split(//)
      gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
    end   
    self.contents.font.color = system_color
    gold_word = $data_system.words.gold.to_s + " :"
    cx = contents.text_size(gold_word).width
    cx2=contents.text_size(gold.to_s).width
    self.contents.draw_text(412,32,120-cx-2,32,gold_word)
    self.contents.font.color = normal_color
    self.contents.draw_text(600-cx2+2, 32, cx2, 32, gold.to_s, 2)
   
    #Draw Variable
    self.contents.font.color = system_color
    self.contents.draw_text(412,0,120,32,'Variable Name')
    self.contents.font.color = normal_color
    self.contents.draw_text(540,0,120,32,'Variable')
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    if Graphics.frame_count / Graphics.frame_rate != @total_sec
      refresh
    end
  end
end


#==============================================================================
# MenuStatus
#==============================================================================
class Window_NewMenuStatus < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(160, 0, 480, 320)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.size = 22
    #Z-Pos
    self.z = 100
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear
    actor = $game_party.actors[0]
    draw_actor_graphic(actor, 32, 64)
    draw_actor_name(actor, 75, 0)
    draw_actor_class(actor, 240, 0)
    draw_actor_level(actor, 75, 32)
    draw_actor_state(actor, 240, 32)
    draw_actor_exp(actor, 75, 64)
    draw_actor_hp(actor, 32,100)
    draw_actor_sp(actor, 240,100)
    draw_actor_parameter(actor, 32, 150, 0)
    draw_actor_parameter(actor, 32, 182, 1)
    draw_actor_parameter(actor, 32, 214, 2)
    draw_actor_parameter(actor, 32, 246, 7) #Evade
    draw_actor_parameter(actor, 240, 150, 3)
    draw_actor_parameter(actor, 240, 182, 4)
    draw_actor_parameter(actor, 240, 214, 5)
    draw_actor_parameter(actor, 240, 246, 6)
  end
end


#==============================================================================
# Scene_Menu
#==============================================================================
class Scene_Menu
  def initialize(menu_index = 0)
    @menu_index = menu_index
    commands_init
  end
  #--------------------------------------------------------------------------
  # * Set Commands
  #--------------------------------------------------------------------------
  def commands_init
    # MenuCommand
    @commands = []
    s1='Item'
    s2='Skill'
    s3='Equip'
    s4='Player'
    s5='Option'
    s6='System'
    @commands.push(s1, s2, s3, s4, s5, s6).flatten!
   
    @player_commands = []
    z1='Status'
    z2='Quest Log'
    @player_commands.push(z1, z2).flatten!
   
    @system_commands = []
    o1='Save'
    o2='Load'
    o3='Exit'
    @system_commands.push(o1, o2, o3).flatten!
  end
  #--------------------------------------------------------------------------
  # * Main - Handles drawing/disposing windows and the main loop
  #--------------------------------------------------------------------------
  def main
    #Draw Windows
    main_command_window
    player_command_window
    system_command_window
    main_draw
    #Execute transition
    Graphics.transition
    #Main Loop
    loop do
      #Main Loop
      main_loop
      break if main_scenechange?
    end
    #Prepare for transition
    Graphics.freeze
    #Dispose Windows
    main_dispose
  end
  #--------------------------------------------------------------------------
  # * Main Command Window
  #--------------------------------------------------------------------------
  def main_command_window
    @command_window = Window_Command.new(160,@commands)
    @command_window.back_opacity = 160
    @command_window.index = @menu_index
    # If number of party members is 0
    if $game_party.actors.size == 0
      # Disable items, skills, equipment, and status
      @command_window.disable_item(0)
      @command_window.disable_item(1)
      @command_window.disable_item(2)
      @command_window.disable_item(3)
    end
  end
  def player_command_window
    @player_command_window = Window_Command.new(160,@player_commands)
    @player_command_window.back_opacity = 160
    @player_command_window.visible = false
    @player_command_window.active = false
    @player_command_window.x = 100
    @player_command_window.y = 120
  end
  def system_command_window
    @sys_command_window = Window_Command.new(128,@system_commands)
    @sys_command_window.back_opacity = 160
    @sys_command_window.visible = false
    @sys_command_window.active = false
    @sys_command_window.x=100
    @sys_command_window.y=180
    if $game_system.save_disabled
      @sys_command_window.disable_item(0)
    end
  end
  #--------------------------------------------------------------------------
  # * Main Draw - Handles drawing windows
  #--------------------------------------------------------------------------
  def main_draw
    #Draw Background
    @background = Spriteset_Map.new
   
    #Draw Windows
    # InfoWindow
    @info_window = Window_Info.new
    @info_window.back_opacity = 160
    # MenuStatus
    @status_window = Window_NewMenuStatus.new
    @status_window.back_opacity = 160
  end
  #--------------------------------------------------------------------------
  # * Main Scene Change
  #--------------------------------------------------------------------------
  def main_scenechange?
    # Abort loop if screen is changed
    if $scene != self
      return true
    end
    return false
  end
  #--------------------------------------------------------------------------
  # * Main Dispose
  #--------------------------------------------------------------------------
  def main_dispose
    #Dispose Background
    @background.dispose
   
    # Dispose All Windows
    # Dispose InfoWindow
    @info_window.dispose
    # Dispose MenuStatus
    @status_window.dispose
    # Dispose MenuCommand
    @command_window.dispose
    @player_command_window.dispose
    @sys_command_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Main Loop
  #--------------------------------------------------------------------------
  def main_loop
    # Update game screen
    Graphics.update
    # Update input information
    Input.update
    # Frame update
    update
  end
  #--------------------------------------------------------------------------
  # * Update
  #--------------------------------------------------------------------------
  def update
    # Update Windows
    update_windows
   
    if @player_command_window.active
      @player_command_window.z = +500
    end
   
    if @sys_command_window.active
      @sys_command_window.z = +500
    end
   
    # If command window is active: call update_command
    if @command_window.active
      update_command
      return
    end
    # If player menu window is active: call update_player_command
    if @player_command_window.active
      update_player_command
      return
    end
    # If system menu window is active: call update_sys_command
    if @sys_command_window.active
      update_sys_command
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Window Update
  #--------------------------------------------------------------------------
  def update_windows
    # Update MenuCommand
    @command_window.update if @command_window.visible
    @player_command_window.update if @player_command_window.visible
    @sys_command_window.update if @sys_command_window.visible
    @info_window.update
    @status_window.update
  end
  #--------------------------------------------------------------------------
  # * Update Menu Command
  #--------------------------------------------------------------------------
  def update_command
    # If B button was pressed
    if Input.trigger?(Input::B)
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)     
      # Switch to map screen
      $scene = Scene_Map.new
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)# If command other than save or end game, and party members = 0
      if $game_party.actors.size == 0 and @command_window.index < 4
        # Play buzzer SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # Branch by command window cursor position
      case @command_window.index
      when 0 # Item
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to item screen
        $scene = Scene_Item.new
      when 1 # Skill
        # If this actor's action limit is 2 or more
        if $game_party.actors[0].restriction >= 2
          # Play buzzer SE
          $game_system.se_play($data_system.buzzer_se)
          return
        end
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to skill screen
        $scene = Scene_Skill.new
      when 2 # Equip
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to equipment screen
        $scene = Scene_Equip.new
      when 3 # Player
        $game_system.se_play($data_system.decision_se)
        @player_command_window.active = true
        @player_command_window.visible = true
        @command_window.active = false
      when 4 # Option
        #$game_system.se_play($data_system.decision_se)
        #Put your Option Scene
      when 5 # System
        $game_system.se_play($data_system.decision_se)
        @sys_command_window.active = true
        @sys_command_window.visible = true
        @command_window.active = false
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Update PlayerCommand Window
  #--------------------------------------------------------------------------
  def update_player_command
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @command_window.active = true
      @player_command_window.active = false
      @player_command_window.visible = false
      @player_command_window.index = 0
      @player_command_window.z = 0
      return
    end 
   
    if Input.trigger?(Input::C)
      case @player_command_window.index     
      when 0 #Status
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to status screen
        $scene = Scene_Status.new
      when 1 #Quest Log
        # Play decision SE
        #$game_system.se_play($data_system.decision_se)
        #Put your Quest Scene
      end
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Update SysCommand Window
  #--------------------------------------------------------------------------
  def update_sys_command
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @command_window.active = true
      @sys_command_window.active = false
      @sys_command_window.visible = false
      @sys_command_window.index = 0
      @sys_command_window.z = 0
      return
    end 
   
    if Input.trigger?(Input::C)
      case @sys_command_window.index     
      when 0 #Save
        # If saving is forbidden
        if $game_system.save_disabled
          # Play buzzer SE
          $game_system.se_play($data_system.buzzer_se)
          return
        end
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to save screen
        $scene = Scene_Save.new
      when 1 #Load
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to load screen
        $scene = Scene_Load.new
      when 2 #Exit 
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to end game screen
        $scene = Scene_End.new
      end
      return
    end
  end
end


class Scene_Save < Scene_File
  alias save_on_decision on_decision
  alias save_on_cancel on_cancel
  #--------------------------------------------------------------------------
  # * Decision Processing
  #--------------------------------------------------------------------------
  def on_decision(filename)
    save_on_decision(filename)
    $scene = Scene_Menu.new(5)
  end
  #--------------------------------------------------------------------------
  # * Cancel Processing
  #--------------------------------------------------------------------------
  def on_cancel
    save_on_cancel
    $scene = Scene_Menu.new(5)
  end
end


class Scene_Load < Scene_File
  #--------------------------------------------------------------------------
  # * Alias Listings
  #--------------------------------------------------------------------------
  alias load_initialize initialize
  alias load_on_cancel on_cancel
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    @scene = $scene
    load_initialize
  end
  #--------------------------------------------------------------------------
  # * Cancel Processing
  #--------------------------------------------------------------------------
  def on_cancel
    load_on_cancel
    $scene = @scene
  end
end
Expand to see the code.


SDK2 version Spoiler
#==============================================================================
#L's Custom Menu #3: Simple 1-person CMS - SDK2 ver.
#--------------------------------------------------------------------------
#==============================================================================

#--------------------------------------------------------------------------
# * Begin SDK Log
#--------------------------------------------------------------------------
SDK.log("L's 1-person CMS", 'L', '1.01', '2007-05-31')

#--------------------------------------------------------------------------
# * Begin SDK Requirement Check
#--------------------------------------------------------------------------
SDK.check_requirements(2.0, [1])

#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if SDK.enabled?("L's 1-person CMS")

module SDK::Scene_Commands
  #============================================================================
  # ** Scene_Menu
  #============================================================================
  module Scene_Menu
    Item     = 'Item'
    Skill    = 'Skill'
    Equip    = 'Equip'
    Status   = 'Status'
    Save     = 'Save'
    Load     = 'Load'
    End_Game = 'Exit'
   
    Order    = 'Order'
    Party    = 'Party'
    Player   = 'Player'
    Option   = 'Option'
    Quest    = 'Quest'
    System   = 'System'
   
    Menu_Commands = [Item, Skill, Equip, Player, Option, System]
    Player_Commands = [Status, Quest]
    System_Commands = [Save, Load, End_Game]
  end
end


class Window_Base < Window
  SYSTEM_WORD_EVA = "Evade" #
  #--------------------------------------------------------------------------
  # * Draw Parameter
  #     actor : actor
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #     type  : parameter type (0-6)
  #--------------------------------------------------------------------------
  def draw_actor_parameter(actor, x, y, type)
    case type
    when 0
      parameter_name = $data_system.words.atk
      parameter_value = actor.atk
    when 1
      parameter_name = $data_system.words.pdef
      parameter_value = actor.pdef
    when 2
      parameter_name = $data_system.words.mdef
      parameter_value = actor.mdef
    when 3
      parameter_name = $data_system.words.str
      parameter_value = actor.str
    when 4
      parameter_name = $data_system.words.dex
      parameter_value = actor.dex
    when 5
      parameter_name = $data_system.words.agi
      parameter_value = actor.agi
    when 6
      parameter_name = $data_system.words.int
      parameter_value = actor.int
    when 7 #
      parameter_name = SYSTEM_WORD_EVA #
      parameter_value = actor.eva #
    end
    self.contents.font.color = system_color
    self.contents.draw_text(x, y, 120, 32, parameter_name)
    self.contents.font.color = normal_color
    self.contents.draw_text(x + 120, y, 36, 32, parameter_value.to_s, 2)
  end
end


#==============================================================================
# â €“   Game_Map
#==============================================================================
class Game_Map   
  def name
     $map_infos[@map_id]
  end   
end


#========================================
#â €“   Scene_Title
#--------------------------------------------------------------------------------
# Setting functions for the Title
#========================================
class Scene_Title
  $map_infos = load_data("Data/MapInfos.rxdata")
  for key in $map_infos.keys
    $map_infos[key] = $map_infos[key].name
  end
end


#==============================================================================
# InfoWindow
#==============================================================================
class Window_Info < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 384, 640, 96)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.size = 22
    #Z-Pos
    self.z = 100
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear
    #Add Contents
    self.contents.font.color = system_color
    self.contents.draw_text(4,0,120,32,'Location')
    self.contents.font.color = normal_color
    self.contents.draw_text(96,0,360,32,$game_map.name.to_s)
   
    #Draw Steps
    self.contents.font.color = system_color
    self.contents.draw_text(4,32,120,32,'Steps')
    self.contents.font.color = normal_color
    self.contents.draw_text(48,32, 120, 32, $game_party.steps.to_s, 2)
   
    #Draw Play Time
    self.contents.font.color = system_color
    self.contents.draw_text(200,32,120,32,'Play Time')
    @total_sec = Graphics.frame_count / Graphics.frame_rate
    hour = @total_sec / 60 / 60
    min = @total_sec / 60 % 60
    sec = @total_sec % 60
    text = sprintf("%02d:%02d:%02d", hour, min, sec)
    self.contents.font.color = normal_color
    self.contents.draw_text(310, 32, 120, 32, text)
   
    #Draw Gold
    #Advanced Gold Display mini-script by Dubealex.
    case $game_party.gold
    when 0..9999
      gold = $game_party.gold
    when 10000..99999
      gold = $game_party.gold.to_s
      array = gold.split(//)
      gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
    when 100000..999999
      gold = $game_party.gold.to_s
      array = gold.split(//)
      gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
    when 1000000..9999999
      gold = $game_party.gold.to_s
      array = gold.split(//)
      gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
    end   
    self.contents.font.color = system_color
    gold_word = $data_system.words.gold.to_s + " :"
    cx = contents.text_size(gold_word).width
    cx2=contents.text_size(gold.to_s).width
    self.contents.draw_text(412,32,120-cx-2,32,gold_word)
    self.contents.font.color = normal_color
    self.contents.draw_text(600-cx2+2, 32, cx2, 32, gold.to_s, 2)
   
    #Draw Variable
    self.contents.font.color = system_color
    self.contents.draw_text(412,0,120,32,'Variable Name')
    self.contents.font.color = normal_color
    self.contents.draw_text(540,0,120,32,'Variable')
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    if Graphics.frame_count / Graphics.frame_rate != @total_sec
      refresh
    end
  end
end


#==============================================================================
# MenuStatus
#==============================================================================
class Window_NewMenuStatus < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(160, 0, 480, 320)
    #Create Bitmap
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.size = 22
    #Z-Pos
    self.z = 100
    #Refresh and add the contents to window
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    #Clear Bitmap
    self.contents.clear
    actor = $game_party.actors[0]
    draw_actor_graphic(actor, 32, 64)
    draw_actor_name(actor, 75, 0)
    draw_actor_class(actor, 240, 0)
    draw_actor_level(actor, 75, 32)
    draw_actor_state(actor, 240, 32)
    draw_actor_exp(actor, 75, 64)
    draw_actor_hp(actor, 32,100)
    draw_actor_sp(actor, 240,100)
    draw_actor_parameter(actor, 32, 150, 0)
    draw_actor_parameter(actor, 32, 182, 1)
    draw_actor_parameter(actor, 32, 214, 2)
    draw_actor_parameter(actor, 32, 246, 7) #Evade
    draw_actor_parameter(actor, 240, 150, 3)
    draw_actor_parameter(actor, 240, 182, 4)
    draw_actor_parameter(actor, 240, 214, 5)
    draw_actor_parameter(actor, 240, 246, 6)
  end
end


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

class Scene_Menu
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     menu_index : command cursor's initial position
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  #--------------------------------------------------------------------------
  # * Main Processing : Spriteset Initialization
  #--------------------------------------------------------------------------
  def main_spriteset 
    #Draw Background
    @background = Spriteset_Map.new
  end
  #--------------------------------------------------------------------------
  # * Main Processing : Window Initialization
  #--------------------------------------------------------------------------
  def main_window
    #Draw Windows
    main_command_window
    player_command_window
    system_command_window
    #Draw Windows
    # InfoWindow
    @info_window = Window_Info.new
    @info_window.back_opacity = 160
    # MenuStatus
    @status_window = Window_NewMenuStatus.new
    @status_window.back_opacity = 160   
  end
  #--------------------------------------------------------------------------
  # * Main Command Window
  #--------------------------------------------------------------------------
  def main_command_window
    commands = SDK::Scene_Commands::Scene_Menu::Menu_Commands.dup
    @command_window = Window_Command.new(160, commands)
    @command_window.back_opacity = 160
    @command_window.index = @menu_index
    # If number of party members is 0
    if $game_party.actors.size == 0
      # Disable items, skills, equipment, and status
      @command_window.disable_item(0)
      @command_window.disable_item(1)
      @command_window.disable_item(2)
      @command_window.disable_item(3)
    end
  end
  #--------------------------------------------------------------------------
  # * Player Command Window
  #--------------------------------------------------------------------------
  def player_command_window
    player_commands = SDK::Scene_Commands::Scene_Menu::Player_Commands.dup
    @player_command_window = Window_Command.new(160, player_commands)
    @player_command_window.back_opacity = 160
    @player_command_window.visible = false
    @player_command_window.active = false
    @player_command_window.x = 100
    @player_command_window.y = 120
  end
  #--------------------------------------------------------------------------
  # * System Command Window
  #--------------------------------------------------------------------------
  def system_command_window
    system_commands = SDK::Scene_Commands::Scene_Menu::System_Commands.dup
    @sys_command_window = Window_Command.new(128, system_commands)
    @sys_command_window.back_opacity = 160
    @sys_command_window.visible = false
    @sys_command_window.active = false
    @sys_command_window.x=100
    @sys_command_window.y=180
    check_save_available
    check_load_available
  end
  #-----------------
  def check_save_available
    # If save is forbidden
    if $game_system.save_disabled
      # Disable save
      @sys_command_window.disable_item(0)
    end
  end
  #-----------------
  def check_load_available
    #Check if saved file exists
    @load_enabled = false
    for i in 0..3
      if (FileTest.exist?("Save#{i+1}.rxdata"))       
        @load_enabled = true
      end
    end 
    if !@load_enabled
      #Put your @command_window.disable_item(index)
      @sys_command_window.disable_item(1)
    end
  end
  #--------------------------------------------------------------------------
  # * Update
  #--------------------------------------------------------------------------
  def update
    super
   
    if @player_command_window.active
      @player_command_window.z = +500
    end
   
    if @sys_command_window.active
      @sys_command_window.z = +500
    end
   
    # If command window is active: call update_command
    if @command_window.active
      update_command
      return
    end
    # If player menu window is active: call update_player_command
    if @player_command_window.active
      update_player_command
      return
    end
    # If system menu window is active: call update_sys_command
    if @sys_command_window.active
      update_sys_command
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Update Menu Command
  #--------------------------------------------------------------------------
  def update_command
    # If B button was pressed
    if Input.trigger?(Input::B)
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)     
      # Switch to map screen
      $scene = Scene_Map.new
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Return if Disabled Command
      if disabled_main_command?
        # Play buzzer SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # Command Input
      main_command_input
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Update SysCommand Window
  #--------------------------------------------------------------------------
  def update_sys_command
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @command_window.active = true
      @sys_command_window.active = false
      @sys_command_window.visible = false
      @sys_command_window.index = 0
      @sys_command_window.z -= 500
      return
    end 
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Return if Disabled Command
      if disabled_main_command?
        # Play buzzer SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # Command Input
      sys_command_input
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Update Player Command Window
  #--------------------------------------------------------------------------
  def update_player_command
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @command_window.active = true
      @player_command_window.active = false
      @player_command_window.visible = false
      @player_command_window.index = 0
      @player_command_window.z -= 500
      return
    end 
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Return if Disabled Command
      if disabled_main_command?
        # Play buzzer SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # Command Input
      player_command_input
      return
    end   
  end
  #--------------------------------------------------------------------------
  # * Disabled Main Command? Test
  #--------------------------------------------------------------------------
  def disabled_main_command?
    # Gets Current Command
    command = @command_window.command
    sys_command = @sys_command_window.command
    player_command = @player_command_window.command
    # Gets SDK Scene_Menu Commands
    c = SDK::Scene_Commands::Scene_Menu
    # If 0 Party Size
    if $game_party.actors.size == 0
      # If Item, Skill, Equip or Status Selected
      if [c::Item, c::Skill, c::Equip, c::Status].include?(command)
        return true
      end
      if [c::Status].include?(player_command)
        return true
      end
    end
    if [c::Skill].include?(command)
      # If this actor's action limit is 2 or more
      if $game_party.actors[0].restriction >= 2
        return true
      end
    end
    # If Save Disabled && Command is Save
    return true if $game_system.save_disabled && sys_command == c::Save
    # If Load Disabled && Command is Load
    return true if !@load_enabled && sys_command == c::Load
    return false
  end
  #--------------------------------------------------------------------------
  # * Main Command Input
  #--------------------------------------------------------------------------
  def main_command_input
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Branch by command window cursor position
    case @command_window.command
    when SDK::Scene_Commands::Scene_Menu::Item      # item
      command_item
    when SDK::Scene_Commands::Scene_Menu::Skill     # skill
      command_skill
    when SDK::Scene_Commands::Scene_Menu::Equip     # equipment
      command_equip
    when SDK::Scene_Commands::Scene_Menu::Player    # Call Player Menu
      $game_system.se_play($data_system.decision_se)
      @player_command_window.active = true
      @player_command_window.visible = true
      @command_window.active = false
    when SDK::Scene_Commands::Scene_Menu::Option    #option
      command_option
    when SDK::Scene_Commands::Scene_Menu::System  # call system menu     
      $game_system.se_play($data_system.decision_se)
      @sys_command_window.active = true
      @sys_command_window.visible = true
      @command_window.active = false   
    end
  end
  #--------------------------------------------------------------------------
  # * Player Command Input
  #--------------------------------------------------------------------------
  def player_command_input
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    case @player_command_window.command
    when SDK::Scene_Commands::Scene_Menu::Status    # status
      command_status
    when SDK::Scene_Commands::Scene_Menu::Quest    # quest
      command_quest
    end
  end
  #--------------------------------------------------------------------------
  # * System Command Input
  #--------------------------------------------------------------------------
  def sys_command_input
    # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Branch by command window cursor position
    case @sys_command_window.command
    when SDK::Scene_Commands::Scene_Menu::Save  #save
      command_save
    when SDK::Scene_Commands::Scene_Menu::Load  #load
      command_load
    when SDK::Scene_Commands::Scene_Menu::End_Game  #end game
      command_endgame
    end
  end
  #--------------------------------------------------------------------------
  # * Command : Item
  #--------------------------------------------------------------------------
  def command_item
    # Switch to item screen
    $scene = Scene_Item.new
  end
  #--------------------------------------------------------------------------
  # * Command : Skill
  #--------------------------------------------------------------------------
  def command_skill
    # Switch to skill screen
    $scene = Scene_Skill.new
  end
  #--------------------------------------------------------------------------
  # * Command : Equip
  #--------------------------------------------------------------------------
  def command_equip
    # Switch to equipment screen
    $scene = Scene_Equip.new
  end
  #--------------------------------------------------------------------------
  # * Command : Status
  #--------------------------------------------------------------------------
  def command_status
    # Switch to status screen
    $scene = Scene_Status.new
  end
  #--------------------------------------------------------------------------
  # * Command : Option
  #--------------------------------------------------------------------------
  def command_option
    # Switch to option screen
    #Put your Option Scene here
  end
  #--------------------------------------------------------------------------
  # * Command : Quest
  #--------------------------------------------------------------------------
  def command_quest
    # Switch to quest screen
    #Put your Quest Scene here
  end
  #--------------------------------------------------------------------------
  # * Command : Save
  #--------------------------------------------------------------------------
  def command_save
    # Switch to save screen
    $scene = Scene_Save.new
  end
  #--------------------------------------------------------------------------
  # * Command : Load
  #--------------------------------------------------------------------------
  def command_load
    # Switch to load screen
    $scene = Scene_Load.new
  end
  #--------------------------------------------------------------------------
  # * Command : End Game
  #--------------------------------------------------------------------------
  def command_endgame
    # Switch to end game screen
    $scene = Scene_End.new
  end
end

#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
end
Expand to see the code.
Not sure if it's ok to ask this here since the topic hasn't had any posts in a few months... but I have a bit of a problem with the script. More specifically, I'm using CMS #2 Revised (No SDK). The problem I'm having is that on any map that saving is disabled, I find ALL menu commands stop working. They're not greyed out or anything, so they look selectable like normal, but when you actually press the action button on them, they fail to do anything. All menu options work as expected on maps were saving is allowed, though.

I'm just assuming it has to do with the saving thing because that's the only difference between maps it works and maps it doesn't work on as far as I can see. Is there any reason why the script might be doing this? I noticed that there's a code there that checks if saving is allowed or not, but from what I can tell, that's just for making the "Save" command in the System submenu selectable or not. Logically, it shouldn't affect the entire menu.
Crazy Li wrote:
Not sure if it's ok to ask this here since the topic hasn't had any posts in a few months... but I have a bit of a problem with the script. More specifically, I'm using CMS #2 Revised (No SDK). The problem I'm having is that on any map that saving is disabled, I find ALL menu commands stop working. They're not greyed out or anything, so they look selectable like normal, but when you actually press the action button on them, they fail to do anything. All menu options work as expected on maps were saving is allowed, though.

I'm just assuming it has to do with the saving thing because that's the only difference between maps it works and maps it doesn't work on as far as I can see. Is there any reason why the script might be doing this? I noticed that there's a code there that checks if saving is allowed or not, but from what I can tell, that's just for making the "Save" command in the System submenu selectable or not. Logically, it shouldn't affect the entire menu.
Logically, no, it shouldn't be. But now that I'm away from the scene for a long time, I'm not sure if I can even read the source and find the problem.
I made a new thread for my custom menu scenes. So, plaese check the thread, not this. I'll report this to moderator for locking it and moving it to Archive.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=11923