Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_13b_cutscene_Step_0

(view raw script w/o annotations or w/e)
1
switch (scene)
2
{
3
    case -2:
4
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() { global.cutscene = false; obj_pl.alarm[0] = 1; }
();
5
        cutscene_advance();
6
        break;
7
    case -1:
8
        if (obj_pl.y < 240)
9
        {
10
            scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() { global.cutscene = true; obj_pl.state = scr_frozen_state; obj_pl.image_index = 0; obj_pl.image_speed = 0; }
();
11
            obj_pl.direction = 90;
12
            cutscene_advance();
13
        }
14
        break;
15
}
16
if (global.sworks_flag[6] == 0)
17
{
18
    switch (scene)
19
    {
20
        case 0:
21
            cutscene_instance_create(obj_pl.x, __view_get(e__VW.YView, 0) - 20, 1166);
22
            break;
23
        case 1:
24
            cutscene_wait(1);
25
            break;
26
        case 2:
27
            cutscene_npc_walk(1166, obj_axis_npc.x, __view_get(e__VW.YView, 0) + 40, 4, "y", "down");
28
            break;
29
        case 3:
30
            cutscene_dialogue();
31
            with (msg)
32
            {
33
                talker[0] = 1166;
34
                message[0] = "* I CANNOT BELIEVE YOU#  FELL FOR THAT.";
35
                message[1] = "* I AM SMART, THEREFORE I#  PREDICTED YOUR ESCAPE.";
36
                message[2] = "* NOW, BACK YOU GO.";
37
                prt[0] = 473;
38
                prt[1] = 473;
39
                prt[2] = 473;
40
                position = 0;
41
            }
42
            break;
43
        case 4:
44
            cutscene_wait(1);
45
            break;
46
        case 5:
47
            cutscene_npc_walk(1166, obj_axis_npc.x, obj_axis_npc.y + 100, 1, "y", "down");
48
            cutscene_advance();
49
            break;
50
        case 6:
51
            global.sworks_flag[6] = 1;
52
            cutscene_change_room(160, 290, 140, 0.1);
53
            break;
54
    }
55
}
56
if (global.sworks_flag[6] == 2)
57
{
58
    switch (scene)
59
    {
60
        case 0:
61
            cutscene_instance_create(obj_pl.x, __view_get(e__VW.YView, 0) - 20, 1166);
62
            break;
63
        case 1:
64
            cutscene_wait(1);
65
            break;
66
        case 2:
67
            cutscene_npc_walk(1166, obj_pl.x, __view_get(e__VW.YView, 0) + 40, 4, "y", "down");
68
            break;
69
        case 3:
70
            cutscene_dialogue();
71
            with (msg)
72
            {
73
                talker[0] = 1166;
74
                message[0] = "* WHAT. WHY.";
75
                message[1] = "* DID YOU THINK I WOULD#  JUST LEAVE AFTER ONE#  ATTEMPT?";
76
                message[2] = "* ... I WAS ABOUT TO,#  ACTUALLY. THAT WAS#  CLOSE.";
77
                message[3] = "* I WILL LOCK THE DOOR#  FROM NOW ON.";
78
                message[4] = "* BYE NOW.";
79
                prt[0] = 473;
80
                prt[1] = 473;
81
                prt[2] = 473;
82
                prt[3] = 473;
83
                prt[4] = 473;
84
                position = 0;
85
            }
86
            break;
87
        case 4:
88
            cutscene_wait(1);
89
            break;
90
        case 5:
91
            cutscene_npc_walk(1166, obj_axis_npc.x, obj_axis_npc.y + 100, 1, "y", "down");
92
            cutscene_advance();
93
            break;
94
        case 6:
95
            global.sworks_flag[6] = 3;
96
            cutscene_change_room(160, 290, 140, 0.1);
97
            break;
98
    }
99
}
100
101
enum e__VW
102
{
103
    XView,
104
    YView,
105
    WView,
106
    HView,
107
    Angle,
108
    HBorder,
109
    VBorder,
110
    HSpeed,
111
    VSpeed,
112
    Object,
113
    Visible,
114
    XPort,
115
    YPort,
116
    WPort,
117
    HPort,
118
    Camera,
119
    SurfaceID
120
}