Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_credits_pacifist_intermission_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
        cutscene_screen_fade_in(0.04)
7
        break
8
    case 1:
9
        cutscene_wait(2.5)
10
        break
11
    case 2:
12
        cutscene_npc_action_sprite(1164, 297, 1, true, 0)
13
        break
14
    case 3:
15
        cutscene_wait(2)
16
        break
17
    case 4:
18
        cutscene_npc_action_sprite(1164, 2883, 1, true, 0)
19
        break
20
    case 5:
21
        cutscene_dialogue()
22
        with (msg)
23
        {
24
            talker[0] = 1164
25
            message[0] = "* ..."
26
            message[1] = "* I've been thinking#  about that day."
27
            message[2] = "* A lot."
28
            message[3] = "* Time is a funny thing,#  you know?"
29
            message[4] = "* I guess in the big#  picture of my life, you#  were only a blip."
30
            message[5] = "* But oftentimes, those#  \"blips\" make the biggest#  impacts."
31
            message[6] = "* ..."
32
            message[7] = "* The King offered me a#  promotion."
33
            message[8] = "* A guard post in New#  Home."
34
            message[9] = "* But after experiencing#  the worst the job had to#  offer..."
35
            message[10] = "* I declined. "
36
            message[11] = "* Not only that, I put in#  my two weeks, heh."
37
            message[12] = "* I... felt that there#  are much better causes#  to pour myself into."
38
            prt[0] = 315
39
            prt[1] = 315
40
            prt[2] = 315
41
            prt[3] = 317
42
            prt[4] = 329
43
            prt[5] = 329
44
            prt[6] = 329
45
            prt[7] = 317
46
            prt[8] = 315
47
            prt[9] = 315
48
            prt[10] = 329
49
            prt[11] = 320
50
            prt[12] = 321
51
        }
52
        break
53
    case 6:
54
        cutscene_wait(1)
55
        break
56
    case 7:
57
        cutscene_dialogue()
58
        with (msg)
59
        {
60
            talker[0] = 1164
61
            message[0] = "* Anyways..."
62
            message[1] = "* Sorry that I'm putting#  you on one of my rafts#  again."
63
            message[2] = "* Might not be the most#  appropriate sendoff#  after that last ride..."
64
            message[3] = "* But it's the best#  tribute I could think#  of."
65
            prt[0] = 338
66
            prt[1] = 329
67
            prt[2] = 320
68
            prt[3] = 320
69
        }
70
        break
71
    case 8:
72
        cutscene_wait(0.5)
73
        break
74
    case 9:
75
        cutscene_npc_action_sprite(1164, 3730, 1, true, 0)
76
        break
77
    case 10:
78
        cutscene_wait(1)
79
        break
80
    case 11:
81
        cutscene_dialogue()
82
        with (msg)
83
        {
84
            talker[0] = 1164
85
            message[0] = "..."
86
            prt[0] = 317
87
        }
88
        break
89
    case 12:
90
        cutscene_wait(0.5)
91
        break
92
    case 13:
93
        var actor_starlo = instance_create_depth(-10, (obj_martlet_npc.y - 10), 0, obj_starlo_npc)
94
        var actor_ceroba = instance_create_depth(-40, (obj_martlet_npc.y + 10), 0, obj_ceroba_npc)
95
        cutscene_npc_set_sprites(actor_starlo, 207, 237, 240, 236, 206, 235, 230, 232)
96
        cutscene_npc_walk(actor_starlo, (obj_martlet_npc.x - 50), (obj_martlet_npc.y - 10), 2, "x", "right")
97
        cutscene_npc_walk(actor_ceroba, (obj_martlet_npc.x - 80), (obj_martlet_npc.y + 10), 2, "x", "right")
98
        cutscene_advance(14)
99
        break
100
    case 14:
101
        if (obj_starlo_npc.npc_arrived && obj_ceroba_npc.npc_arrived)
102
            cutscene_advance()
103
        break
104
    case 15:
105
        cutscene_dialogue()
106
        with (msg)
107
        {
108
            talker[0] = 1161
109
            talker[1] = 1169
110
            message[0] = "* It's nice."
111
            message[1] = "* It is."
112
            message[2] = "* Thanks for doing this."
113
            prt[0] = 370
114
            prt[1] = 416
115
            prt[2] = 418
116
        }
117
        break
118
    case 16:
119
        cutscene_wait(0.5)
120
        break
121
    case 17:
122
        cutscene_npc_action_sprite(1164, 2919, 1, true, 0)
123
        break
124
    case 18:
125
        cutscene_wait(0.5)
126
        break
127
    case 19:
128
        cutscene_npc_reset_sprite(1164, "left")
129
        instance_create_depth((obj_martlet_npc.x + 24), (obj_martlet_npc.y + 16), (obj_martlet_npc.depth - 1), obj_intermission_raft)
130
        obj_intermission_raft.image_index = 1
131
    case 20:
132
        cutscene_dialogue()
133
        with (msg)
134
        {
135
            talker[0] = 1164
136
            talker[2] = 1169
137
            message[0] = "* Felt good to craft#  something with meaning#  again."
138
            message[1] = "* You got your gift?"
139
            message[2] = "* Yeah, here you go."
140
            prt[0] = 338
141
            prt[1] = 321
142
            prt[2] = 421
143
        }
144
        break
145
    case 21:
146
        cutscene_npc_walk(1169, (obj_martlet_npc.x + 50), (obj_martlet_npc.y + 2), 2, "x", "left", -4)
147
        if (obj_starlo_npc.x > obj_martlet_npc.x)
148
            obj_martlet_npc.npc_direction = "right"
149
        break
150
    case 22:
151
        cutscene_wait(0.5)
152
        break
153
    case 23:
154
        cutscene_npc_action_sprite(1169, 3534, 1, true, 0)
155
        break
156
    case 24:
157
        cutscene_wait(1)
158
        break
159
    case 25:
160
        cutscene_npc_reset_sprite(1169, "left")
161
        obj_intermission_raft.image_index = 2
162
        break
163
    case 26:
164
        cutscene_npc_direction(obj_martlet_npc, "left")
165
        break
166
    case 27:
167
        cutscene_dialogue()
168
        with (msg)
169
        {
170
            talker[0] = 1161
171
            talker[2] = 1164
172
            message[0] = "* Oh, I almost forgot."
173
            message[1] = "* There's someone I#  invited who was a friend#  of Clover's."
174
            message[2] = "* A friend?"
175
            prt[0] = 370
176
            prt[1] = 370
177
            prt[2] = 321
178
        }
179
        break
180
    case 28:
181
        cutscene_wait(0.5)
182
        break
183
    case 29:
184
        cutscene_npc_direction(obj_ceroba_npc, "left")
185
        break
186
    case 30:
187
        cutscene_instance_create(-20, (obj_ceroba_npc.y - 7), obj_dalv_npc)
188
        break
189
    case 31:
190
        cutscene_dialogue()
191
        with (msg)
192
        {
193
            talker[0] = 3110
194
            message[0] = "* H-Hello?"
195
            message[1] = "* Is this the right place?"
196
        }
197
        break
198
    case 32:
199
        cutscene_npc_walk(3110, (obj_ceroba_npc.x - 20), (obj_ceroba_npc.y - 7), 2, "x", "right")
200
        break
201
    case 33:
202
        cutscene_npc_walk(1161, obj_ceroba_npc.x, (obj_dalv_npc.y - 25), 2, "y", "down")
203
        break
204
    case 34:
205
        if cutscene_npc_walk(3110, (obj_martlet_npc.x - 80), obj_dalv_npc.y, 2, "x", "right")
206
            cutscene_advance(34.5)
207
        break
208
    case 34.5:
209
        if cutscene_npc_walk(1164, obj_martlet_npc.x, (obj_dalv_npc.y + 8), 2, "y", "left")
210
            cutscene_advance(35)
211
        break
212
    case 35:
213
        cutscene_dialogue()
214
        with (msg)
215
        {
216
            talker[0] = 1164
217
            talker[1] = 1169
218
            talker[2] = 3110
219
            talker[5] = 1169
220
            talker[6] = 3110
221
            talker[9] = 1164
222
            talker[10] = 3110
223
            talker[13] = 1161
224
            talker[14] = 3110
225
            talker[16] = 1164
226
            message[0] = "* Oh, hello."
227
            message[1] = "* Howdy."
228
            message[2] = "* Sorry if I'm#  intruding..."
229
            message[3] = "* My name is Dalv and I#  um..."
230
            message[4] = "* I was living in the#  Ruins when Clover first#  entered the Underground."
231
            message[5] = "* So you were the first#  to meet ‘em?"
232
            message[6] = "* One of the first, I#  suppose..."
233
            message[7] = "* A-Anyway, when we met,#  I acted foolish and... "
234
            message[8] = "* ...attacked Clover."
235
            message[9] = "* I think we all did at#  one point..."
236
            message[10] = "* I promise it didn't#  last long, though!"
237
            message[11] = "* And I held back a#  little. Um..."
238
            message[12] = "* Where was I going with#  this?"
239
            message[13] = "* Clover helped you out#  of your situation."
240
            message[14] = "* Yes."
241
            message[15] = "* All in all, Clover was#  very kind to me."
242
            message[16] = "* That checks out."
243
            message[17] = "* It's nice to meet you,#  Dalv."
244
            message[18] = "* Thanks for coming."
245
            prt[0] = 333
246
            prt[1] = 417
247
            prt[2] = 1763
248
            prt[3] = 1780
249
            prt[4] = 1768
250
            prt[5] = 417
251
            prt[6] = 1780
252
            prt[7] = 1781
253
            prt[8] = 1786
254
            prt[9] = 317
255
            prt[10] = 1764
256
            prt[11] = 1780
257
            prt[12] = 1776
258
            prt[13] = 377
259
            prt[14] = 1776
260
            prt[15] = 1755
261
            prt[16] = 320
262
            prt[17] = 312
263
            prt[18] = 328
264
            if (message_current == 5)
265
                obj_ceroba_npc.npc_direction = "right"
266
            if (message_current == 6)
267
                obj_ceroba_npc.npc_direction = "down"
268
            if (message_current == 13)
269
                obj_dalv_npc.npc_direction = "up"
270
            if (message_current == 15)
271
                obj_dalv_npc.npc_direction = "right"
272
            if (message_current == 16)
273
                obj_ceroba_npc.npc_direction = "right"
274
        }
275
        break
276
    case 36:
277
        obj_martlet_npc.y = obj_dalv_npc.y + 7
278
        cutscene_npc_walk(1164, (obj_dalv_npc.x + 27), (obj_dalv_npc.y + 7), 2, "y", "left")
279
        break
280
    case 37:
281
        obj_martlet_npc.image_alpha = 0
282
        cutscene_npc_action_sprite(3110, 3480, 1, false)
283
        if (obj_dalv_npc.image_index >= 18)
284
        {
285
            obj_dalv_npc.action_sprite = false
286
            obj_dalv_npc.right_sprite_idle = 1215
287
            cutscene_advance()
288
        }
289
        break
290
    case 38:
291
        cutscene_dialogue()
292
        with (msg)
293
        {
294
            talker[0] = 3110
295
            message[0] = "* Of course."
296
            prt[0] = 1773
297
        }
298
        break
299
    case 39:
300
        if cutscene_npc_action_sprite(3110, 3480, 1, false)
301
        {
302
            obj_martlet_npc.image_alpha = 1
303
            obj_dalv_npc.right_sprite_idle = 89
304
        }
305
        if (obj_dalv_npc.image_index < 18)
306
            obj_dalv_npc.image_index = 18
307
        break
308
    case 40:
309
        obj_martlet_npc.npc_direction = "right"
310
        cutscene_advance()
311
        break
312
    case 41:
313
        cutscene_wait(1)
314
        break
315
    case 42:
316
        cutscene_dialogue()
317
        with (msg)
318
        {
319
            talker[0] = 1164
320
            talker[3] = 1161
321
            talker[4] = 1169
322
            message[0] = "* Well..."
323
            message[1] = "* No more stalling."
324
            message[2] = "* Everyone ready?"
325
            message[3] = "* I believe so."
326
            message[4] = "* Oh, wait a second."
327
            message[5] = "* I want to place one#  more thing."
328
            prt[0] = 317
329
            prt[1] = 329
330
            prt[2] = 321
331
            prt[3] = 394
332
            prt[4] = 419
333
            prt[5] = 421
334
        }
335
        break
336
    case 43:
337
        cutscene_npc_walk(1169, obj_intermission_raft.x, (obj_intermission_raft.y - 2), 2, "y", "up")
338
        break
339
    case 44:
340
        cutscene_wait(0.5)
341
        break
342
    case 45:
343
        cutscene_npc_action_sprite(1169, 716, 1, false)
344
        break
345
    case 46:
346
        obj_intermission_raft.image_index = 3
347
        cutscene_wait(0.5)
348
        break
349
    case 47:
350
        cutscene_npc_walk(1169, 180, 132, 2, "x", "left")
351
        break
352
    case 48:
353
        cutscene_wait(0.5)
354
        break
355
    case 49:
356
        cutscene_dialogue()
357
        with (msg)
358
        {
359
            talker[0] = 1161
360
            talker[1] = 1169
361
            talker[3] = 1161
362
            message[0] = "* Safety glasses?"
363
            message[1] = "* I want Clover to stay#  safe on their journey."
364
            message[2] = "* Can't forget 'em,#  right?"
365
            message[3] = "* No, you can't."
366
            prt[0] = 370
367
            prt[1] = 415
368
            prt[2] = 417
369
            prt[3] = 395
370
        }
371
        break
372
    case 50:
373
        cutscene_npc_walk(1164, (obj_intermission_raft.x - 1), (obj_intermission_raft.y - 29), 2, "y", "down")
374
        break
375
    case 51:
376
        obj_starlo_npc.npc_direction = "up"
377
        cutscene_wait(0.5)
378
        break
379
    case 52:
380
        obj_intermission_raft.image_alpha = 0
381
        cutscene_npc_action_sprite(1164, 387, 1, true, 0)
382
        break
383
    case 53:
384
        cutscene_npc_set_sprites(obj_martlet_npc, 273, 3059, 3085, 272, 273, 3059, 3085, 272)
385
        break
386
    case 54:
387
        cutscene_npc_reset_sprite(1164, "down")
388
        break
389
    case 55:
390
        cutscene_npc_walk(1169, 270, 137, 2, "x", "left")
391
        break
392
    case 56:
393
        cutscene_npc_walk(1164, 241, 145, 2, "x", "down")
394
        cutscene_camera_move(241, 120, 2, true)
395
        break
396
    case 57:
397
        cutscene_wait(0.5)
398
        break
399
    case 58:
400
        obj_starlo_npc.npc_direction = "down"
401
        cutscene_npc_walk(1161, 215, 137, 3, "y", "down")
402
        cutscene_advance()
403
        break
404
    case 59:
405
        cutscene_wait(0.5)
406
        break
407
    case 60:
408
        cutscene_npc_walk(3110, 190, 130, 3, "y", "down")
409
        cutscene_advance()
410
        break
411
    case 61:
412
        if (obj_dalv_npc.npc_arrived && obj_ceroba_npc.npc_arrived)
413
            cutscene_wait(1)
414
        break
415
    case 62:
416
        if cutscene_npc_action_sprite(1164, 3765, 1, false)
417
        {
418
            obj_intermission_raft.x = 242
419
            obj_intermission_raft.y = 176
420
            obj_intermission_raft.image_alpha = 1
421
            obj_intermission_raft.depth = obj_martlet_npc.depth - 1
422
        }
423
        obj_martlet_npc.down_sprite = 274
424
        obj_martlet_npc.down_sprite_idle = 265
425
        obj_martlet_npc.right_sprite = 270
426
        obj_martlet_npc.right_sprite_idle = 263
427
        break
428
    case 63:
429
        obj_martlet_npc.up_sprite = 274
430
        cutscene_npc_walk(1164, 241, 137, 1, "y", "down")
431
        cutscene_advance(64)
432
        break
433
    case 64:
434
        if (obj_intermission_raft.y < 181)
435
            obj_intermission_raft.vspeed = 0.1
436
        else
437
        {
438
            obj_intermission_raft.sprite_index = spr_credits_intermission_raft_idle
439
            obj_intermission_raft.image_speed = 1
440
            obj_intermission_raft.vspeed = 0
441
            audio_play_sound(snd_splash, 1, 0)
442
            cutscene_advance()
443
        }
444
        break
445
    case 65:
446
        cutscene_wait(1)
447
        break
448
    case 66:
449
        cutscene_dialogue()
450
        with (msg)
451
        {
452
            talker[0] = 1164
453
            talker[1] = 3110
454
            talker[3] = 1161
455
            talker[4] = 1169
456
            talker[5] = 1164
457
            message[0] = "* There you go..."
458
            message[1] = "* ..."
459
            message[2] = "* Goodbye, friend."
460
            message[3] = "* Thanks for all you've#  done."
461
            message[4] = "* See you around, kid."
462
            message[5] = "* ..."
463
            message[6] = "* Take care, Clover."
464
            prt[0] = 320
465
            prt[1] = 1777
466
            prt[2] = 1786
467
            prt[3] = 394
468
            prt[4] = 416
469
            prt[5] = 317
470
            prt[6] = 317
471
            position = 1
472
        }
473
        break
474
    case 67:
475
        if cutscene_camera_move(obj_camera.x, obj_intermission_raft.y, 0.5)
476
        {
477
            scr_audio_fade_out
scr_audio_fade_out

function scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out { var snd = argument0 var fade_len = argument1 if (!audio_is_playing(snd)) return false; audio_sound_gain(snd, 0, fade_len) if instance_exists(obj_audio_fade_helper) { with (obj_audio_fade_helper) { if (audio_to_fade == snd) return false; } } with (instance_create(0, 0, obj_audio_fade_helper)) audio_to_fade = snd }
(river_ambience, 1000)
478
            cutscene_music = audio_play_sound(mus_a_place_to_rest, 1, 0)
479
            obj_intermission_raft.sprite_index = spr_credits_raft_water_start
480
            instance_create_depth(obj_intermission_raft.x, obj_intermission_raft.y, (obj_intermission_raft.depth - 1), obj_intermission_raft_flag)
481
        }
482
        break
483
    case 68:
484
        obj_camera.y = obj_intermission_raft.y
485
        if (obj_intermission_raft.image_index >= (obj_intermission_raft.image_number - 1))
486
        {
487
            if (obj_intermission_raft.sprite_index != spr_credits_raft_water)
488
            {
489
                obj_intermission_raft.sprite_index = spr_credits_raft_water
490
                obj_intermission_raft.image_index = 0
491
            }
492
        }
493
        if (obj_intermission_raft.vspeed < 2)
494
            obj_intermission_raft.vspeed += 0.015
495
        if (obj_intermission_raft.y >= 600)
496
        {
497
            with (obj_waterfall_water_ripples_north_overworld_yellow)
498
                can_move = true
499
        }
500
        if (obj_intermission_raft.y >= 620)
501
        {
502
            obj_intermission_raft.vspeed = 0
503
            scene++
504
        }
505
        break
506
    case 69:
507
        obj_camera.y = obj_intermission_raft.y
508
        if (obj_camera.x < 300)
509
            obj_camera.x += 1
510
        else
511
            cutscene_advance()
512
        break
513
    case 70:
514
        cutscene_advance()
515
        break
516
    case 71:
517
        if (credits_y_offset >= 1400)
518
            cutscene_advance(73)
519
        break
520
    case 72:
521
        cutscene_advance()
522
        break
523
    case 73:
524
        obj_camera.y = obj_intermission_raft.y
525
        obj_intermission_raft.vspeed = 1
526
        with (obj_waterfall_water_ripples_north_overworld_yellow)
527
            wrap_around = false
528
        if (obj_intermission_raft.y > 900)
529
        {
530
            credits_final_alpha_fade = true
531
            cutscene_advance()
532
        }
533
        break
534
    case 74:
535
        obj_camera.y = obj_intermission_raft.y
536
        if (obj_intermission_raft.y >= 1100)
537
        {
538
            credits_final_alpha_fade = false
539
            if (obj_intermission_raft.vspeed > 0)
540
                obj_intermission_raft.vspeed -= 0.1
541
            else
542
            {
543
                obj_intermission_raft.vspeed = 0
544
                obj_intermission_raft.sprite_index = spr_credits_intermission_raft_tip
545
                obj_intermission_raft.image_speed = 0.5
546
                instance_destroy(obj_intermission_raft_flag)
547
                cutscene_advance()
548
            }
549
        }
550
        break
551
    case 75:
552
        cutscene_camera_move(obj_camera.x, 1220, 1, true)
553
        if (obj_intermission_raft.image_index >= (obj_intermission_raft.image_number - 1))
554
        {
555
            audio_play_sound(snd_fall2, 1, 0)
556
            obj_intermission_raft.sprite_index = spr_credits_intermission_raft_fall
557
            obj_intermission_raft.vspeed = 3
558
            with (obj_intermission_raft)
559
            {
560
                var goggles = instance_create_depth((x - 4), (y - 3), -1303, obj_intermission_goggles)
561
                var gun = instance_create_depth((x + 5), (y - 6), -1302, obj_intermission_gun)
562
                var hat = instance_create_depth(x, (y - 11), -1301, obj_intermission_hat)
563
            }
564
            goggles.vspeed = 2
565
            goggles.hspeed = -1
566
            goggles.gravity = 0.2
567
            gun.vspeed = 2
568
            gun.hspeed = 2
569
            gun.gravity = 0.2
570
            hat.hspeed = 0
571
            hat.vspeed = 2
572
            hat.gravity = 0.2
573
            cutscene_advance()
574
        }
575
        break
576
    case 76:
577
        if (obj_intermission_hat.y > 1216)
578
        {
579
            obj_intermission_hat.vspeed = 0
580
            obj_intermission_hat.gravity = 0
581
            obj_intermission_hat.y = 1216
582
        }
583
        if (obj_intermission_gun.y > 1216)
584
        {
585
            obj_intermission_gun.vspeed = 0
586
            obj_intermission_gun.gravity = 0
587
            obj_intermission_gun.y = 1216
588
        }
589
        if (obj_intermission_gun.hspeed > 0)
590
            obj_intermission_gun.hspeed -= 0.1
591
        else
592
            obj_intermission_gun.hspeed = 0
593
        if (obj_intermission_goggles.hspeed < 0)
594
            obj_intermission_goggles.hspeed += 0.1
595
        else
596
            obj_intermission_goggles.hspeed = 0
597
        if (instance_exists(obj_intermission_raft) && obj_intermission_raft.y > 1180)
598
        {
599
            audio_play_sound(snd_splash, 1, 0)
600
            instance_destroy(obj_intermission_raft)
601
            scr_screenshake
scr_screenshake

function scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake { if instance_exists(obj_screenshake_player) return; with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player)) { alarm[0] intensity = argument1 } }
(3, 3)
602
        }
603
        cutscene_wait(5)
604
        break
605
    case 77:
606
        cutscene_wait(3)
607
        break
608
    case 78:
609
        if cutscene_screen_fade_out(0, 0.005)
610
            audio_play_sound(mus_a_call_to_action, 1, 0)
611
        break
612
    case 79:
613
        cutscene_wait(5)
614
        break
615
    case 80:
616
        if (!instance_exists(obj_dialogue_call_for_help))
617
            msg = instance_create_depth(0, 0, -1000, obj_dialogue_call_for_help)
618
        with (msg)
619
        {
620
            message[0] = "* Somebody calls for help..."
621
            message[1] = "   * You answer the call."
622
            skippable = false
623
            message_timer = 60
624
            if (message_current == 1)
625
            {
626
                message_timer = -1
627
                other.scene++
628
            }
629
        }
630
        if (!global.dialogue_open)
631
            cutscene_advance()
632
        break
633
    case 81:
634
        cutscene_wait(6.3)
635
        break
636
    case 82:
637
        cutscene_advance()
638
        break
639
    case 83:
640
        draw_alpha_white += 0.03
641
        if (draw_alpha_white >= 1)
642
        {
643
            if cutscene_wait(2)
644
            {
645
                instance_destroy(obj_dialogue_call_for_help)
646
                draw_alpha_white = 0
647
            }
648
        }
649
        break
650
    case 84:
651
        audio_play_sound(mus_intronoise, 1, 0)
652
        cutscene_advance()
653
        draw_end_card = true
654
        depth = -200
655
        break
656
    case 85:
657
        cutscene_wait(12)
658
        break
659
    case 86:
660
        if (end_card_alpha > 0)
661
            end_card_alpha -= 0.1
662
        else
663
            cutscene_advance()
664
        break
665
    case 87:
666
        global.game_finished_pacifist = true
667
        scr_savegame_meta
scr_savegame_meta

function scr_savegame_meta() //gml_Script_scr_savegame_meta { if file_exists("Save02.sav") file_delete("Save02.sav") ini_open("Save02.sav") ini_write_real("00", "00", global.meta_flowey_introduction_count) ini_write_real("00", "01", global.meta_flowey_fight_count) ini_write_real("00", "02", global.game_finished_pacifist) ini_write_real("00", "03", global.game_finished_pacifist_kill) ini_write_real("00", "04", global.game_finished_murder) ini_write_real("Deaths", "00", global.death_count_total) ini_write_real("Deaths", "01", global.death_count[1]) ini_write_real("Deaths", "02", global.death_count[2]) ini_close() }
()
668
        cutscene_advance()
669
        break
670
    case 88:
671
        cutscene_wait(3)
672
        break
673
    case 89:
674
        cutscene_music = audio_play_sound(mus_ajourned, 1, 0)
675
        cutscene_advance()
676
        break
677
    case 90:
678
        if (hat_card_alpha < 1)
679
            hat_card_alpha += 0.007
680
        else
681
        {
682
            if ((!audio_is_playing(mus_ajourned)) || keyboard_multicheck_pressed(0))
683
                cutscene_advance()
684
            if (audio_sound_get_track_position(cutscene_music) > 8)
685
            {
686
                if (the_end_text_alpha < 1)
687
                    the_end_text_alpha += 0.015
688
            }
689
        }
690
        break
691
    case 91:
692
        if (hat_card_alpha > 0)
693
            hat_card_alpha -= 0.01
694
        the_end_text_alpha = hat_card_alpha
695
        if audio_is_playing(mus_ajourned)
696
            scr_audio_fade_out
scr_audio_fade_out

function scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out { var snd = argument0 var fade_len = argument1 if (!audio_is_playing(snd)) return false; audio_sound_gain(snd, 0, fade_len) if instance_exists(obj_audio_fade_helper) { with (obj_audio_fade_helper) { if (audio_to_fade == snd) return false; } } with (instance_create(0, 0, obj_audio_fade_helper)) audio_to_fade = snd }
(mus_ajourned, 1500)
697
        else if (hat_card_alpha <= 0)
698
            cutscene_wait(1.5)
699
        break
700
    case 92:
701
        game_end()
702
        break
703
}
704
705
if (credits_final_alpha_fade == true)
706
{
707
    if (credits_final_alpha < 1)
708
        credits_final_alpha += 0.015
709
}
710
else if (credits_final_alpha > 0)
711
    credits_final_alpha -= 0.025
712
credits_entry_three[0] = "Based on the world\nof UNDERTALE,\ncreated by:"
713
credits_entry_three[1] = ""
714
credits_entry_three[2] = "Toby Fox\n&\nTemmie Chang"
715
if (scene >= 71)
716
    credits_y_offset += 0.5