IceDragon200

SkipActorSelections

Nov 28th, 2011
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.04 KB | None | 0 0
  1. class Scene_Menu
  2.  
  3.   SKIP_SKILL = true
  4.   SKIP_EQUIP = true
  5.   SKIP_STATUS = true
  6.  
  7.   def update_command_selection
  8.     if Input.trigger?(Input::B)
  9.       Sound.play_cancel
  10.       $scene = Scene_Map.new
  11.     elsif Input.trigger?(Input::C)
  12.       if $game_party.members.size == 0 and @command_window.index < 4
  13.         Sound.play_buzzer
  14.         return
  15.       elsif $game_system.save_disabled and @command_window.index == 4
  16.         Sound.play_buzzer
  17.         return
  18.       end
  19.       Sound.play_decision
  20.       case @command_window.index
  21.       when 0      # Item
  22.         $scene = Scene_Item.new
  23.       when 1  # Skill
  24.         SKIP_SKILL ? $scene = Scene_Skill.new(0) : start_actor_selection
  25.       when 2  # Equip
  26.         SKIP_EQUIP ? $scene = Scene_Equip.new(0) : start_actor_selection
  27.       when 3  # Status
  28.         SKIP_STATUS ? $scene = Scene_Status.new(0) : start_actor_selection
  29.       when 4      # Save
  30.         $scene = Scene_File.new(true, false, false)
  31.       when 5      # End Game
  32.         $scene = Scene_End.new
  33.       end
  34.     end
  35.   end
  36.  
  37. end
  38.  
Advertisement
Add Comment
Please, Sign In to add comment