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!
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!
[Show/Hide] Code
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
# ■ 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
반응형
'게임이야기. > RPG 만들기 VX' 카테고리의 다른 글
[VX샘플게임]Dragoness Edge 2820 빔라이프 모션 (0) | 2008.10.03 |
---|---|
[VX샘플게임]Dragoness Edge 2820 G-콤보 모션출처 : XP VX 공통 애니메이션 - [VX샘플게임]Dragoness Edge 2820 G-콤보 모션 - http://avangs.info/zbxe/RTP_XPVX_Animations/211655 (0) | 2008.10.03 |
[VX샘플게임]Dragoness Edge 2820 섬광검 평타. (0) | 2008.10.03 |
용 (0) | 2008.09.28 |
변수에대해서 알자 [가산편] (0) | 2008.09.28 |
역동적인 타이틀 화면 (1) | 2008.09.28 |
장거리 액알 (0) | 2008.09.28 |