Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_game_over_Alarm_0

(view raw script w/o annotations or w/e)
1
generate = true;
2
var game_mode = global.game_mode;
3
if (game_mode == "yellow")
4
{
5
    scr_audio_stop_sound
scr_audio_stop_sound

function scr_audio_stop_sound(arg0) { audio_array_val = 0; sound_y[audio_array_val] = 153; audio_array_val += 1; sound_y[audio_array_val] = 136; audio_array_val += 1; sound_y[audio_array_val] = 138; audio_array_val += 1; sound_y[audio_array_val] = 136; audio_array_val += 1; sound_y[audio_array_val] = 140; audio_array_val += 1; sound_y[audio_array_val] = 138; audio_array_val += 1; sound_y[audio_array_val] = 486; audio_array_val += 1; sound_y[audio_array_val] = 487; audio_array_val += 1; sound_y[audio_array_val] = 488; audio_array_val += 1; sound_y[audio_array_val] = 489; audio_array_val += 1; sound_y[audio_array_val] = 490; audio_array_val += 1; sound_y[audio_array_val] = 491; audio_array_val += 1; sound_y[audio_array_val] = 492; audio_array_val += 1; sound_y[audio_array_val] = 493; audio_array_val += 1; sound_y[audio_array_val] = 494; audio_array_val += 1; sound_y[audio_array_val] = 495; audio_array_val += 1; sound_y[audio_array_val] = 498; audio_array_val += 1; sound_y[audio_array_val] = 512; audio_array_val += 1; sound_y[audio_array_val] = 117; audio_array_val += 1; sound_y[audio_array_val] = 141; audio_array_val += 1; sound_y[audio_array_val] = 119; audio_array_val += 1; sound_y[audio_array_val] = 154; audio_array_val += 1; sound_y[audio_array_val] = 155; audio_array_val += 1; sound_y[audio_array_val] = 122; audio_array_val += 1; sound_y[audio_array_val] = 156; audio_array_val += 1; sound_y[audio_array_val] = 124; audio_array_val += 1; sound_y[audio_array_val] = 125; audio_array_val += 1; sound_y[audio_array_val] = 162; audio_array_val += 1; sound_y[audio_array_val] = 206; audio_array_val += 1; sound_y[audio_array_val] = 513; audio_array_val += 1; sound_y[audio_array_val] = 208; for (i = 0; i < array_length_1d(sound_y); i += 1) { var audio_gain = audio_sound_get_gain(sound_y[i]); if (audio_gain <= arg0) audio_stop_sound(sound_y[i]); } }
(0);
6
    audio_sound_gain(mus_gameover_yellow, 1, 0);
7
    audio_sound_pitch(mus_gameover_yellow, 1);
8
    audio_play_sound(mus_gameover_yellow, 20, true);
9
}
10
else
11
{
12
    scr_audio_stop_sound
scr_audio_stop_sound

function scr_audio_stop_sound(arg0) { audio_array_val = 0; sound_y[audio_array_val] = 153; audio_array_val += 1; sound_y[audio_array_val] = 136; audio_array_val += 1; sound_y[audio_array_val] = 138; audio_array_val += 1; sound_y[audio_array_val] = 136; audio_array_val += 1; sound_y[audio_array_val] = 140; audio_array_val += 1; sound_y[audio_array_val] = 138; audio_array_val += 1; sound_y[audio_array_val] = 486; audio_array_val += 1; sound_y[audio_array_val] = 487; audio_array_val += 1; sound_y[audio_array_val] = 488; audio_array_val += 1; sound_y[audio_array_val] = 489; audio_array_val += 1; sound_y[audio_array_val] = 490; audio_array_val += 1; sound_y[audio_array_val] = 491; audio_array_val += 1; sound_y[audio_array_val] = 492; audio_array_val += 1; sound_y[audio_array_val] = 493; audio_array_val += 1; sound_y[audio_array_val] = 494; audio_array_val += 1; sound_y[audio_array_val] = 495; audio_array_val += 1; sound_y[audio_array_val] = 498; audio_array_val += 1; sound_y[audio_array_val] = 512; audio_array_val += 1; sound_y[audio_array_val] = 117; audio_array_val += 1; sound_y[audio_array_val] = 141; audio_array_val += 1; sound_y[audio_array_val] = 119; audio_array_val += 1; sound_y[audio_array_val] = 154; audio_array_val += 1; sound_y[audio_array_val] = 155; audio_array_val += 1; sound_y[audio_array_val] = 122; audio_array_val += 1; sound_y[audio_array_val] = 156; audio_array_val += 1; sound_y[audio_array_val] = 124; audio_array_val += 1; sound_y[audio_array_val] = 125; audio_array_val += 1; sound_y[audio_array_val] = 162; audio_array_val += 1; sound_y[audio_array_val] = 206; audio_array_val += 1; sound_y[audio_array_val] = 513; audio_array_val += 1; sound_y[audio_array_val] = 208; for (i = 0; i < array_length_1d(sound_y); i += 1) { var audio_gain = audio_sound_get_gain(sound_y[i]); if (audio_gain <= arg0) audio_stop_sound(sound_y[i]); } }
(0);
13
    audio_sound_gain(mus_gameover, 1, 0);
14
    audio_sound_pitch(mus_gameover, 1);
15
    audio_play_sound(mus_gameover, 20, true);
16
}