Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_phase_2_overworld_cutscene_2_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 -1:
6
        if (room == rm_battle)
7
            return;
8
        cutscene_wait(2)
9
        break
10
    case 0:
11
        instance_create_depth(137, 151, 0, obj_kanako_npc)
12
        obj_kanako_npc.npc_direction = "up"
13
        obj_kanako_npc.down_sprite_idle = 3568
14
        instance_create_depth(137, 290, 0, obj_ceroba_npc)
15
        obj_ceroba_npc.npc_direction = "up"
16
        instance_create_depth(190, 120, 50, obj_flashback_lab_table)
17
        cutscene_camera_freeze(0, 0)
18
        break
19
    case 1:
20
        instance_create_depth(0, 0, (depth + 1), obj_ending_flashback_02_noise)
21
        scene = 1.5
22
        break
23
    case 1.5:
24
        draw_alpha = lerp(draw_alpha, 0, 0.15)
25
        if (draw_alpha < 0.05)
26
        {
27
            draw_alpha = 0
28
            cutscene_advance(2)
29
        }
30
        break
31
    case 2:
32
        cutscene_wait(1.5)
33
        break
34
    case 3:
35
        if (!instance_exists(obj_ceroba_phase_2_overworld_cutscene_dialogue_chujin))
36
        {
37
            msg = instance_create_depth(0, 0, -800, obj_ceroba_phase_2_overworld_cutscene_dialogue_chujin)
38
            scene++
39
        }
40
        with (msg)
41
        {
42
            sndfnt = 626
43
            message[0] = "Our little girl... Kanako... She#  needs to live a happy life,#  unaffected by my endeavors."
44
            message[1] = "     That is my final wish."
45
        }
46
        break
47
    case 4:
48
        if (!global.dialogue_open)
49
            cutscene_wait(1)
50
        break
51
    case 5:
52
        draw_alpha = 0
53
        if (!instance_exists(obj_ending_flashback_02_noise))
54
            cutscene_advance()
55
        else
56
            obj_ending_flashback_02_noise.fade_out = true
57
        break
58
    case 6:
59
        cutscene_wait(1)
60
        break
61
    case 7:
62
        cutscene_npc_action_sprite(159, 860, 1, false)
63
        break
64
    case 8:
65
        instance_create(obj_kanako_npc.x, (obj_kanako_npc.y - 20), obj_cutscene_ex)
66
        cutscene_advance()
67
        break
68
    case 9:
69
        cutscene_dialogue()
70
        with (msg)
71
        {
72
            sndfnt = 108
73
            message[0] = "* Kanako!?"
74
            position = 1
75
        }
76
        break
77
    case 10:
78
        instance_destroy(obj_cutscene_ex)
79
        cutscene_npc_direction(obj_kanako_npc, "down")
80
        break
81
    case 11:
82
        cutscene_npc_set_sprites(obj_ceroba_npc, 81, 80, 78, 79, 61, 65, 60, 63)
83
        break
84
    case 12:
85
        cutscene_npc_walk(1161, obj_kanako_npc.x, 210, 4, "x", "up")
86
        break
87
    case 13:
88
        cutscene_dialogue()
89
        with (msg)
90
        {
91
            message[0] = "* What are you doing down#  here!?"
92
            prt[0] = 381
93
            talker[0] = 1161
94
            position = 1
95
        }
96
        break
97
    case 14:
98
        cutscene_wait(1)
99
        break
100
    case 15:
101
        cutscene_dialogue()
102
        with (msg)
103
        {
104
            talker[0] = 159
105
            talker[1] = 1161
106
            talker[2] = 159
107
            talker[3] = 1161
108
            talker[4] = 159
109
            talker[6] = 1161
110
            talker[10] = 159
111
            message[0] = "* Is... Is it true?"
112
            message[1] = "* ...What?"
113
            message[2] = "* Am I... different?"
114
            message[3] = "* Kanako I..."
115
            message[4] = "* Daddy said he would've#  lived a long time if I#  wasn't here."
116
            message[5] = "* He would still... be..."
117
            message[6] = "* No, no!"
118
            message[7] = "* Your father loved you!"
119
            message[8] = "* And he didn't want to#  put you in any danger."
120
            message[9] = "* You heard him!"
121
            message[10] = "* His dream... All these#  books and papers... "
122
            message[11] = "* You've been trying to#  finish it, haven't you?"
123
            prt[0] = 6
124
            prt[1] = 370
125
            prt[2] = 3268
126
            prt[3] = 3757
127
            prt[4] = 3179
128
            prt[5] = 3268
129
            prt[6] = 381
130
            prt[7] = 3757
131
            prt[8] = 3757
132
            prt[9] = 3757
133
            prt[10] = 3113
134
            prt[11] = 6
135
            if (message_current == 2 && other.cutscene_music == 0)
136
            {
137
                other.cutscene_music = audio_play_sound(mus_kanako_reprise, 1, 1)
138
                audio_stop_sound(obj_radio.current_song)
139
            }
140
            if (message_current == 4)
141
                obj_kanako_npc.down_sprite_idle = 3067
142
            if (message_current == 10)
143
                obj_kanako_npc.down_sprite_idle = 3568
144
            if (message_current == 5)
145
            {
146
                skippable = false
147
                message_timer = 30
148
            }
149
            else
150
            {
151
                skippable = true
152
                message_timer = -1
153
            }
154
            position = 1
155
        }
156
        break
157
    case 16:
158
        cutscene_wait(1)
159
        break
160
    case 17:
161
        cutscene_npc_direction(obj_ceroba_npc, "left")
162
        break
163
    case 18:
164
        cutscene_wait(1)
165
        break
166
    case 19:
167
        cutscene_npc_direction(obj_ceroba_npc, "up")
168
        break
169
    case 20:
170
        cutscene_dialogue()
171
        with (msg)
172
        {
173
            talker[0] = 1161
174
            talker[4] = 159
175
            message[0] = "* With my limited#  abilities... yes."
176
            message[1] = "* But it doesn't involve#  you."
177
            message[2] = "* I've been looking into#  ways to create the serum#  without a Boss Monster."
178
            message[3] = "* I'll... figure it out.#  I have to."
179
            message[4] = "* But..."
180
            message[5] = "* I found this in the#  trash."
181
            prt[0] = 377
182
            prt[1] = 371
183
            prt[2] = 377
184
            prt[3] = 609
185
            prt[4] = 3113
186
            prt[5] = 6
187
            position = 1
188
        }
189
        break
190
    case 21:
191
        cutscene_npc_action_sprite(159, 2777, 1, false)
192
        obj_kanako_npc.down_sprite_idle = 2634
193
        break
194
    case 22:
195
        instance_create(obj_ceroba_npc.x, (obj_ceroba_npc.y - 40), obj_cutscene_ex)
196
        cutscene_advance()
197
        break
198
    case 23:
199
        cutscene_wait(1)
200
        break
201
    case 24:
202
        instance_destroy(obj_cutscene_ex)
203
        cutscene_advance()
204
        break
205
    case 25:
206
        if cutscene_dialogue()
207
            scene = 25.4
208
        with (msg)
209
        {
210
            color = true
211
            col_modif[0] = 4235519
212
            talker[0] = 1161
213
            talker[1] = 159
214
            talker[2] = 1161
215
            talker[3] = 159
216
            talker[5] = 1161
217
            message[0] = "* ! "
218
            message[1] = "* You figured it out.#  Last week."
219
            message[2] = "* I..."
220
            message[3] = "* \"Using the leftover#  ex... extract from the#  human's SOUL..."
221
            message_col[3][0] = "  \"Using the leftover#  ex... extract from the#  human's SOUL..."
222
            message[4] = "* I believe I have#  removed any corruption#  it held.\""
223
            message_col[4][0] = "  I believe I have#  removed any corruption#  it held.\""
224
            message[5] = "* ...Negating the need#  for someone pure of#  heart. Yes."
225
            prt[0] = 381
226
            prt[1] = 1144
227
            prt[2] = 3757
228
            prt[3] = 6
229
            prt[4] = 6
230
            prt[5] = 377
231
            switch message_current
232
            {
233
                case 2:
234
                    obj_ceroba_npc.npc_direction = "left"
235
                    break
236
                case 3:
237
                    obj_ceroba_npc.npc_direction = "up"
238
                    break
239
            }
240
241
            position = 1
242
        }
243
        break
244
    case 25.4:
245
        if cutscene_npc_action_sprite(159, 2901, 1, false)
246
            scene = 25.6
247
        obj_kanako_npc.down_sprite_idle = 1608
248
        break
249
    case 25.6:
250
        if cutscene_dialogue()
251
            scene = 26
252
        with (msg)
253
        {
254
            talker[0] = 159
255
            talker[3] = 1161
256
            talker[5] = 159
257
            talker[8] = 1161
258
            talker[10] = 159
259
            talker[12] = 1161
260
            message[0] = "* So you did it!"
261
            message[1] = "* Daddy's wish could come#  true, right?"
262
            message[2] = "* We could make him#  smile! Make him proud of#  us!"
263
            message[3] = "* But..."
264
            message[4] = "* He didn't want you to#  be a part of this. And I#  agree."
265
            message[5] = "* Let me do it!"
266
            message[6] = "* I want to make things#  right. Be useful for#  once."
267
            message[7] = "* And I trust you to keep#  me safe!"
268
            message[8] = "* I... I do believe that#  the refined method would#  work."
269
            message[9] = "* I just..."
270
            message[10] = "* Please..."
271
            message[11] = "* You promised you would#  make his dream come#  true."
272
            message[12] = "* I did."
273
            message[13] = "* ..."
274
            prt[0] = 2849
275
            prt[1] = 1250
276
            prt[2] = 1250
277
            prt[3] = 2987
278
            prt[4] = 2987
279
            prt[5] = 683
280
            prt[6] = 575
281
            prt[7] = 1250
282
            prt[8] = 3757
283
            prt[9] = 609
284
            prt[10] = 3113
285
            prt[11] = 6
286
            prt[12] = 609
287
            prt[13] = 2987
288
            switch message_current
289
            {
290
                case 12:
291
                    obj_ceroba_npc.npc_direction = "left"
292
                    break
293
            }
294
295
            position = 1
296
        }
297
        break
298
    case 26:
299
        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 }
(cutscene_music, 1000)
300
        cutscene_wait(1)
301
        break
302
    case 27:
303
        scr_radio_restart
scr_radio_restart

function scr_radio_restart() //gml_Script_scr_radio_restart { with (obj_radio) event_user(0) }
()
304
        cutscene_npc_direction(obj_ceroba_npc, "up")
305
        break
306
    case 28:
307
        cutscene_dialogue()
308
        with (msg)
309
        {
310
            talker[0] = 1161
311
            talker[3] = 159
312
            message[0] = "* Very well."
313
            message[1] = "* But I'll make it quick."
314
            message[2] = "* I'll ensure your safety#  throughout the#  procedure, alright?"
315
            message[3] = "* Mm-hmm!"
316
            message[4] = "* We'll be the heroes of#  the Underground!"
317
            message[5] = "* All thanks to you and#  daddy!"
318
            prt[0] = 377
319
            prt[1] = 370
320
            prt[2] = 370
321
            prt[3] = 2820
322
            prt[4] = 1250
323
            prt[5] = 2849
324
            position = 1
325
        }
326
        break
327
    case 29:
328
        cutscene_wait(1)
329
        break
330
    case 30:
331
        cutscene_dialogue()
332
        with (msg)
333
        {
334
            talker[0] = 1161
335
            message[0] = "* Heroes, huh?"
336
            message[1] = "* That has a nice ring to#  it."
337
            prt[0] = 395
338
            prt[1] = 372
339
            position = 1
340
        }
341
        break
342
    case 31:
343
        cutscene_wait(0.25)
344
        break
345
    case 32:
346
        cutscene_npc_direction(obj_ceroba_npc, "right")
347
        break
348
    case 33:
349
        cutscene_wait(0.75)
350
        break
351
    case 34:
352
        cutscene_npc_direction(obj_ceroba_npc, "up")
353
        break
354
    case 35:
355
        cutscene_dialogue()
356
        with (msg)
357
        {
358
            talker[0] = 1161
359
            message[0] = "* Okay, wait here."
360
            prt[0] = 377
361
            position = 1
362
        }
363
        break
364
    case 36:
365
        cutscene_npc_set_sprites(obj_ceroba_npc, 67, 68, 66, 69, 61, 65, 60, 63)
366
        break
367
    case 37:
368
        cutscene_npc_walk(1161, 186, 159, 3, "y", "right")
369
        if (obj_ceroba_npc.x > obj_kanako_npc.x)
370
            obj_kanako_npc.npc_direction = "right"
371
        break
372
    case 38:
373
        cutscene_wait(0.5)
374
        break
375
    case 39:
376
        cutscene_npc_walk(159, obj_kanako_npc.x, 160, 2, "y", "right")
377
        cutscene_advance()
378
        break
379
    case 40:
380
        cutscene_npc_action_sprite(1161, 3389, 1, true, 0)
381
        if (obj_ceroba_npc.image_index >= 39)
382
        {
383
            if (obj_flashback_lab_table.image_index == 0)
384
            {
385
                obj_flashback_lab_table.image_speed = 1
386
                obj_flashback_lab_table.image_index = 1
387
            }
388
        }
389
        break
390
    case 41:
391
        cutscene_wait(0.5)
392
        break
393
    case 42:
394
        cutscene_dialogue()
395
        with (msg)
396
        {
397
            talker[0] = 1161
398
            message[0] = "* You will need to stand#  very still for this."
399
            message[1] = "* Close your eyes and I#  will begin the#  fusion-extraction."
400
            prt[0] = 377
401
            prt[1] = 370
402
            position = 1
403
        }
404
        break
405
    case 43:
406
        cutscene_npc_set_sprites(obj_ceroba_npc, 67, 68, 66, 3746, 61, 65, 60, 1457)
407
        break
408
    case 44:
409
        obj_ceroba_npc.action_sprite = false
410
        cutscene_npc_walk(1161, 160, obj_kanako_npc.y, 2, "x", "left")
411
        break
412
    case 45:
413
        cutscene_npc_set_sprites(obj_kanako_npc, 1760, 3612, 3036, 1855, 2056, 2605, 1608, 2931)
414
        break
415
    case 46:
416
        cutscene_wait(1)
417
        break
418
    case 47:
419
        cutscene_dialogue()
420
        with (msg)
421
        {
422
            talker[0] = 1161
423
            talker[2] = 159
424
            message[0] = "* You may feel a pinch or#  two but it'll all be#  over before you know it."
425
            message[1] = "* Understood?"
426
            message[2] = "* Understood!"
427
            prt[0] = 370
428
            prt[1] = 370
429
            prt[2] = 1250
430
            position = 1
431
        }
432
        break
433
    case 48:
434
        cutscene_wait(1)
435
        break
436
    case 49:
437
        cutscene_npc_action_sprite(1161, 3166, 1, true, 0)
438
        break
439
    case 50:
440
        cutscene_wait(1)
441
        obj_ceroba_npc.left_sprite_idle = 2842
442
        obj_ceroba_npc.npc_direction = "left"
443
        obj_ceroba_npc.action_sprite = false
444
        break
445
    case 51:
446
        if cutscene_dialogue()
447
            scene = 51.5
448
        with (msg)
449
        {
450
            talker[0] = 1161
451
            talker[1] = 159
452
            message[0] = "* You truly believe in#  this, don't you?"
453
            message[1] = "* Yeah."
454
            prt[0] = 370
455
            prt[1] = 1250
456
            position = 1
457
        }
458
        break
459
    case 51.5:
460
        if cutscene_wait(1)
461
            scene = 52
462
        break
463
    case 52:
464
        obj_kanako_npc.npc_dynamic_depth = false
465
        obj_kanako_npc.depth = obj_ceroba_npc.depth - 1
466
        cutscene_npc_walk(159, 157, 160, 2, "y", "right")
467
        break
468
    case 53:
469
        obj_kanako_npc.image_alpha = 0
470
        cutscene_npc_action_sprite(1161, 3186, 1, true, 0)
471
        break
472
    case 54:
473
        cutscene_wait(1)
474
        break
475
    case 55:
476
        cutscene_dialogue()
477
        with (msg)
478
        {
479
            talker[0] = 1161
480
            talker[1] = 159
481
            message[0] = "* Love you lots."
482
            message[1] = "* Love you more."
483
            prt[0] = 2987
484
            prt[1] = 2849
485
            position = 1
486
        }
487
        break
488
    case 56:
489
        cutscene_wait(0.5)
490
        break
491
    case 57:
492
        if cutscene_npc_action_sprite(1161, 3354, 1, true)
493
        {
494
            obj_ceroba_npc.sprite_index = spr_flashback_ceroba_kneel
495
            obj_ceroba_npc.image_index = obj_ceroba_npc.image_number - 1
496
            obj_kanako_npc.image_alpha = 1
497
            scene = 57.5
498
        }
499
        break
500
    case 57.5:
501
        if cutscene_wait(1)
502
            scene = 58
503
        break
504
    case 58:
505
        cutscene_npc_walk(159, 142, 158, 2, "x", "right")
506
        break
507
    case 59:
508
        cutscene_wait(2)
509
        break
510
    case 60:
511
        obj_kanako_npc.image_alpha = 0
512
        cutscene_npc_action_sprite(1161, 457, 1, true, 0)
513
        cutscene_advance()
514
        break
515
    case 61:
516
        with (obj_ceroba_npc)
517
        {
518
            if (image_index >= 6)
519
            {
520
                image_speed = 0
521
                other.scene++
522
            }
523
        }
524
        break
525
    case 62:
526
        cutscene_wait(1.5)
527
        break
528
    case 63:
529
        draw_overlay_alpha += 0.1
530
        if (draw_overlay_alpha >= 1)
531
            cutscene_advance()
532
        break
533
    case 64:
534
        with (obj_ceroba_npc)
535
        {
536
            if (image_speed != 1)
537
                image_speed = 1
538
            else if (image_index >= (image_number - 1))
539
            {
540
                image_index = image_number - 1
541
                image_speed = 0
542
                other.scene++
543
            }
544
        }
545
        break
546
    case 65:
547
        cutscene_wait(1.5)
548
        break
549
    case 66:
550
        instance_create((obj_kanako_npc.x - 1), (obj_kanako_npc.y + 4), obj_flashback_kanako_soul)
551
        cutscene_advance()
552
        break
553
    case 67:
554
        cutscene_wait(1)
555
    case 68:
556
        with (obj_flashback_kanako_soul)
557
        {
558
            if (image_speed != 1)
559
                image_speed = 1
560
            else if (image_index >= (image_number - 1))
561
            {
562
                image_index = image_number - 1
563
                image_speed = 0
564
                other.scene++
565
            }
566
        }
567
        break
568
    case 69:
569
        cutscene_wait(1)
570
        break
571
    case 70:
572
        obj_flashback_kanako_soul.fade_out = true
573
        scene++
574
        break
575
    case 71:
576
        if (!instance_exists(obj_flashback_kanako_soul))
577
            cutscene_advance()
578
        break
579
    case 72:
580
        draw_overlay_alpha -= 0.1
581
        if (draw_overlay_alpha <= 0)
582
            cutscene_advance()
583
        break
584
    case 73:
585
        cutscene_wait(1)
586
        break
587
    case 74:
588
        if cutscene_npc_action_sprite(1161, 3012, 1, true, 0)
589
        {
590
            obj_kanako_npc.image_alpha = 1
591
            obj_ceroba_npc.sprite_index = spr_flashback_ceroba_kneel
592
            obj_ceroba_npc.image_index = obj_ceroba_npc.image_number - 1
593
        }
594
        break
595
    case 75:
596
        cutscene_wait(1)
597
        break
598
    case 76:
599
        obj_ceroba_npc.left_sprite_idle = 63
600
        cutscene_npc_action_sprite(1161, 3457, 1, true, 0)
601
        break
602
    case 77:
603
        cutscene_npc_set_sprites(obj_kanako_npc, 1760, 3491, 3036, 1855, 2056, 1558, 1608, 2931)
604
        break
605
    case 78:
606
        cutscene_wait(2)
607
        break
608
    case 79:
609
        cutscene_npc_walk(1161, 175, obj_ceroba_npc.y, 0.5, "x", "right")
610
        break
611
    case 80:
612
        instance_create(obj_ceroba_npc.x, (obj_ceroba_npc.y - 40), obj_cutscene_ex)
613
        obj_ceroba_npc.action_sprite = true
614
        obj_ceroba_npc.image_speed = 0
615
        obj_ceroba_npc.sprite_index = spr_flashback_ceroba_worried
616
        obj_kanako_npc.action_sprite = true
617
        obj_kanako_npc.sprite_index = spr_flashback_kanako_hurt
618
        cutscene_advance()
619
        break
620
    case 81:
621
        cutscene_sfx_play(snd_monster_damage_hit, 1)
622
        break
623
    case 82:
624
        with (obj_kanako_npc)
625
        {
626
            xstart = x
627
            ystart = y
628
        }
629
        cutscene_advance()
630
    case 83:
631
        obj_kanako_npc.x = obj_kanako_npc.xstart + (irandom_range(-1, 1))
632
        obj_kanako_npc.y = obj_kanako_npc.ystart + (irandom_range(-1, 1))
633
        if cutscene_wait(1.5)
634
        {
635
            instance_destroy(obj_cutscene_ex)
636
            x = xstart
637
            y = ystart
638
        }
639
        break
640
    case 84:
641
        draw_alpha_black = 1
642
        instance_create_depth((obj_kanako_npc.x - 1), (obj_kanako_npc.y + 4), (obj_kanako_npc.depth - 1), obj_flashback_kanako_soul)
643
        obj_flashback_kanako_soul.image_index = obj_flashback_kanako_soul.image_number - 1
644
        obj_flashback_kanako_soul.image_speed = 0
645
        cutscene_advance()
646
        break
647
    case 85:
648
        cutscene_wait(1)
649
        break
650
    case 86:
651
        obj_flashback_kanako_soul.sprite_index = spr_flashback_kanako_soul_broken
652
        cutscene_sfx_play(snd_soul_gameover_hit, 1)
653
        break
654
    case 87:
655
        cutscene_wait(1)
656
        break
657
    case 88:
658
        draw_alpha_black -= 0.05
659
        if (draw_alpha_black <= 0)
660
        {
661
            obj_flashback_kanako_soul.fade_out = true
662
            draw_alpha_black = 0
663
            scene++
664
        }
665
        break
666
    case 89:
667
        cutscene_dialogue()
668
        with (msg)
669
        {
670
            talker[0] = 1161
671
            message[0] = "* NO!!!"
672
            prt[0] = 393
673
            position = 1
674
        }
675
        break
676
    case 90:
677
        cutscene_npc_set_sprites(obj_ceroba_npc, 81, 80, 78, 79, 61, 65, 60, 63)
678
        break
679
    case 91:
680
        obj_kanako_npc.sprite_index = spr_flashback_kanako_hurt_2
681
        obj_kanako_npc.image_speed = 1
682
        if (obj_kanako_npc.image_index >= (obj_kanako_npc.image_number - 1))
683
        {
684
            obj_kanako_npc.image_speed = 0
685
            obj_kanako_npc.image_index = obj_kanako_npc.image_number - 1
686
            scene++
687
        }
688
        break
689
    case 92:
690
        obj_ceroba_npc.x = obj_kanako_npc.x
691
        obj_ceroba_npc.y = obj_kanako_npc.y
692
        cutscene_npc_action_sprite(1161, 2956, 1, true, 0)
693
        obj_kanako_npc.image_alpha = 0
694
        break
695
    case 93:
696
        cutscene_wait(1)
697
        break
698
    case 94:
699
        cutscene_npc_set_sprites(obj_ceroba_npc, 81, 80, 78, 79, 61, 65, 751, 63)
700
        obj_ceroba_npc.npc_direction = "down"
701
        obj_ceroba_npc.action_sprite = false
702
        break
703
    case 95:
704
        cutscene_dialogue()
705
        with (msg)
706
        {
707
            talker[0] = 1161
708
            message[0] = "* No no no no no no-"
709
            message[1] = "* Why didn't it work!?"
710
            message[2] = "* Kanako, wake up."
711
            message[3] = "* Wake up right now!"
712
            message[4] = "* Mommy's here, come on! "
713
            message[5] = "* Hey!"
714
            prt[0] = 381
715
            prt[1] = 381
716
            prt[2] = 2599
717
            prt[3] = 2599
718
            prt[4] = 2599
719
            prt[5] = 2599
720
            position = 1
721
        }
722
        break
723
    case 96:
724
        if cutscene_wait(1)
725
        {
726
        }
727
        break
728
    case 97:
729
        cutscene_dialogue()
730
        with (msg)
731
        {
732
            talker[0] = 1161
733
            message[0] = "* What..."
734
            skippable = false
735
            position = 1
736
        }
737
        draw_alpha = lerp(draw_alpha, 1, 0.05)
738
        if (draw_alpha >= 0.99)
739
        {
740
            draw_alpha = 1
741
            instance_destroy(obj_dialogue)
742
            global.dialogue_open = false
743
            scene++
744
        }
745
        break
746
    case 98:
747
        cutscene_wait(1)
748
        break
749
    case 99:
750
        if (!instance_exists(obj_ceroba_phase_2_overworld_cutscene_dialogue_chujin))
751
        {
752
            msg = instance_create_depth(0, 0, -800, obj_ceroba_phase_2_overworld_cutscene_dialogue_chujin)
753
            scene++
754
        }
755
        with (msg)
756
        {
757
            sndfnt = 108
758
            message[0] = "        What have I done?"
759
            skippable = false
760
            message_timer = 60
761
            position = 1
762
        }
763
        break
764
    case 100:
765
        if (!global.dialogue_open)
766
            cutscene_wait(1)
767
        break
768
    case 101:
769
        global.hotland_flag[2] = 3
770
        global.battle_enemy_name = "ceroba"
771
        global.battling_boss = true
772
        global.battle_start = true
773
        global.sound_carry_overworld = false
774
        scr_battle_save
scr_battle_save

function scr_battle_save() //gml_Script_scr_battle_save { if file_exists("tempsave.sav") file_delete("tempsave.sav") ini_open("tempsave.sav") ini_write_real("Save1", "HP", global.current_hp_self) ini_write_real("Save1", "MAXHP", global.max_hp_self) ini_write_real("Save1", "PP", global.current_pp_self) ini_write_real("Save1", "MAXPP", global.max_pp_self) ini_write_real("Save1", "SP", global.current_sp_self) ini_write_real("Save1", "MAXSP", global.max_sp_self) ini_write_real("Save1", "AT - Primary", global.player_attack) ini_write_real("Save1", "AT - Secondary", global.player_weapon_modifier_attack) ini_write_real("Save1", "DFP", global.player_defense) ini_write_real("Save1", "DFS", global.player_armor_modifier_defense) ini_write_real("Save1", "LV", global.player_level) ini_write_real("Save1", "EXP", global.player_exp) ini_write_real("Save1", "Gold", global.player_gold) ini_write_string("Save1", "Armor", global.player_armor) ini_write_string("Save1", "Ammo", global.player_weapon_modifier) ini_write_string("Save1", "Weapon", global.player_weapon) ini_write_string("Save1", "Accessory", global.player_armor_modifier) ini_write_string("Save1", "rmName", global.saveroom) ini_write_string("Save1", "playerSprite", global.player_sprites) ini_write_real("Save1", "ffight", global.fighting_flowey) if instance_exists(obj_radio) ini_write_real("Save1", "owms", obj_radio.bgm) var inv1 = global.item_slot[1] ini_write_string("Items", "00", global.item_slot[1]) ini_write_string("Items", "01", global.item_slot[2]) ini_write_string("Items", "02", global.item_slot[3]) ini_write_string("Items", "03", global.item_slot[4]) ini_write_string("Items", "04", global.item_slot[5]) ini_write_string("Items", "05", global.item_slot[6]) ini_write_string("Items", "06", global.item_slot[7]) ini_write_string("Items", "07", global.item_slot[8]) if (global.battle_enemy_name == "flowey") { ini_write_real("Special", "0", global.flowey_battle_1_phase) var list_string = ds_list_write(global.flowey_attack_list) ini_write_string("Special", "1", list_string) list_string = ds_list_write(global.flowey_stolen_attack_list) ini_write_string("Special", "2", list_string) list_string = ds_list_write(global.flowey_room_list) ini_write_string("Special", "3", list_string) ini_write_real("Special", "4", global.flowey_attack_number) } else if (global.battle_enemy_name == "flowey2") { for (var i = 0; i < array_length(obj_flowey_battle_final.petal_alive); i++) ini_write_real("petal", string(i), obj_flowey_battle_final.petal_alive[i]) ini_write_real("petal", "count", obj_flowey_battle_final.petal_count) } ini_close() }
()
775
        room_goto(rm_battle Battle room)
776
        scene++
777
        break
778
    case 102:
779
        if (room != rm_battle)
780
            return;
781
        if instance_exists(obj_battle_fade_in_screen)
782
        {
783
            instance_destroy(obj_battle_fade_in_screen)
784
            instance_create_depth(0, 0, -9999, obj_battle_fade_in_screen_white)
785
        }
786
        instance_destroy()
787
        break
788
}