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
381 메시지 TXT 메세지 렌더링 스크립트 16 에돌이 2011.07.14 4069
380 전투 Trickster씨의 전투 시스템 (SDK 필수?) Alkaid 2012.09.18 3261
379 메뉴 Trickster's Plug 'n' Play Gradient Bar 2.0 1 file 백호 2009.02.22 2051
378 이동 및 탈것 Trickster's Caterpillar System 0.99 3 Alkaid 2010.12.23 1590
377 스킬 Trickster's Bag of Skill Effects (SDK 필요) Alkaid 2012.09.17 1291
376 스킬 Trickster's Bag of Skill Effects file 백호 2009.02.22 1077
375 그래픽 Transition Pack 1.11 by Fantasist Alkaid 2011.01.22 2044
374 기타 Trailing Characters ver.1 by SephirothSpawn 6 file 백호 2009.02.22 1551
373 변수/스위치 The Self Data Suite by PK8 (XP/VX/VXA) Alkaid 2012.09.14 1237
372 전투 The Lycan ABS by DerVVulfman Alkaid 2013.07.22 1898
371 기타 The General Monster Generator 1.1 by DerVVulfman 1 file Alkaid 2011.03.02 1496
370 영상 The AVI Player 1.3 by DerVVulfman 3 Alkaid 2010.10.08 1707
369 기타 Text to RGSS by DerVVulfman Alkaid 2011.04.18 1319
368 기타 Text Scroll by Dubealex (Release 3) 2 file 백호 2009.02.22 940
367 기타 Tetris Attack by trickster 1 file 백호 2009.02.22 986
366 기타 Terrain Encounter Areas by SephirothSpawn 백호 2009.02.22 778
365 메시지 Taylor's Simple Message System 2000 Alkaid 2020.07.05 247
364 기타 Tax Script 1.2 by The Darklord@rmxp.org 2 file 백호 2009.02.22 1130
363 메뉴 Tales Of Symphonia Menu 8 file 백호 2009.02.21 1744
362 변수/스위치 Switchless Common Events by PK8(XP/VX/VXA) Alkaid 2012.09.15 1202
Board Pagination Prev 1 ... 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 ... 52 Next
/ 52