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
            {
50
                image_alpha -= 0.2;
51
            }
52
            else
53
            {
54
                instance_destroy();
55
                other.scene++;
56
            }
57
        }
58
        break;
59
    case 5:
60
        cutscene_sfx_play(384, 1);
61
        break;
62
    case 6:
63
        cutscene_wait(0.5);
64
        break;
65
    case 7:
66
        cutscene_end();
67
        if (global.sworks_flag[12] == 0)
68
            global.sworks_flag[12] = 1;
69
        break;
70
}