Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_microf_cutscene_Step_0

(view raw script w/o annotations or w/e)
1
if (global.flag[18 Micro Froggit fate] == 2)
2
{
3
    global.cutscene = false
4
    instance_destroy()
5
    return;
6
}
7
if (global.flag[18 Micro Froggit fate] == 0)
8
{
9
    if (obj_pl.x >= 200 && waiter == 0)
10
    {
11
        audio_play_sound(snd_tinyfroggit, 1, 0)
12
        audio_sound_pitch(snd_tinyfroggit, 1.5)
13
        global.cutscene = true
14
        obj_pl.image_speed = 0
15
        obj_pl.image_index = 0
16
        waiter = 1
17
        alarm[0] = 30
alarm[0]

global.cutscene = false if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) with (msg) { portrait = false sndfnt = 99 message[0] = "* You hear movement in the# distance..." }
18
    }
19
    if (obj_pl.x >= 450 && waiter == 1)
20
    {
21
        obj_pl.image_speed = 0
22
        obj_pl.image_index = 0
23
        global.cutscene = true
24
        audio_play_sound(snd_tinyfroggit, 1, 0)
25
        audio_sound_gain(snd_tinyfroggit, 2, 0)
26
        audio_sound_pitch(snd_tinyfroggit, 1.5)
27
        waiter = 2
28
    }
29
    if (waiter > 1 && waiter < 100)
30
        waiter++
31
    if (waiter == 45)
32
        obj_pl.direction = 180
33
    if (waiter == 100)
34
    {
35
        obj_darkness.fadeout = true
36
        instance_create(300, (obj_pl.y + 10), obj_mfnpc)
37
        waiter = 101
38
    }
39
}
40
if (global.flag[18 Micro Froggit fate] == 1)
41
{
42
    obj_pl.direction = 0
43
    if (!instance_exists(obj_mfnpc))
44
        instance_create(550, 175, obj_mfnpc)
45
}