Common Event in Menu

This script is not by any means my work - I owe all credit to Gorechild for the initial scripting and addition of the Common Event, and to Lockheart for finalizing and readding the Status command to the menu. I only hope other RMXPers on here will find this simple script as useful as I did. ;)

#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
#  This class performs menu screen processing.
#==============================================================================
# NOTE: This seems obvious, but this script replaces your Scene_Menu class.
class Scene_Menu
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     menu_index : command cursor's initial position
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  def main
    # Make command window
    s1 = "Items"
    s2 = "Skills"
    s3 = "Equipment"
    s4 = "Status"
    s5 = "Party"
    s6 = "Common Event" # This is the name of the selection that will appear in the game menu. Pretty self-explanitory: When you select this text in the pause menu, it will initialize the set common event.
    s7 = "Save"
    s8 = "End Game"
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7, s8])
    @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(4)
    end
    # If save is forbidden
    if $game_system.save_disabled
      # Disable save
      @command_window.disable_item(5)
    end
    # Make gold window
    @gold_window = Window_Gold.new
    @gold_window.x = 0
    @gold_window.y = 416
    # Make status window
    @status_window = Window_MenuStatus.new
    @status_window.x = 160
    @status_window.y = 0
    # Execute transition
    Graphics.transition
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    # Dispose of windows
    @command_window.dispose
    @gold_window.dispose
    @status_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Update windows
    @command_window.update
    @gold_window.update
    @status_window.update
    # If command window is active: call update_command
    if @command_window.active
      update_command
      return
    end
    # If status window is active: call update_status
    if @status_window.active
      update_status
      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)
      # 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  # equipment
        # 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  # Party
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 9
        $scene = Scene_Map.new
      when 5  # Common Event
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 1 # <<< Change this number to the common event you wish to initialize when the menu option is selected.
        $scene = Scene_Map.new
      when 6  # 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 7  # end game
        # 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)
      end
      return
    end
  end
end
Expand to see the code.


Very easy to use, instructions are included within the script. This overwrites Scene_Menu.

What this script does is add a command to the pause menu between 'Status' and 'Save' that goes directly to a Common Event of your specification. With the event commands, you can use this for various different things - adding a map to your menu, a whole new statistics option, an ingame guide, or even a quest log. Very simple, but very useful. Have fun.

Again - all credit goes to Gorechild and Lockheart.
Wow, this script has so many uses. Thanks :)
Hey man thanks for giving me credit for the common event piece. its the least I could do (literally seeing how im not that good at scripting lol)
To make the common event more specific, heres the lines to look for to change which common event you wanna use.

      when 4  # Common Event
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Change to get the event ID
        $game_temp.common_event_id = 1
        #Goes to map
        $scene = Scene_Map.new
      when 4  # save
Expand to see the code.


And sorry that the comments arent right, I originally replaced the status window, and he had someone else add in the status option again, which is why my comments are wrong lol. So if you want the right comment, just copy and paste this to replace the original version (that way its easier to find the spot to change the common event) and dark, if you wanna edit you post and delete this one so that the comments are right, go ahead. (also with this part you might wanna edit it a bit or have it so the map turns black when you open the menu so you can't see the map when going to the common event option. (and if I confused you at all, message me and I'll be able to help you lol.)
Oh I see, so you can start a common event from the menu?
I was thinking more like parallel processes. Which seemed an odd thing for a menu which could be easily done with simple scripting. Eye-candy stuff atleast.
This could be useful for some.
[QUOTE=Jirbytaylor;249215]Oh I see, so you can start a common event from the menu?
I was thinking more like parallel processes. Which seemed an odd thing for a menu which could be easily done with simple scripting. Eye-candy stuff atleast.
This could be useful for some.[/QUOTE]

This is useful for those that are good in events so they can make what they want in a script, and this script has many good uses well done!:thumbsup01:
Great script, I will definetely use this, good job.
Basicly, the purpose of this script is to help those of us who can't script, but have knowlege of eventing (seeing how its much easier). But, like dark said, you have to change the line "Common Event" to what you want the option to be. He's pretty much explained everything, so I'm no longer needed to explain anything. Like I said dark, replace the original lines of the common event part with the new ones with correct comments (I wasn't paying attention before when putting in those lines and only got a single line of comments). And guys, this is only my 3rd script mod so its not the best, but I shoulda probably posted it up. But oh well, hes the one using it.
I'll change it if you like... ;P But I was very aware that the 4 constant was repeated. However, it worked just fine with the double listing, so I left it as it was.

... I don't understand what you're asking about comments though.. ?
Lol read your messages I just told you on there.
Hah... ;P This has replaced my Beastiery, Character Bio, Quest Log, and Tutorial all in one...
Nice lol.
Ok, sorry for my ignorance.
I make a new script above main, and paste.
Then i made a new common event in database called Fire.
But now idk what lines in the script to change...
when 4 # Common Event
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Change to get the event ID
$game_temp.common_event_id = 1 #Goes to map
$scene = Scene_Map.new
when 4 # save

Its pretty clsoe to the bottom, I dont have anything to put the script in right now to check what number it is, so just go clear to the bottom and start going up till you see this line: $game_temp.common_event_id = 1, and change the 1 to the number of the event. (if the events already event 1, then you won't need to change anything.)
This is the one true script I've been searching for all my life. I might leave my husband and run away with it.

Thank you! :#
great!
now i can use events for THAT option in te menu i can't do with scripts!!
HAHA!

thanks!
@nin: To change the name from common event to Fire, its at the top of the script, it starts with S5 I do believe. Thats how you change the name on the script if thats what your asking (the command name)

@Ed: Yeah, this was ment for the... scripting impared :)
Sorry gorechild... and anyone else who really cares. I finally got my computer back up and running after the Brave-Sentry virus was finished with me, and I'll fix the comments in the script as soon as I get my RPGXP up again.

EDIT: Script updated, instructions and comments included. ;)
Good lol. Dont want people who dont undserstand confused. :P
Could you make it so there would be 2 comment events in the menu as opposed to one? (I know, I'm greedy.)
Why is the party command there?
Every time I select it my game shuts down, is there any way to remove it?
@ice: I dont get what your saying?

@Never: yes, but it takes a little bit of modding im not doing. all you have to do is either replace another command or just create a new command named common event 2 (If you want later I'll do this for you, but I really dont see any point in this)
Edit: Nevermind it was a problem with my database (Maximum common events was two when the command I was having trouble with activates common event nine)
I should've looked through the script first':|
Alright. I wouldn't have guessed that lol.
for the kid who wanted the more common events try this script.
#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
#  This class performs menu screen processing.
#==============================================================================
# NOTE: This seems obvious, but this script replaces your Scene_Menu class.
class Scene_Menu
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     menu_index : command cursor's initial position
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  def main
    # Make command window
    s1 = "Items"
    s2 = "Skills"
    s3 = "Equipment"
    s4 = "Status"
    s5 = "Party"
    s6 = "Common Event" # This is the name of the selection that will appear in the game menu. Pretty self-explanitory: When you select this text in the pause menu, it will initialize the set common event.
    s7 = "Common Event2"
    s8 = "Save"
    s9 = "End Game"
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7, s8, s9])
    @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(4)
    end
    # If save is forbidden
    if $game_system.save_disabled
      # Disable save
      @command_window.disable_item(5)
    end
    # Make gold window
    @gold_window = Window_Gold.new
    @gold_window.x = 0
    @gold_window.y = 416
    # Make status window
    @status_window = Window_MenuStatus.new
    @status_window.x = 160
    @status_window.y = 0
    # Execute transition
    Graphics.transition
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    # Dispose of windows
    @command_window.dispose
    @gold_window.dispose
    @status_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Update windows
    @command_window.update
    @gold_window.update
    @status_window.update
    # If command window is active: call update_command
    if @command_window.active
      update_command
      return
    end
    # If status window is active: call update_status
    if @status_window.active
      update_status
      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)
      # 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  # equipment
        # 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  # Party
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 9
        $scene = Scene_Map.new
      when 5  # Common Event
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 1 # <<< Change this number to the common event you wish to initialize when the menu option is selected.
        $scene = Scene_Map.new
      when 6  # Common Event
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 1 # <<< Change this number to the common event you wish to initialize when the menu option is selected.
        $scene = Scene_Map.new
      when 7  # 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 8  # end game
        # 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)
      end
      return
    end
  end
Expand to see the code.


This should do it, if it gives you an error tell me cuz all I did was copy and past to make this.
Yeah, the party command is set to activate common event number nine.
I only found this out when I went to make a few changes to the script (Fixed it so when save is disabled the save command turns grey and not the common event command and added a playtime window)

Edit: Gorechild that script you just posted has three common event commands, item 5 "party" activates common event number nine
I'd suggest changing this part of the code
      when 4  # Party
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 9
        $scene = Scene_Map.new
      when 5  # Common Event
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 1 # <<< Change this number to the common event you wish to initialize when the menu option is selected.
        $scene = Scene_Map.new
      when 6  # Common Event
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 1 # <<< Change this number to the common event you wish to initialize when the menu option is selected.
        $scene = Scene_Map.new
Expand to see the code.


To This:
      when 4  # Party
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 1 <<< Change this number to the common event you wish to initialize when the menu option is selected.
        $scene = Scene_Map.new
      when 5  # Common Event
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 2 # <<< Change this number to the common event you wish to initialize when the menu option is selected.
        $scene = Scene_Map.new
      when 6  # Common Event
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 3 # <<< Change this number to the common event you wish to initialize when the menu option is selected.
        $scene = Scene_Map.new
Expand to see the code.


Also change the party command to say common event.

Actually would you be ok with me posting my version of the script?
Lol sorry for not having the play time window, im not sure if I took it out or the other guy, but I find it annoying and takes up space so I always take it out.
Here's the version I came up with, it fixes the disable save problem, it adds a playtime window and also removes the problem with item 5 in the menu.
It makes it a little easier to understand as well.
[QUOTE=Neverplayd;267060]Could you make it so there would be 2 comment events in the menu as opposed to one? (I know, I'm greedy.)[/QUOTE]

This version of the script does that.

@Gorechild: The second version of the script you posted has three common events, items 5, 6 and 7 and also 6 and 7 activate the same common event so there would be a glitch if you tried to use it without modifying it first.

#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
#  This class performs menu screen processing.
#==============================================================================
# NOTE: This seems obvious, but this script replaces your Scene_Menu class.
class Scene_Menu
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     menu_index : command cursor's initial position
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  def main
    # Make command window
    s1 = "Items"
    s2 = "Skills"
    s3 = "Equipment"
    s4 = "Status"
    s5 = "Common Event 1" # This is the name of the selection that will appear in the game menu. Pretty self-explanitory: When you select this text in the pause menu, it will initialize the set common event.
    s6 = "Common Event 2" # This is the name of the selection that will appear in the game menu. Pretty self-explanitory: When you select this text in the pause menu, it will initialize the set common event.
    s7 = "Save"
    s8 = "End Game"
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7, s8])
    @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(4)
    end
    # If save is forbidden
    if $game_system.save_disabled
      # Disable save
      @command_window.disable_item(6)
    end
    # Make gold window
    @gold_window = Window_Gold.new
    @gold_window.x = 0
    @gold_window.y = 416
    # Make play time window
    @playtime_window = Window_PlayTime.new
    @playtime_window.x = 0
    @playtime_window.y = 288
    # Make status window
    @status_window = Window_MenuStatus.new
    @status_window.x = 160
    @status_window.y = 0
    # Execute transition
    Graphics.transition
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    # Dispose of windows
    @command_window.dispose
    @gold_window.dispose
    @status_window.dispose
    @playtime_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Update windows
    @command_window.update
    @gold_window.update
    @status_window.update
    @playtime_window.update
    # If command window is active: call update_command
    if @command_window.active
      update_command
      return
    end
    # If status window is active: call update_status
    if @status_window.active
      update_status
      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)
      # 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  # equipment
        # 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  # Party
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 1 # <<< Change this number to the common event you wish to initialize when the menu option is selected.
        $scene = Scene_Map.new
      when 5  # Common Event
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Make status window active
        $game_temp.common_event_id = 2 # <<< Change this number to the common event you wish to initialize when the menu option is selected.
        $scene = Scene_Map.new
      when 6  # 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 7  # end game
        # 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)
      end
      return
    end
  end
end
Expand to see the code.
First off, if your making your own version, post it by itself, not in ours, and also, my little edit was an example. you can change the common event number along with, theres only 2 common events, not 3. Learn how to count lol and also, I didnt test it, I just copied what needed to be copied and pasted. So, I didnt have time to test it cuz I had to leave. So its possible it was wrong (and I might of accidentally replaced the party thing)
Is there still support for this script?

I've been using this script, and it has been working fine, but when I added SDK 2.3 to my game, this stopped working.

I'm pretty sure it's because SDK overwrites Scene_Menu, so I tried putting this script in the SDK to see if it would do anything, and when I go to the menu, the screen just turns black.

How can I make this work with the SDK?
@masquade.

Use ths script instead
http://www.rmxp.org/forums/showthread.php?t=18863 It's by loler12
Thanks, XP, it's working great.

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