Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

(CMS) L's Simple Custom w/ DVV's Limit Support

Remove unused commands are easy. Just change the code like this:
Code:
class Scene_Menu
  ......
  def commands_init
    ......
    @sys_commands.push(o3, o4, o5).flatten!
  ......
  #-----------------
  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  
......

To add 'Limit' Command, change the code like this:
Code:
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
......

class Scene_Menu
  ......
  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!
  ......
  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
  ......
  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
  ......
  #add this method for 'limit' menu command
  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
  ......
 
Thx, but one last request related to this script request, I want the Limit Break and Both exp and limit Bars to show up below health bar, the Limit bar shows up behind the health bar, exp, no-show. Thx so far, Big help, but it'll look neater after this request in the request
 
Ok, when placed below the Limit break script the map in the background shows but no limit menu, but if placed above, I get limit menu, but no map background, how could this be fixed?
 
If I delete the whole script,from Scene_menu, the Limit function doesn't work all, but If I delete Scene_menu in the script, it leads to a series of deletion which leads to the same thing....but I get my map background....
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top