Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Fade Battle End ME 1.0
Kylock
post May 6 2008, 07:38 PM
Post #1


Level 6
Group Icon

Group: Member
Posts: 85
Type: Scripter
RM Skill: Advanced




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



__________________________
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
thepurplearchmag...
post Sep 29 2011, 03:11 PM
Post #2


Level 2
Group Icon

Group: Member
Posts: 23
Type: None
RM Skill: Intermediate




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?
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- Kylock   Fade Battle End ME 1.0   May 6 2008, 07:38 PM
- - Bt255   Thank you! This was actually very hepful with ...   May 25 2008, 10:22 AM
|- - Kinerex Shiomi   QUOTE (Bt255 @ May 25 2008, 09:44 AM) Tha...   Aug 12 2008, 12:08 PM
- - Kira   Is this basically just 'Plug n' Play'?   May 26 2008, 02:18 PM
|- - Genshyu   QUOTE (Kira @ May 26 2008, 02:18 PM) Is t...   Feb 25 2009, 07:21 PM
- - puppeto4   Seeing how the code done, yeah it is Plug N Play t...   May 26 2008, 02:26 PM
- - bladexproduction   Thanks alot, this is really useful for a more flow...   May 27 2008, 02:38 PM
|- - Ilikepie123   THANKYOUTHANKYOUTHANKYOUTHANKYOU!! -end of...   May 27 2008, 04:45 PM
- - Squeakurs   THANK YOU!!!!! I've always...   Jun 2 2008, 08:36 PM
- - Fade   This issue was an a pretty annoying oversight on E...   Jun 4 2008, 08:28 PM
- - eviljoesph   I LOVE YOU KYLOCK ASDF   Oct 2 2008, 05:17 AM
- - fayt_leingod   Kylock you're the best!   Oct 2 2008, 06:50 PM
- - BizarreMonkey   OMG! You are my god, Kylock! I had to cut ...   Oct 19 2008, 03:49 AM
- - Sarabi   Honestly i have the complete reverse problem. :/ ...   Oct 19 2008, 09:11 AM
- - richxpwn   Guys, you know what I JUST noticed? This can be do...   Feb 24 2009, 03:41 PM
- - JEHINC.   As in "Tim and Eric's Awesome Show",...   Jun 11 2009, 08:23 PM
- - HolyAeris   Kylock you always makes some great stuff thx you h...   Aug 1 2009, 12:41 PM
- - elfyelf   I never get that problem but good job, incase it d...   Aug 1 2009, 02:19 PM
- - Locke   My dreams are coming true Oh thank you very mu...   Sep 26 2009, 06:32 AM
- - DarkAbyss   I actually have a problem with this. I used the sc...   Jan 18 2010, 01:32 PM
- - bluesuicidal   Very Cool!! thanks!!!   Jan 22 2010, 08:02 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 09:30 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker