Quick Defend
#1
Quick Defend
Raice
May 23 2006

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


This is just a small modification i made. When you hit cancel in battle the character will defend. This way you could add your own special command or limit break simply by replacing the defend command. We decided to do this for our game because we are using the agility based turn order system so we have no use for cancel being previous actor. :alright:
hope someone finds it useful. Just make a new script above main and paste this.

Code:
class Scene_Battle
  def update_phase3_basic_command
    # If B button was pressed
    if Input.trigger?(Input::B)
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)
      # Go to command input for previous actor
      @active_battler.current_action.kind = 0
      @active_battler.current_action.basic = 1
      phase3_next_actor
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Branch by actor command window cursor position
      case @actor_command_window.index
      when 0  # attack
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Set action
        @active_battler.current_action.kind = 0
        @active_battler.current_action.basic = 0
        # Start enemy selection
        start_enemy_select
      when 1  # skill
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Set action
        @active_battler.current_action.kind = 1
        # Start skill selection
        start_skill_select
      when 2  # guard
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Set action
        @active_battler.current_action.kind = 0
        @active_battler.current_action.basic = 1
        # Go to command input for next actor
        phase3_next_actor
      when 3  # item
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Set action
        @active_battler.current_action.kind = 2
        # Start item selection
        start_item_select
      end
      return
    end
  end
end
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Quick Save System Eccid 0 2,481 08-11-2005, 01:00 PM
Last Post: Eccid



Users browsing this thread: 1 Guest(s)