# # 戦闘終了後にバトルイベント発動(RGSS2) #  (C)2008 TYPE74RX-T # # ★ カスタマイズポイント:15行目 #============================================================================== # ★ RX_T #------------------------------------------------------------------------------ #  素材用汎用モジュールです。 #============================================================================== module RX_T AfterBattleEventNumber = 1 # 戦闘終了後にオンにするスイッチ番号 end #============================================================================== # ■ Scene_Battle #------------------------------------------------------------------------------ #  バトル画面の処理を行うクラスです。 #============================================================================== class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # ★ バトルイベントの処理(戦闘終了後専用) #-------------------------------------------------------------------------- def rx_process_after_battle_event loop do return if $game_temp.next_scene != nil $game_troop.interpreter.update $game_troop.setup_battle_event wait_for_message process_action if $game_troop.forcing_battler != nil return unless $game_troop.interpreter.running? update_basic end end #-------------------------------------------------------------------------- # ● 勝敗判定 #-------------------------------------------------------------------------- alias rx_rgss2s6_judge_win_loss judge_win_loss def judge_win_loss # ★ 戦闘で敵味方のいずれかが全滅していたら if ($game_troop.all_dead? or $game_party.all_dead?) and $game_temp.in_battle # 指定のスイッチをオン $game_switches[RX_T::AfterBattleEventNumber] = true # バトル終了後用バトルイベントの処理へ rx_process_after_battle_event end # メソッドを呼び戻す rx_rgss2s6_judge_win_loss end end