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 장비 Auto Equipment Optimization for Guillaume777's Multi Slot Script by DerVVulfman Alkaid 2012.09.09 1498
660 전투 KGC_RandomTarget(랜덤 타겟) 1 file 백호 2009.02.22 1500
659 아이템 아이템소지수 한계돌파 (중복일지도) 12 카르닉스 2010.02.26 1500
658 이동 및 탈것 비공정 스크립트 5 file 백호 2009.02.22 1506
657 저장 세이브 슬롯 갯수 증가와 세이브 덮어씌울 때 확인 by RPG Advocate 5 백호 2009.02.22 1507
656 이동 및 탈것 데쉬 기능 스크립트 8 file 백호 2009.02.21 1508
655 기타 Character Creator by Leon@Creation Asylum 2 file 백호 2009.02.22 1511
654 이동 및 탈것 Mouse_move 호환 100%강화버전 4 file 백호 2009.02.21 1513
653 스킬 Grouping and Detail 7.2 by DerVVulfman 1 file Alkaid 2010.09.02 1513
652 기타 KGC - RMXP 스크립트 개발용 프로젝트 1.01 4 file 백호 2009.02.22 1515
651 기타 SFont 사용 스크립트 by Trickster Alkaid 2010.10.05 1516
650 상점 상점 시세 변동 스크립트 수정판 3 백호 2009.02.22 1518
649 기타 참 시스템 완성! 1 file 백호 2009.02.22 1523
648 전투 KGC_SPdeath (SP전투불능) file 백호 2009.02.22 1527
647 기타 ↓ 날씨 자동설정 스크립트 3 백호 2009.02.22 1530
646 상점 간단한 여관 by Tsunokiette@Creation Asylum 2 백호 2009.02.22 1530
645 기타 My메세지(메세지 출력 스크립트) 1 file 백호 2009.02.22 1533
644 기타 Seph's Test Bed v.4 (파일첨부) (SDK2.x용) Alkaid 2010.10.08 1536
643 메뉴 MOG - Scroll Bar for XP file 습작 2014.07.06 1539
642 이동 및 탈것 점프 높이를 자유자제로 조절하는 스크립트!! 8 file 백호 2009.02.21 1540
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