Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
Law’s Battle-End ME Fade
Version 1.0 The Law G14 12/26/09
Introduction
Hey guys, it's been a while. I've been working on a pretty big script project that's been taking me a while to make so I decided to throw out a pretty easy script to make since I haven't released one in a while. This is an XP translation of Kylock's Fade Battle End ME script. Basically, what my script does is make it so that you can set an amount of time to fade out your battle-end ME because sometimes, battle ME's are very long and can drag out into the map which is kinda weird lol, so this script fixes that. Enjoy
Features
-Allows the user to set an amount of time for the battle me to fade.
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Another script from the Law , hey you should make one where the music continues from map on to battle then back to the map. Just for them epic scenes where you only one want one music playing the whole time.
Anyways, keep up the good job man.
__________________________
Use Dropbox to upload your files. Much simpler than other upload sites, you can simply place a folder on your desktop that will sync with your DropBox account.
QUOTE ('Exiled One')
"If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others."
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Group: +Gold Member
Posts: 2,178
Type: Developer
RM Skill: Advanced
Handy script to have for any project. Going into mine right now. Again this gives more time to do other things, rather than editing down long battle ME's outside the RM maker.
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
I liked your script law and I'll give credit but it's not compatitable with the Tankentai siddeview battlesystem. I think there might be a way to fix it quick although I'm not good at scripting. I know you said it could conflict with other battlescripts but, the only problem I get after the battle is over is the fact I have to wait 10 seconds because the games freezes or pauses before it plays the victory them which fades properly and ends the battle.
__________________________
The final release of Project Viral is finally here!
This script works well and fades out the ME successfully but I'm having a problem where after a battle, BGM will no longer play at all...
Anyone know a fix?
This post has been edited by orcywoo6: Jun 28 2010, 10:57 AM
__________________________
<a href="http://www.points2shop.com/?ref=orcywoo6"><img src="http://points2shop.com//banners/61353" border="0"/></a> "Sorrow. How do you prove that you exist...? Maybe we don't exist..." - Vivi <div style="margin:20px; margin-top:5px"><div style="margin-bottom:2px">[Show/Hide] Playstation Network</div><div style="margin: 0px; padding: 6px; border: 1px inset;"><div style="display: none;">Proud PS3 owner since my 360 betrayed me for the fourth and final time with RROD. add me for a match or two if you want! :D </div></div></div> <div style="margin:20px; margin-top:5px"><div style="margin-bottom:2px">[Show/Hide] Can you read this?</div><div style="margin: 0px; padding: 6px; border: 1px inset;"><div style="display: none;">Cna yuo raed tihs? Olny 55% of plepoe can. I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt! fi yuo cna raed tihs, palce it in yuor siantugre.</div></div></div>
Group: +Gold Member
Posts: 1,528
Type: Scripter
RM Skill: Undisclosed
Hey orcywoo6, try it again without Law's script, and make sure it's the script that's clashing, and if it is, try using this version instead:
code
CODE
#------------------------------------------------------------------------------ #============================================================================== #============================================================================== #======================*Law's Battle End Me Fade*============================== #=========================Author: The Law G14================================== #=============================Version 1.0====================================== #=======================*Edited by Night_Runner*=============================== #============================================================================== #------------------------------------------------------------------------------
#============================================================================== # ** Scene_Battle (part 1) #------------------------------------------------------------------------------ # This class performs battle screen processing. #==============================================================================
class Scene_Battle #-------------------------------------------------------------------------- # * Alias Listing #-------------------------------------------------------------------------- alias law_lbemf_scene_battle1_battle_end battle_end unless $@ #-------------------------------------------------------------------------- # * Battle Ends # result : results (0:win 1:lose 2:escape) #-------------------------------------------------------------------------- def battle_end(result) # Fade the BGM for a specified amount of time Audio.me_fade(1000) # Run the original battle_end return law_lbemf_scene_battle1_battle_end(result) end end
And are you using any other scripts that might edit the battle phase? I just tried the script it a (mostly) blank game, and the BGM on the map plays fine (it takes a second to start up, but it's like that normally....)
__________________________
K.I.S.S. Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.
Hey orcywoo6, try it again without Law's script, and make sure it's the script that's clashing, and if it is, try using this version instead:
code
CODE
#------------------------------------------------------------------------------ #============================================================================== #============================================================================== #======================*Law's Battle End Me Fade*============================== #=========================Author: The Law G14================================== #=============================Version 1.0====================================== #=======================*Edited by Night_Runner*=============================== #============================================================================== #------------------------------------------------------------------------------
#============================================================================== # ** Scene_Battle (part 1) #------------------------------------------------------------------------------ # This class performs battle screen processing. #==============================================================================
class Scene_Battle #-------------------------------------------------------------------------- # * Alias Listing #-------------------------------------------------------------------------- alias law_lbemf_scene_battle1_battle_end battle_end unless $@ #-------------------------------------------------------------------------- # * Battle Ends # result : results (0:win 1:lose 2:escape) #-------------------------------------------------------------------------- def battle_end(result) # Fade the BGM for a specified amount of time Audio.me_fade(1000) # Run the original battle_end return law_lbemf_scene_battle1_battle_end(result) end end
And are you using any other scripts that might edit the battle phase? I just tried the script it a (mostly) blank game, and the BGM on the map plays fine (it takes a second to start up, but it's like that normally....)
Hmm, I tried your edit but it still does the same thing, even after entering another battle there is not BGM.
The only script I have that it could be clashing with is the KGC battle camera.
Thanks for the help.
__________________________
<a href="http://www.points2shop.com/?ref=orcywoo6"><img src="http://points2shop.com//banners/61353" border="0"/></a> "Sorrow. How do you prove that you exist...? Maybe we don't exist..." - Vivi <div style="margin:20px; margin-top:5px"><div style="margin-bottom:2px">[Show/Hide] Playstation Network</div><div style="margin: 0px; padding: 6px; border: 1px inset;"><div style="display: none;">Proud PS3 owner since my 360 betrayed me for the fourth and final time with RROD. add me for a match or two if you want! :D </div></div></div> <div style="margin:20px; margin-top:5px"><div style="margin-bottom:2px">[Show/Hide] Can you read this?</div><div style="margin: 0px; padding: 6px; border: 1px inset;"><div style="display: none;">Cna yuo raed tihs? Olny 55% of plepoe can. I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt! fi yuo cna raed tihs, palce it in yuor siantugre.</div></div></div>
Group: +Gold Member
Posts: 1,528
Type: Scripter
RM Skill: Undisclosed
Okey dokey, I think I know what the specific problem is (it works fine with the battle camera ), and if it is what I think it is, this should fix it!
code
CODE
#------------------------------------------------------------------------------ #============================================================================== #============================================================================== #======================*Law's Battle End Me Fade*============================== #=========================Author: The Law G14================================== #=============================Version 1.0====================================== #=======================*Edited by Night_Runner*=============================== #============================================================================== #------------------------------------------------------------------------------
#============================================================================== # ** Scene_Battle (part 1) #------------------------------------------------------------------------------ # This class performs battle screen processing. #==============================================================================
class Scene_Battle #-------------------------------------------------------------------------- # * Alias Listing #-------------------------------------------------------------------------- alias law_lbemf_scene_battle1_battle_end battle_end unless $@ #-------------------------------------------------------------------------- # * Battle Ends # result : results (0:win 1:lose 2:escape) #-------------------------------------------------------------------------- def battle_end(*args) fade_time = 1.5 # Second(s) # Fade the ME for a specified amount of time Audio.me_fade(fade_time * 1000) # After the specified amount of time, stop the me Thread.new { sleep(fade_time); Audio.me_stop } # Run the original battle_end return law_lbemf_scene_battle1_battle_end(*args) end end
__________________________
K.I.S.S. Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.
Okey dokey, I think I know what the specific problem is (it works fine with the battle camera ), and if it is what I think it is, this should fix it!
code
CODE
#------------------------------------------------------------------------------ #============================================================================== #============================================================================== #======================*Law's Battle End Me Fade*============================== #=========================Author: The Law G14================================== #=============================Version 1.0====================================== #=======================*Edited by Night_Runner*=============================== #============================================================================== #------------------------------------------------------------------------------
#============================================================================== # ** Scene_Battle (part 1) #------------------------------------------------------------------------------ # This class performs battle screen processing. #==============================================================================
class Scene_Battle #-------------------------------------------------------------------------- # * Alias Listing #-------------------------------------------------------------------------- alias law_lbemf_scene_battle1_battle_end battle_end unless $@ #-------------------------------------------------------------------------- # * Battle Ends # result : results (0:win 1:lose 2:escape) #-------------------------------------------------------------------------- def battle_end(*args) fade_time = 1.5 # Second(s) # Fade the ME for a specified amount of time Audio.me_fade(fade_time * 1000) # After the specified amount of time, stop the me Thread.new { sleep(fade_time); Audio.me_stop } # Run the original battle_end return law_lbemf_scene_battle1_battle_end(*args) end end
Thanks so much for the help but the problem still persists sorry to be a pain
__________________________
<a href="http://www.points2shop.com/?ref=orcywoo6"><img src="http://points2shop.com//banners/61353" border="0"/></a> "Sorrow. How do you prove that you exist...? Maybe we don't exist..." - Vivi <div style="margin:20px; margin-top:5px"><div style="margin-bottom:2px">[Show/Hide] Playstation Network</div><div style="margin: 0px; padding: 6px; border: 1px inset;"><div style="display: none;">Proud PS3 owner since my 360 betrayed me for the fourth and final time with RROD. add me for a match or two if you want! :D </div></div></div> <div style="margin:20px; margin-top:5px"><div style="margin-bottom:2px">[Show/Hide] Can you read this?</div><div style="margin: 0px; padding: 6px; border: 1px inset;"><div style="display: none;">Cna yuo raed tihs? Olny 55% of plepoe can. I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt! fi yuo cna raed tihs, palce it in yuor siantugre.</div></div></div>