- 386
- Posts
- 18
- Years
- Seen Aug 10, 2015
I had to find out the hard way that stopping an ME merely means setting the ME's volume to 0. Here -- Change the pbPlayTrainerIntroME function on PokemonUtilities (starting at line 254):
Code:
def pbPlayTrainerIntroME(trainertype)
pbRgssOpen("Data/trainernames.dat","rb"){|f|
trainernames=Marshal.load(f)
if trainernames[trainertype]
bgm=trainernames[trainertype][6]
if bgm && bgm!=""
bgm=pbStringToAudioFile(bgm)
Audio.bgm_play("Audio/ME/#{bgm.name}",bgm.volume,bgm.pitch)
end
end
}
end