1 |
function scr_determine_enemy_music_yellowscr_determine_enemy_music_yellowfunction 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)
}
}
} () //gml_Script_scr_determine_enemy_music_yellow |
2 |
{ |
3 |
var current_world_value = script_execute(gml_Script_scr_determine_world_value_yellow) |
4 |
var battle_mus = mus_prebattle1_yellow |
5 |
switch current_world_value |
6 |
{ |
7 |
case 0: |
8 |
battle_mus = mus_prebattle1_yellow |
9 |
break |
10 |
case 1: |
11 |
battle_mus = mus_prebattle1_yellow |
12 |
break |
13 |
case 2: |
14 |
battle_mus = mus_battle_snowdin |
15 |
break |
16 |
case 3: |
17 |
battle_mus = mus_prebattle3_yellow |
18 |
break |
19 |
case 4: |
20 |
battle_mus = mus_heatwave_approaching |
21 |
break |
22 |
} |
23 |
|
24 |
if (global.sound_carry_overworld == false) |
25 |
{ |
26 |
if (global.kill_number[current_world_value] <= 7) |
27 |
{ |
28 |
if (global.kill_number[current_world_value] > 0) |
29 |
{ |
30 |
audio_sound_gain(mus_genobattle_yellow, 1, 0) |
31 |
audio_play_sound(mus_genobattle_yellow, 20, true) |
32 |
var mus_pitch = global.kill_number[current_world_value] / 7 * 10 * 0.1 |
33 |
audio_sound_pitch(mus_genobattle_yellow, mus_pitch) |
34 |
} |
35 |
else |
36 |
{ |
37 |
audio_sound_gain(mus_nobodycame_yellow, 1, 0) |
38 |
audio_play_sound(mus_nobodycame_yellow, 20, true) |
39 |
} |
40 |
} |
41 |
else |
42 |
{ |
43 |
audio_sound_gain(battle_mus, 1, 0) |
44 |
audio_sound_pitch(battle_mus, 1) |
45 |
audio_play_sound(battle_mus, 20, true) |
46 |
} |
47 |
} |
48 |
} |