Ending Battle Music Fix
#1
Ending Battle Music Fix
by Sephirothtds
May 11 2007

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


Well this is a small fix to an annoying thing RPG Maker XP does when battles ends.

This script stops map music from begining while you are viewing the result window at the end of the battle.

Code:
#==============================================================================
# TDS End Battle Music Fix
# Version: 1.0
# This script aliases the start_phase5 method and the update_phase5 method of
# Scene_Battle (part 2).
#==============================================================================
#------------------------------------------------------------------------------
# This script stops map music from begining after the winning sound completes
# playing.
#==============================================================================

#==============================================================================
# ** Scene_Battle (part 2)
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#==============================================================================

class Scene_Battle
  #--------------------------------------------------------------------------
  # * Start After Battle Phase
  #--------------------------------------------------------------------------
  alias tds_music_fix_start_phase5 start_phase5
  def start_phase5
    tds_music_fix_start_phase5
    # Stops Playing Audio
    Audio.bgm_stop    
  end
  #--------------------------------------------------------------------------
  # * Frame Update (after battle phase)
  #--------------------------------------------------------------------------
  alias tds_music_fix_update_phase5 update_phase5  
  def update_phase5  
   tds_music_fix_update_phase5
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Battle ends
      battle_end(0)
      # Return to BGM before battle started
      $game_system.bgm_play($game_temp.map_bgm)      
    end  
  end
end
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Loop MP3 Music GubiD 0 2,746 04-27-2008, 01:00 PM
Last Post: GubiD
  A really really simple individual special battle commands stupidstormy36 0 2,621 04-22-2008, 01:00 PM
Last Post: stupidstormy36
  In-Battle HP/SP Regeneration legend in his own mind 0 2,529 08-26-2007, 01:00 PM
Last Post: legend in his own mind
  Random Battle Cancel El Conductor 0 2,624 08-14-2007, 01:00 PM
Last Post: El Conductor
  map music continues during battle Nakate 0 2,594 08-11-2007, 01:00 PM
Last Post: Nakate
  Battle Result Plus Ragnarok Rob 0 2,576 09-23-2006, 01:00 PM
Last Post: Ragnarok Rob



Users browsing this thread: 1 Guest(s)