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 6153
761 기타 카운트 3초 1 file 백호 2009.02.22 1295
760 변수/스위치 Initial Switches and Variables by PK8 (XP/VX/VXA) Alkaid 2012.09.14 1296
759 파티 Party Switching Screen by exseiken file 백호 2009.02.22 1299
758 기타 KGC - 입수 경험치&금 증가 스크립트 백호 2009.02.22 1299
757 넷플2.0(펌) 3번째 4 오동훈 2008.02.25 1303
756 메뉴 Advanced Command Windows by Tsunokiette file 백호 2009.02.22 1307
755 기타 Complete Climate and Time System 1.2 by ForeverZer0 1 Alkaid 2010.09.17 1310
754 전투 Real Time Active Battle(RTAB) 1.14 from 歯車の城 3 file 백호 2009.02.22 1315
753 기타 Text to RGSS by DerVVulfman Alkaid 2011.04.18 1319
» 전투 적의 여러차례 행동 스크립트 1 백호 2009.02.22 1320
751 메뉴 플레이 시간 윈도우 개조 file 백호 2009.02.21 1328
750 메뉴 스테이터스 일람 스크립트 file 백호 2009.02.21 1328
749 Seph's Test Bed 0.4 (SDK2 호환, Method & Class Library 2 WMN 2008.04.06 1330
748 기타 엔딩에 스탭롤을 도입하는 스크립트 1 file 백호 2009.02.21 1335
747 이름입력 영어 이름 입력기 2 백호 2009.02.22 1335
746 기타 랜덤 지하 감옥 작성 스크립트 1 file 백호 2009.02.21 1338
745 메시지 Animated Window Skin by Tana 1 백호 2009.02.22 1338
744 스킬 스킬도감 오류 수정본 2 file 백호 2009.02.22 1340
743 HUD Advanced HUD Script 3 file 백호 2009.02.22 1341
742 비공정 스크립트의 탑승속도 변경하기. 3 아방스 2008.01.14 1346
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ... 52 Next
/ 52