Help - Search - Members - Calendar
Full Version: Stopping Battle End ME
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Discussion
Shake0615
How do you alter the scripts so that when the Battle Results screen (or when the map is loaded), it automatically stops the battle end ME if it still plays? If possible, I'd like it to fadeout over a few seconds. Thanks in advance.
Makin Kash
QUOTE (Shake0615 @ Apr 21 2010, 12:47 PM) *
How do you alter the scripts so that when the Battle Results screen (or when the map is loaded), it automatically stops the battle end ME if it still plays? If possible, I'd like it to fadeout over a few seconds. Thanks in advance.


You are going to want to use this script it's Kylock's.
If you don't like it there are millions of ME stop scripts out there, just look!

CODE
#==============================================================================
# ■ Fade Battle End ME
#     6.5.2008
#------------------------------------------------------------------------------
#  Script by: Kylock
#==============================================================================
#    This script fades the Battle End ME at the end of the battle instead of
#  playing out the entire sound file.
#==============================================================================

class Scene_Battle < Scene_Base
  def battle_end(result)
    if result == 2 and not $game_troop.can_lose
      call_gameover
    else
      $game_party.clear_actions
      $game_party.remove_states_battle
      $game_troop.clear
      if $game_temp.battle_proc != nil
        $game_temp.battle_proc.call(result)
        $game_temp.battle_proc = nil
      end
      #Fades Fanfare ME
      RPG::ME.fade(1000)
      unless $BTEST
        $game_temp.map_bgm.play
        $game_temp.map_bgs.play
      end
      $scene = Scene_Map.new
      @message_window.clear
      Graphics.fadeout(30)
      #Stops fanfare me, starts Map BGM
      RPG::ME.stop
    end
    $game_temp.in_battle = false
  end
end
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.