function scr_determine_enemy_music_yellow() //gml_Script_scr_determine_enemy_music_yellow { var current_world_value = script_execute(gml_Script_scr_determine_world_value_yellow) var battle_mus = mus_prebattle1_yellow switch current_world_value { case 0: battle_mus = mus_prebattle1_yellow break case 1: battle_mus = mus_prebattle1_yellow break case 2: battle_mus = mus_battle_snowdin break case 3: battle_mus = mus_prebattle3_yellow break case 4: battle_mus = mus_heatwave_approaching break } if (global.sound_carry_overworld == false) { if (global.kill_number[current_world_value] <= 7) { if (global.kill_number[current_world_value] > 0) { audio_sound_gain(mus_genobattle_yellow, 1, 0) audio_play_sound(mus_genobattle_yellow, 20, true) var mus_pitch = global.kill_number[current_world_value] / 7 * 10 * 0.1 audio_sound_pitch(mus_genobattle_yellow, mus_pitch) } else { audio_sound_gain(mus_nobodycame_yellow, 1, 0) audio_play_sound(mus_nobodycame_yellow, 20, true) } } else { audio_sound_gain(battle_mus, 1, 0) audio_sound_pitch(battle_mus, 1) audio_play_sound(battle_mus, 20, true) } } }