#============================================================================== # 作者:Ru # http://konaxkaga.blog.shinobi.jp/ #------------------------------------------------------------------------------ # 戦闘中のアニメのON/OFFを選択できるスクリプトです。 #============================================================================== module RU_ANIMEONOFF BattleAnimeCommandName = "戦う:アニメOFF" # アニメOFF時のコマンド名 BattleAnimeSwitch = 10 # 使用するゲーム中のスイッチの番号。コレ用に1個確保してね。 end #============================================================================== # ■ Window_PartyCommand #------------------------------------------------------------------------------ #============================================================================== class Window_PartyCommand < Window_Command #-------------------------------------------------------------------------- # ● オブジェクト初期化 #-------------------------------------------------------------------------- def initialize s1 = Vocab::fight s2 = Vocab::escape s3 = RU_ANIMEONOFF::BattleAnimeCommandName super(128, [s1, s3, s2], 1, 4) draw_item(0, true) draw_item(1, true) draw_item(2, $game_troop.can_escape) self.active = false end end #============================================================================== # ■ Scene_Battle #------------------------------------------------------------------------------ #   #============================================================================== class Scene_Battle < Scene_Base #とりあえずスイッチONOFFの判定とか def battle_anime_on $game_switches[RU_ANIMEONOFF::BattleAnimeSwitch] = false end def battle_anime_off $game_switches[RU_ANIMEONOFF::BattleAnimeSwitch] = true end def update_party_command_selection if Input.trigger?(Input::C) case @party_command_window.index when 0 # 通常(コマンド名はツクールの設定のが反映) Sound.play_decision battle_anime_on @status_window.index = @actor_index = -1 next_actor when 1 #アニメOFF戦闘 Sound.play_decision battle_anime_off @status_window.index = @actor_index = -1 next_actor when 2 # 逃げる if $game_troop.can_escape == false Sound.play_buzzer return end Sound.play_decision process_escape end end end #-------------------------------------------------------------------------- # ● アニメーションの表示 #-------------------------------------------------------------------------- def display_animation(targets, animation_id) if $game_switches[RU_ANIMEONOFF::BattleAnimeSwitch] display_attack_animation(targets) else if animation_id < 0 display_attack_animation(targets) else display_normal_animation(targets, animation_id) end end wait(20) wait_for_animation end end