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

function scr_cutscene_end() { global.cutscene = false; obj_pl.alarm[0] = 1; }
();
174
        global.sworks_flag[31] = 5;
175
        global.mail_flag[8] = true;
176
        global.sworks_flag[61] = 1;
177
        scr_radio_restart
scr_radio_restart

function scr_radio_restart() { with (obj_radio) event_user(0); }
();
178
        break;
179
    case 25:
180
        instance_destroy(obj_player_npc);
181
        instance_destroy(obj_ceroba_npc);
182
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() { global.cutscene = false; obj_pl.alarm[0] = 1; }
();
183
        instance_destroy();
184
        global.party_member = -4;
185
        global.route = 1;
186
        break;
187
}