Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_chem_05_maze_puzzle_Alarm_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
countdown_current -= 1
4
if (countdown_current > 0)
5
{
6
    audio_play_sound(snd_chem_countdown, 1, 0)
7
    alarm[0] = 30
alarm[0]

if live_call() return global.live_result; countdown_current -= 1 if (countdown_current > 0) { audio_play_sound(snd_chem_countdown, 1, 0) alarm[0] = 30 } else { if (puzzle_music == snd_ceroba_staff_lock) { puzzle_music = audio_play_sound(mus_mixin_it_up, 1, 1) audio_sound_pitch(puzzle_music, 1) if (global.route == 3) { alarm[4] = irandom_range(60, 120) audio_sound_pitch(puzzle_music, random_range(0.75, 1.25)) } } audio_play_sound(snd_chem_go, 1, 0) draw_puzzle_layer = true alarm[1] = 30 }
8
}
9
else
10
{
11
    if (puzzle_music == snd_ceroba_staff_lock)
12
    {
13
        puzzle_music = audio_play_sound(mus_mixin_it_up, 1, 1)
14
        audio_sound_pitch(puzzle_music, 1)
15
        if (global.route == 3)
16
        {
17
            alarm[4] = irandom_range(60, 120)
alarm[4]

if (puzzle_music != snd_ceroba_staff_lock && audio_is_playing(puzzle_music)) { alarm[4] = irandom_range(60, 120) audio_sound_pitch(puzzle_music, random_range(0.75, 1.25)) }
18
            audio_sound_pitch(puzzle_music, random_range(0.75, 1.25))
19
        }
20
    }
21
    audio_play_sound(snd_chem_go, 1, 0)
22
    draw_puzzle_layer = true
23
    alarm[1] = 30
alarm[1]

if live_call() return global.live_result; audio_play_sound(snd_chem_start, 1, 0) obj_chem_05_maze_puzzle_player.can_move = true puzzle_alpha = 0
24
}