XP 스크립트

지정한 적이 한턴에 여러번 행동하는 스크립트 입니다
보스몹등에 사용하면 좋겠죠???????????

#----------------여기서부터
#
#    敵の複数回行動(Ver2.00)
#  (C)2005 TYPE74RX-T
#

# ★変数を初期化
$enemy_act_times = []
# ★指定エネミーID(ここでは例として2番・バジリスクを設定)の攻撃回数を設定(3回)
$enemy_act_times[1] = 3    #여기서 설정 하실 수 있습니다
$enemy_act_times[2] = 3    # ←이건 2번 적 3번행동
$enemy_act_times[4] = 3    # 계속 만드셔두됩니다
class Game_Battler
  #--------------------------------------------------------------------------
  # ● 公開インスタンス変数
  #--------------------------------------------------------------------------
  attr_reader  :maxacttimes              # ★1ターン中に行動できる最大回数
  attr_accessor :acttimes                # ★1ターン中に行動できる回数
  #--------------------------------------------------------------------------
  # ● オブジェクト初期化
  #--------------------------------------------------------------------------
  alias rx_t_rgssb1gb_initialize initialize
  def initialize
    rx_t_rgssb1gb_initialize
    @maxacttimes = 1  # ★1ターン中に行動できる最大回数を設定
    @acttimes = 1  # ★1ターン中に行動できる回数を設定
  end
end
class Game_Enemy < Game_Battler
  #--------------------------------------------------------------------------
  # ● オブジェクト初期化
  #    troop_id    : トループ ID
  #    member_index : トループメンバーのインデックス
  #--------------------------------------------------------------------------
  alias rx_t_rgssb1ge_initialize initialize
  def initialize(troop_id, member_index)
    rx_t_rgssb1ge_initialize(troop_id, member_index)
    # ★2回以上行動できるエネミーの場合は@acttimesに攻撃回数を設定
    if $enemy_act_times[@enemy_id] != nil
      @maxacttimes = $enemy_act_times[@enemy_id]
      @acttimes = $enemy_act_times[@enemy_id]
    else
      # ★ノーマルタイプの敵には攻撃回数を1に設定
      @maxacttimes = 1
      @acttimes = 1
    end
  end
end
class Scene_Battle
  #--------------------------------------------------------------------------
  # ● 基本アクション 結果作成
  #--------------------------------------------------------------------------
  alias rx_t_rgssb1sb_make_basic_action_result make_basic_action_result
  def make_basic_action_result
    # 防御の場合
    if @active_battler.current_action.basic == 1
      # ヘルプウィンドウに "防御" を表示
      @help_window.set_text($data_system.words.guard, 1)
      # ★アニメーション ID を設定(前回の行動アニメ発動防止)
      @animation1_id = 0
      @animation2_id = 0
      return
    end
    rx_t_rgssb1sb_make_basic_action_result
  end
  #--------------------------------------------------------------------------
  # ● フレーム更新 (メインフェーズ ステップ 2 : アクション開始)
  #--------------------------------------------------------------------------
  alias rx_t_rgssb1sb_update_phase4_step6 update_phase4_step6
  def update_phase4_step6
    rx_t_rgssb1sb_update_phase4_step6
    # ★ もし何かの間違いで@active_battler.acttimesがnilだったら強引に1を代入
    @active_battler.acttimes = 1 if @active_battler.acttimes == nil
    # ★行動回数を減算
    @active_battler.acttimes -= 1 if @active_battler.acttimes > 0
    # ★まだ行動回数が残っているならフェーズ4のstep2に移行
    if @active_battler.acttimes > 0
      # ★敵の行動を決める
      if @active_battler.is_a?(Game_Enemy)
        @active_battler.make_action
      end
      @phase4_step = 2
    else
      # ★行動回数を初期化
      @active_battler.acttimes = @active_battler.maxacttimes
      # ステップ 1 に移行
      @phase4_step = 1
    end
  end
end
#------------------끝

사용법 아주 쉽습니다 

스크립트 10번째 줄에 가보면
$enemy_act_times[1] = 3  이런식으로 있는데
뜻이 1번 적이  한턴에 3번행동 입니다

출처는 type74 입니다

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6203
661 기타 무기 회피율, 방어구 공격력 지정 스크립트 6 백호 2009.02.22 1248
660 기타 무기 개조 스크립트 file 백호 2009.02.21 1248
659 기타 몬스터도감 - 개량형 ? 7 file 백호 2009.02.22 2884
658 기타 몬스터 도감 7 file 백호 2009.02.21 1834
657 기타 몬스터 도감 18 file 백호 2009.02.22 2669
656 기타 몬스터 게이지바 턴알 22 file 키라링 2009.01.22 4016
655 기타 모험일기 5 키라링 2009.01.18 1825
654 기타 모험 일기 스크립트 2 file 백호 2009.02.21 1434
653 기타 명령어들 6 지존!! 2010.07.24 2288
652 기타 멤버 교체 11 file 백호 2009.02.22 2529
651 메인화면에 별똥별 효과 6 file 아방스 2007.11.09 4220
650 메뉴 메이플스토리처럼 메뉴를^^ 57 file 딸기님 2010.07.13 7145
649 메시지 메세지플러스3.1v스크립트(얼굴표시,메세지색상,속도등정하는스크립트) 8 백호 2009.02.21 4880
648 기타 메세지창의 위치 변동 자동화 file 백호 2009.02.21 1138
647 기타 메세지를 분출해 표시 백호 2009.02.22 1169
646 메시지 메세지 표시 업그레이드 11 file 백호 2009.02.21 4729
645 키입력 메세지 입력 스크립트. 25 file Bera 2010.10.18 3582
644 메시지 메세지 오류 수정 시스템 3 엘릭스토리안 2010.02.06 1474
643 메세지 분풀해 표시 스크립트 9 WMN 2008.03.17 2711
642 메뉴 메뉴화면에 '해야 할 일' 알려주는 창 넣기 11 하진 2012.04.23 3257
Board Pagination Prev 1 ... 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 ... 52 Next
/ 52