It's pretty simple: by default the RPG Maker VX ace only allows you to choose a SE to be the sound played during save or load the game, however, I want a ME instead, because I want only the save and load sound playing, but by default, the BGM and still play together with the default save load sound method, who is only SE. This can be solved by allowing you to choose a ME instead of a SE to play when you save and load the game because ME stops all BGMs. I think this is only possible via scripting, so, can someone do a script that makes it for me, please?
Play ME during Save and Load game instead of SE.
RGSS3 Script RequestsTherebis a very easy way to do this:
Open the folder containing the ME
Copy the file you want to use
Open the folder containing the SE
Paste the fale you just copied
Now simply use the ME file as SE.
Tge only real difference is, that this will not mute the background music, like ME does.
Edit: oh wait, you did want the BGM to be muted? Sorry, then my solution is useless.
Open the folder containing the ME
Copy the file you want to use
Open the folder containing the SE
Paste the fale you just copied
Now simply use the ME file as SE.
Tge only real difference is, that this will not mute the background music, like ME does.
Edit: oh wait, you did want the BGM to be muted? Sorry, then my solution is useless.
I think something like this is the only way.
This assumes that you copy the files over as JohnDoeNews said.
Set how many seconds the audio is to play for and see if it works for you.
I looked into finding the length of the audio file but ruby 1.9.2 does not have that option. It might be something you can do with other program replacements (MKXP-z, RGD)
Ruby:
module R2_Audio_File_Delay
Save_Time = 3
Load_Time = 4
end
class Scene_Save < Scene_File
def on_save_success
bgm = RPG::BGM.last
RPG::BGM.stop
Sound.play_save
frame = Graphics.frame_count + (R2_Audio_File_Delay::Save_Time * 60)
loop do
Graphics.update
break if Graphics.frame_count == frame
end
bgm.replay
return_scene
end
end
class Scene_Load < Scene_File
def on_load_success
bgm = RPG::BGM.last
RPG::BGM.stop
Sound.play_load
frame = Graphics.frame_count + (R2_Audio_File_Delay::Load_Time * 60)
loop do
Graphics.update
break if Graphics.frame_count == frame
end
fadeout_all
$game_system.on_after_load
SceneManager.goto(Scene_Map)
end
end
Set how many seconds the audio is to play for and see if it works for you.
I looked into finding the length of the audio file but ruby 1.9.2 does not have that option. It might be something you can do with other program replacements (MKXP-z, RGD)
thanks, it worked.
Original thread: https://forums.rpgmakerweb.com/threads/play-me-during-save-and-load-game-instead-of-se.159993/