Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #--------------------------------------------------------------------------
- # * Start Actor Command Selection
- #--------------------------------------------------------------------------
- class Scene_Battle < Scene_Base
- def start_actor_command_selection
- @party_command_window.active = false
- @actor_command_window.setup(@active_battler)
- @actor_command_window.active = true
- @actor_command_window.visible = true
- @actor_command_window.index = 0
- @actor_command_window.x = 0
- @actor_command_window.y = 220
- @actor_command_window.width = 546
- @actor_command_window.height = 70
- end
- #--------------------------------------------------------------------------
- # * Update Actor Command Selection
- #--------------------------------------------------------------------------
- def update_actor_command_selection
- @status_window.visible = true
- if Input.trigger?(Input::C )
- case @actor_command_window.index
- when 0 # Attack
- Sound.play_decision
- start_skill_selection
- when 1 # Item
- Sound.play_decision
- start_item_selection
- when 2 # Run
- if $game_troop.can_escape == false
- Sound.play_buzzer
- return
- end
- Sound.play_decision
- process_escape
- end
- end
- end
- end
- #==============================================================================
- # * Window_ActorCommand
- #------------------------------------------------------------------------------
- # This process starts the actor command window.
- #==============================================================================
- class Window_ActorCommand < Window_Command
- #--------------------------------------------------------------------------
- # * Setup
- #--------------------------------------------------------------------------
- def setup(actor)
- s1 = Vocab::attack
- s2 = Vocab::item
- s3 = Vocab::escape
- if actor.class.skill_name_valid
- s1 = actor.class.skill_name
- end
- # @actor_command_window = Window_Command.new(546, [s1, s2, s3], 3)
- # @actor_command_window.y = 220
- # @actor_command_window.height = 70
- @commands = [s1, s2, s3]
- @column_max = 3
- @item_max = 3
- @spacing = -5
- refresh
- self.index = 0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement