Help - Search - Members - Calendar
Full Version: Fade Battle End ME 1.0
RPG RPG Revolution Forums > Scripting > Script Tutorials > RGSS2
Kylock
Is your victory fanfare obnoxiously long ?
Does it bother you when its still playing as your party once again roams the map ?

WORRY NO MORE! With this little dandy script, the fanfare will fade out as the battle scene does and your Map BGM will play as it should and all will be well with the world!

Just pop this baby in right somewhere after Materials and before Main to enjoy all the advantages of having obnoxiously long battle victory MEs!


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

Bt255
Thank you! This was actually very hepful with my long ending battle theme, well done.
Puppet Of Fate
Is this basically just 'Plug n' Play'?
YanXie
Seeing how the code done, yeah it is Plug N Play type script.

cheers,puppeto4. wink.gif
bladexproduction
Thanks alot, this is really useful for a more flowing battle/field game
Ilikepie123
THANKYOUTHANKYOUTHANKYOUTHANKYOU!!
-end of spazz muffin moment-
lol, Im using one of the FF Fanfares but it gets SO old... Too long.
Thank you so much dude. I will always respect you :3
Squeakurs
THANK YOU!!!!! I've always been a big fan of actually having victory MUSIC and not just a little clip of noises...
Warder
This issue was an a pretty annoying oversight on Enterbrain's part. Thanks for making this script. It's a big help to me. smile.gif
Kinerex Shiomi
QUOTE (Bt255 @ May 25 2008, 09:44 AM) *
Thank you! This was actually very hepful with my long ending battle theme, well done.



Yeah, I agree. It's a miracle to have, for me and my friends, the FF7 victory music was like 3 minutes, and it wouldn't stop, so this is what I need, thanks man, genius.
eviljoesph
I LOVE YOU KYLOCK ASDF
fayt_leingod
Kylock you're the best! wink.gif
BizarreMonkey
OMG! You are my god, Kylock! I had to cut short the FF7 and FFX fanfare music files so it wouldn't go on and on. But Now no Need.

Very nice, clean and simple script. I love it!
Sarabi
Honestly i have the complete reverse problem. :/

The map music starts playing before i am done pressing trough the victory messages, heh smile.gif /sigh.
richxpwn
Guys, you know what I JUST noticed?
This can be done with events.

Make a parallel event with the following:

Play ME: (none)
Play BGM: (whatever your map BGM is



EDIT: Like the script though, I get a better transition that the evented one.
Genshyu
QUOTE (Kira @ May 26 2008, 02:18 PM) *
Is this basically just 'Plug n' Play'?

Test it ftw? Lol man.. You'd find out faster if you did test it, trust me ohmy.gif.
JEHINC.
As in "Tim and Eric's Awesome Show", GREAT JOB! thumbsup.gif
HolyAeris
Kylock you always makes some great stuff thx you have about 3 diffrent spots on my credits thanks alot!
elfyelf
I never get that problem but good job, incase it does happen ill get it. tongue.gif
Locke
biggrin.gif My dreams are coming true biggrin.gif
Oh thank you very much for making this script
it,s very helpful for my long ending battle theme biggrin.gif
DarkAbyss
I actually have a problem with this. I used the script where it shows the battle results. then when i added this script to my game the battle results still show up even after the battle is over. can someone help me?
bluesuicidal
Very Cool!! thanks!!!
thepurplearchmage
QUOTE (Kylock @ May 6 2008, 08:38 PM) *
Is your victory fanfare obnoxiously long ?
Does it bother you when its still playing as your party once again roams the map ?

WORRY NO MORE! With this little dandy script, the fanfare will fade out as the battle scene does and your Map BGM will play as it should and all will be well with the world!

Just pop this baby in right somewhere after Materials and before Main to enjoy all the advantages of having obnoxiously long battle victory MEs!

<div style="margin:20px; margin-top:5px"><div style="margin-bottom:2px">[Show/Hide] Code</div><div style="margin: 0px; padding: 6px; border: 1px inset;"><div style="display: none;">
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

</div></div></div>


There an XP version?
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.