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() //gml_Script_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() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_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
17
if (global.sworks_flag[6] == 0)
18
{
19
    switch scene
20
    {
21
        case 0:
22
            cutscene_instance_create(obj_pl.x, ((__view_get((1 << 0), 0)) - 20), obj_axis_npc)
23
            break
24
        case 1:
25
            cutscene_wait(1)
26
            break
27
        case 2:
28
            cutscene_npc_walk(1166, obj_axis_npc.x, ((__view_get((1 << 0), 0)) + 40), 4, "y", "down")
29
            break
30
        case 3:
31
            cutscene_dialogue()
32
            with (msg)
33
            {
34
                talker[0] = 1166
35
                message[0] = "* I CANNOT BELIEVE YOU#  FELL FOR THAT."
36
                message[1] = "* I AM SMART, THEREFORE I#  PREDICTED YOUR ESCAPE."
37
                message[2] = "* NOW, BACK YOU GO."
38
                prt[0] = 473
39
                prt[1] = 473
40
                prt[2] = 473
41
                position = 0
42
            }
43
            break
44
        case 4:
45
            cutscene_wait(1)
46
            break
47
        case 5:
48
            cutscene_npc_walk(1166, obj_axis_npc.x, (obj_axis_npc.y + 100), 1, "y", "down")
49
            cutscene_advance()
50
            break
51
        case 6:
52
            global.sworks_flag[6] = 1
53
            cutscene_change_room(160, 290, 140, 0.1)
54
            break
55
    }
56
57
}
58
if (global.sworks_flag[6] == 2)
59
{
60
    switch scene
61
    {
62
        case 0:
63
            cutscene_instance_create(obj_pl.x, ((__view_get((1 << 0), 0)) - 20), obj_axis_npc)
64
            break
65
        case 1:
66
            cutscene_wait(1)
67
            break
68
        case 2:
69
            cutscene_npc_walk(1166, obj_pl.x, ((__view_get((1 << 0), 0)) + 40), 4, "y", "down")
70
            break
71
        case 3:
72
            cutscene_dialogue()
73
            with (msg)
74
            {
75
                talker[0] = 1166
76
                message[0] = "* WHAT. WHY."
77
                message[1] = "* DID YOU THINK I WOULD#  JUST LEAVE AFTER ONE#  ATTEMPT?"
78
                message[2] = "* ... I WAS ABOUT TO,#  ACTUALLY. THAT WAS#  CLOSE."
79
                message[3] = "* I WILL LOCK THE DOOR#  FROM NOW ON."
80
                message[4] = "* BYE NOW."
81
                prt[0] = 473
82
                prt[1] = 473
83
                prt[2] = 473
84
                prt[3] = 473
85
                prt[4] = 473
86
                position = 0
87
            }
88
            break
89
        case 4:
90
            cutscene_wait(1)
91
            break
92
        case 5:
93
            cutscene_npc_walk(1166, obj_axis_npc.x, (obj_axis_npc.y + 100), 1, "y", "down")
94
            cutscene_advance()
95
            break
96
        case 6:
97
            global.sworks_flag[6] = 3
98
            cutscene_change_room(160, 290, 140, 0.1)
99
            break
100
    }
101
102
}