Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_35_cutscene_pacifist_alt_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
switch scene
4
{
5
    case 0:
6
        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 }
()
7
        obj_pl.x = 680
8
        obj_pl.y = 140
9
        obj_pl.direction = 90
10
        instance_create(860, obj_pl.y, obj_ceroba_npc)
11
        obj_ceroba_npc.npc_direction = "up"
12
        if (global.sworks_flag[31] == 4)
13
        {
14
            obj_ceroba_npc.x = obj_pl.x + 40
15
            scene = 7
16
        }
17
        else
18
            scene = 0.5
19
        break
20
    case 0.5:
21
        if cutscene_wait(1)
22
            scene = 1
23
        break
24
    case 1:
25
        cutscene_sfx_play(snd_undertale_explosion, 1)
26
        break
27
    case 2:
28
        if cutscene_screenshake(0.5, 3)
29
            scene = 2.5
30
        break
31
    case 2.5:
32
        if cutscene_wait(1)
33
            scene = 3
34
        break
35
    case 3:
36
        cutscene_npc_walk(1161, 750, obj_pl.y, 3, "x", "left")
37
        break
38
    case 4:
39
        cutscene_sfx_play(snd_playerjump, 1)
40
        obj_pl.direction = 0
41
        break
42
    case 5:
43
        cutscene_npc_path_start(obj_ceroba_npc, pt_small_jump, 3)
44
        break
45
    case 6:
46
        cutscene_npc_walk(1161, (obj_pl.x + 40), obj_pl.y, 4, "x", "up")
47
        break
48
    case 7:
49
        cutscene_dialogue()
50
        with (msg)
51
        {
52
            talker[0] = 1161
53
            message[0] = "* Clover... You..."
54
            message[1] = "* How could you..."
55
            message[2] = "* This wasn't the plan!!"
56
            message[3] = "* Chujin poured his all#  into Axis and you just-"
57
            message[4] = "* ..."
58
            message[5] = "* And now... your SOUL..."
59
            message[6] = "* It's..."
60
            message[7] = "* I was certain. I#  thought you were pure..."
61
            prt[0] = 2987
62
            prt[1] = 2599
63
            prt[2] = 2599
64
            prt[3] = 754
65
            prt[4] = 2599
66
            prt[5] = 609
67
            prt[6] = 609
68
            prt[7] = 370
69
            if (message_current == 2)
70
                obj_ceroba_npc.npc_direction = "left"
71
            position = 0
72
        }
73
        break
74
    case 8:
75
        cutscene_npc_direction(obj_ceroba_npc, "right")
76
        break
77
    case 9:
78
        cutscene_wait(2)
79
        break
80
    case 10:
81
        cutscene_dialogue()
82
        with (msg)
83
        {
84
            message[0] = "* The mission... It's#  over."
85
            message[1] = "* This is your fault."
86
            prt[0] = 2987
87
            prt[1] = 609
88
            talker[0] = 1161
89
        }
90
        break
91
    case 11:
92
        cutscene_wait(1)
93
        break
94
    case 12:
95
        cutscene_dialogue()
96
        with (msg)
97
        {
98
            talker[0] = 1161
99
            message[0] = "* I never want to see you#  again."
100
            prt[0] = 609
101
        }
102
        break
103
    case 13:
104
        cutscene_npc_set_sprites(obj_ceroba_npc, 81, 80, 78, 79, 61, 65, 60, 63)
105
        break
106
    case 14:
107
        cutscene_npc_walk(1161, 860, obj_pl.y, 4, "x", "right")
108
        break
109
    case 15:
110
        cutscene_wait(1)
111
        break
112
    case 16:
113
        cutscene_camera_move(obj_pl.x, obj_pl.y, 2)
114
        break
115
    case 17:
116
        cutscene_wait(0.5)
117
        break
118
    case 18:
119
        cutscene_instance_create((obj_pl.x - 60), obj_pl.y, obj_flowey_npc)
120
        obj_flowey_npc.action_sprite = true
121
        obj_flowey_npc.sprite_index = spr_floweyrise
122
        obj_flowey_npc.image_speed = 0.2
123
        break
124
    case 19:
125
        with (obj_flowey_npc)
126
        {
127
            if (image_index >= (image_number - 1))
128
            {
129
                npc_direction = "right"
130
                action_sprite = false
131
                other.scene += 1
132
            }
133
        }
134
        break
135
    case 20:
136
        obj_pl.direction = 180
137
        cutscene_advance()
138
        break
139
    case 21:
140
        cutscene_dialogue()
141
        with (msg)
142
        {
143
            talker[0] = 3194
144
            message[0] = "* Aaaand there it is!"
145
            message[1] = "* She was totally using#  you, pal."
146
            message[2] = "* As soon as you act in#  self-defense for once,#  she freaks!"
147
            message[3] = "* But you know what? This#  is good!"
148
            message[4] = "* You're finally free to#  get back on track."
149
            message[5] = "* No more third parties,#  no more side quests."
150
            message[6] = "* Just you and me, buddy!#  "
151
            message[7] = "* Just you and me."
152
            prt[0] = 349
153
            prt[1] = 347
154
            prt[2] = 348
155
            prt[3] = 348
156
            prt[4] = 347
157
            prt[5] = 349
158
            prt[6] = 3251
159
            prt[7] = 347
160
        }
161
        break
162
    case 22:
163
        if cutscene_npc_action_sprite_reverse(3194, 242, 0.2, true, 0)
164
            instance_destroy(obj_flowey_npc)
165
        break
166
    case 23:
167
        cutscene_wait(1)
168
        break
169
    case 24:
170
        cutscene_camera_reset()
171
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
172
        global.sworks_flag[31] = 5
173
        global.mail_flag[8] = true
174
        global.sworks_flag[61] = 1
175
        scr_radio_restart
scr_radio_restart

function scr_radio_restart() //gml_Script_scr_radio_restart { with (obj_radio) event_user(0) }
()
176
        break
177
    case 25:
178
        instance_destroy(obj_player_npc)
179
        instance_destroy(obj_ceroba_npc)
180
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
181
        instance_destroy()
182
        global.party_member = -4
183
        global.route = 1
184
        break
185
}