Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_21b_cutscene_Step_0

(view raw script w/o annotations or w/e)
1
switch scene
2
{
3
    case 0:
4
        cutscene_wait(1.5)
5
        break
6
    case 1:
7
        cutscene_dialogue()
8
        with (msg)
9
        {
10
            talker[0] = 1166
11
            if (global.sworks_flag[12] == 0)
12
            {
13
                if (global.route == 2)
14
                {
15
                    message[0] = "* STAY HERE WHILE I GET#  THE TALL LADY."
16
                    message[1] = "* DO NOT TOUCH ANYTHING."
17
                    prt[0] = 473
18
                    prt[1] = 473
19
                }
20
                else
21
                {
22
                    message[0] = "* STAY HERE, I MUST GO#  BACK ON PATROL."
23
                    message[1] = "* DO NOT TOUCH ANYTHING."
24
                    prt[0] = 473
25
                    prt[1] = 473
26
                }
27
            }
28
            else
29
            {
30
                message[0] = "* DO YOU HAVE THE ABILITY#  TO COOPERATE?"
31
                message[1] = "* OR ARE YOU TOYING WITH#  ME ON PURPOSE?"
32
                message[2] = "* EITHER WAY, I AM#  STARTING TO [really]#  HATE YOU."
33
                prt[0] = 473
34
                prt[1] = 473
35
                prt[2] = 473
36
            }
37
        }
38
        break
39
    case 2:
40
        cutscene_wait(0.5)
41
        break
42
    case 3:
43
        cutscene_npc_walk(1166, 160, 345, 3, "y", "down")
44
        break
45
    case 4:
46
        with (obj_axis_npc)
47
        {
48
            if (image_alpha > 0)
49
                image_alpha -= 0.2
50
            else
51
            {
52
                instance_destroy()
53
                other.scene++
54
            }
55
        }
56
        break
57
    case 5:
58
        cutscene_sfx_play(snd_undertale_thud, 1)
59
        break
60
    case 6:
61
        cutscene_wait(0.5)
62
        break
63
    case 7:
64
        cutscene_end()
65
        if (global.sworks_flag[12] == 0)
66
            global.sworks_flag[12] = 1
67
        break
68
}