Code:
NumberOption.new(_INTL("Music Volume"),_INTL("%d\%"),0,100,
proc { $PokemonSystem.bgmvolume },
proc {|value| $PokemonSystem.bgmvolume=value
if $game_system.playing_bgm != nil
$game_system.playing_bgm.volume=value
$game_system.bgm_memorize
$game_system.bgm_stop
$game_system.bgm_restore
end
if $game_system.playing_bgs != nil
$game_system.playing_bgm.volume=value
$game_system.bgs_memorize
$game_system.bgs_stop
$game_system.bgs_restore
end}
),
NumberOption.new(_INTL("Sound Effect Volume"),_INTL("%d\%"),0,100,
proc { $PokemonSystem.sevolume },
proc {|value| $PokemonSystem.sevolume=value}
),
As you can see, the background music is memorized and restored in the script, but the problem is that it does that every time I change any setting in the options and close the menu. If I change the screen size or text speed, the music stops and then starts again. I'd like to know if there's a way to fix this.