My custom menu doesn't allow me do do things?

9robin3 here again! I have some problems with the CUTSOM MENU system script I downloaded. It works very well, but when I make 'save access>disable' at any time, you can't use items, equip, see stats etc. See? It seems that when making it Save Access>Disable, it disables EVERYTHING ELSE in the menu too! This is anoying since I will make a boss fight where you can't save, but ofc use items (and all other things). Right now, everything is disabled, so you can't save, but you can't use items either!

This is the script I used:

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


Plz help! This cant be normal, must be something wrong!
I'm trying my hardest to communicate telepathically, but nothing's coming in....

Which custom menu system are you using?
This is the script I used:

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


Plz help! This cant be normal, must be something wrong!
In line 426, you have $game_system.save_disabled set to true, and the default sys_command is "Save".

Try changing line 410 to:

sys_command = @sys_commands[@sys_command_window.index] if @sys_command_window.active == true
Thank You it worked exactly as I wanted! :)

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