Help - Search - Members - Calendar
Full Version: Something Simple
RPG RPG Revolution Forums > Scripting > Script Tutorials > RGSS2
Nexus007
Based on the amount of times this has been asked on multiple sites, i thought it might help posting it on here!

As many of you use OST from other games, you may find that you have to edit the battle end ME.

I myself use a Final Fantasy 7 MP3 file for my fanfare, and came up with the problem of having it play for too long, even when the battle had ended.

I know alot of you have the same problem, but all it needs is a little tweak in your scripting system.

Find this script in the scene_battle section

CODE
#--------------------------------------------------------------------------
  # * Victory Processing
  #--------------------------------------------------------------------------
  def process_victory
    @info_viewport.visible = false
    @message_window.visible = true
    RPG::BGM.stop
    $game_system.battle_end_me.play
    unless $BTEST
      $game_temp.map_bgm.play
      $game_temp.map_bgs.play
    end
    display_exp_and_gold
    display_drop_items
    display_level_up
    battle_end(0)


All you need to do is add RPG::ME.stop at the bottom of the script like so and Vuala!
CODE
#--------------------------------------------------------------------------
  # * Victory Processing
  #--------------------------------------------------------------------------
  def process_victory
    @info_viewport.visible = false
    @message_window.visible = true
    RPG::BGM.stop
    $game_system.battle_end_me.play
    unless $BTEST
      $game_temp.map_bgm.play
      $game_temp.map_bgs.play
    end
    display_exp_and_gold
    display_drop_items
    display_level_up
    battle_end(0)
    RPG::ME.stop



ASCIIgod
please use spoiler frequently..... it messes up your work.... and it 'Burns' my eyes
Axelx3
QUOTE (ASCIIgod @ Jul 7 2010, 04:54 AM) *
please use spoiler frequently..... it messes up your work.... and it 'Burns' my eyes

dude do you even SHUT UP?....

Don't Flame other members, and dont spam and necropost either ~ Regashi
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.