neonblack

Lock Actor 1

Aug 27th, 2012
196
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Scene_Menu < Scene_MenuBase
  2.   alias cp_form_personal command_personal
  3.   def command_personal
  4.     @status_window.form = false
  5.     cp_form_personal
  6.   end
  7.  
  8.   alias cp_form_formation command_formation
  9.   def command_formation
  10.     @status_window.form = true
  11.     cp_form_formation
  12.   end
  13. end
  14.  
  15. class Window_MenuStatus < Window_Selectable
  16.   attr_accessor :form
  17.  
  18.   def process_ok
  19.     return Sound.play_buzzer if @form && @index == 0
  20.     super
  21.     $game_party.menu_actor = $game_party.members[index]
  22.   end
  23. end
RAW Paste Data