1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
switch (scene) |
4 |
{ |
5 |
case -1: |
6 |
if (room == rm_battle) |
7 |
exit; |
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(159, "down"); |
80 |
break; |
81 |
case 11: |
82 |
cutscene_npc_set_sprites(1161, 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(1161, "left"); |
162 |
break; |
163 |
case 18: |
164 |
cutscene_wait(1); |
165 |
break; |
166 |
case 19: |
167 |
cutscene_npc_direction(1161, "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 |
position = 1; |
241 |
} |
242 |
break; |
243 |
case 25.4: |
244 |
if (cutscene_npc_action_sprite(159, 2901, 1, false)) |
245 |
scene = 25.6; |
246 |
obj_kanako_npc.down_sprite_idle = 1608; |
247 |
break; |
248 |
case 25.6: |
249 |
if (cutscene_dialogue()) |
250 |
scene = 26; |
251 |
with (msg) |
252 |
{ |
253 |
talker[0] = 159; |
254 |
talker[3] = 1161; |
255 |
talker[5] = 159; |
256 |
talker[8] = 1161; |
257 |
talker[10] = 159; |
258 |
talker[12] = 1161; |
259 |
message[0] = "* So you did it!"; |
260 |
message[1] = "* Daddy's wish could come# true, right?"; |
261 |
message[2] = "* We could make him# smile! Make him proud of# us!"; |
262 |
message[3] = "* But..."; |
263 |
message[4] = "* He didn't want you to# be a part of this. And I# agree."; |
264 |
message[5] = "* Let me do it!"; |
265 |
message[6] = "* I want to make things# right. Be useful for# once."; |
266 |
message[7] = "* And I trust you to keep# me safe!"; |
267 |
message[8] = "* I... I do believe that# the refined method would# work."; |
268 |
message[9] = "* I just..."; |
269 |
message[10] = "* Please..."; |
270 |
message[11] = "* You promised you would# make his dream come# true."; |
271 |
message[12] = "* I did."; |
272 |
message[13] = "* ..."; |
273 |
prt[0] = 2849; |
274 |
prt[1] = 1250; |
275 |
prt[2] = 1250; |
276 |
prt[3] = 2987; |
277 |
prt[4] = 2987; |
278 |
prt[5] = 683; |
279 |
prt[6] = 575; |
280 |
prt[7] = 1250; |
281 |
prt[8] = 3757; |
282 |
prt[9] = 609; |
283 |
prt[10] = 3113; |
284 |
prt[11] = 6; |
285 |
prt[12] = 609; |
286 |
prt[13] = 2987; |
287 |
switch (message_current) |
288 |
{ |
289 |
case 12: |
290 |
obj_ceroba_npc.npc_direction = "left"; |
291 |
break; |
292 |
} |
293 |
position = 1; |
294 |
} |
295 |
break; |
296 |
case 26: |
297 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(arg0, arg1)
{
var snd = arg0;
var fade_len = arg1;
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); |
298 |
cutscene_wait(1); |
299 |
break; |
300 |
case 27: |
301 |
scr_radio_restart(); |
302 |
cutscene_npc_direction(1161, "up"); |
303 |
break; |
304 |
case 28: |
305 |
cutscene_dialogue(); |
306 |
with (msg) |
307 |
{ |
308 |
talker[0] = 1161; |
309 |
talker[3] = 159; |
310 |
message[0] = "* Very well."; |
311 |
message[1] = "* But I'll make it quick."; |
312 |
message[2] = "* I'll ensure your safety# throughout the# procedure, alright?"; |
313 |
message[3] = "* Mm-hmm!"; |
314 |
message[4] = "* We'll be the heroes of# the Underground!"; |
315 |
message[5] = "* All thanks to you and# daddy!"; |
316 |
prt[0] = 377; |
317 |
prt[1] = 370; |
318 |
prt[2] = 370; |
319 |
prt[3] = 2820; |
320 |
prt[4] = 1250; |
321 |
prt[5] = 2849; |
322 |
position = 1; |
323 |
} |
324 |
break; |
325 |
case 29: |
326 |
cutscene_wait(1); |
327 |
break; |
328 |
case 30: |
329 |
cutscene_dialogue(); |
330 |
with (msg) |
331 |
{ |
332 |
talker[0] = 1161; |
333 |
message[0] = "* Heroes, huh?"; |
334 |
message[1] = "* That has a nice ring to# it."; |
335 |
prt[0] = 395; |
336 |
prt[1] = 372; |
337 |
position = 1; |
338 |
} |
339 |
break; |
340 |
case 31: |
341 |
cutscene_wait(0.25); |
342 |
break; |
343 |
case 32: |
344 |
cutscene_npc_direction(1161, "right"); |
345 |
break; |
346 |
case 33: |
347 |
cutscene_wait(0.75); |
348 |
break; |
349 |
case 34: |
350 |
cutscene_npc_direction(1161, "up"); |
351 |
break; |
352 |
case 35: |
353 |
cutscene_dialogue(); |
354 |
with (msg) |
355 |
{ |
356 |
talker[0] = 1161; |
357 |
message[0] = "* Okay, wait here."; |
358 |
prt[0] = 377; |
359 |
position = 1; |
360 |
} |
361 |
break; |
362 |
case 36: |
363 |
cutscene_npc_set_sprites(1161, 67, 68, 66, 69, 61, 65, 60, 63); |
364 |
break; |
365 |
case 37: |
366 |
cutscene_npc_walk(1161, 186, 159, 3, "y", "right"); |
367 |
if (obj_ceroba_npc.x > obj_kanako_npc.x) |
368 |
obj_kanako_npc.npc_direction = "right"; |
369 |
break; |
370 |
case 38: |
371 |
cutscene_wait(0.5); |
372 |
break; |
373 |
case 39: |
374 |
cutscene_npc_walk(159, obj_kanako_npc.x, 160, 2, "y", "right"); |
375 |
cutscene_advance(); |
376 |
break; |
377 |
case 40: |
378 |
cutscene_npc_action_sprite(1161, 3389, 1, true, 0); |
379 |
if (obj_ceroba_npc.image_index >= 39) |
380 |
{ |
381 |
if (obj_flashback_lab_table.image_index == 0) |
382 |
{ |
383 |
obj_flashback_lab_table.image_speed = 1; |
384 |
obj_flashback_lab_table.image_index = 1; |
385 |
} |
386 |
} |
387 |
break; |
388 |
case 41: |
389 |
cutscene_wait(0.5); |
390 |
break; |
391 |
case 42: |
392 |
cutscene_dialogue(); |
393 |
with (msg) |
394 |
{ |
395 |
talker[0] = 1161; |
396 |
message[0] = "* You will need to stand# very still for this."; |
397 |
message[1] = "* Close your eyes and I# will begin the# fusion-extraction."; |
398 |
prt[0] = 377; |
399 |
prt[1] = 370; |
400 |
position = 1; |
401 |
} |
402 |
break; |
403 |
case 43: |
404 |
cutscene_npc_set_sprites(1161, 67, 68, 66, 3746, 61, 65, 60, 1457); |
405 |
break; |
406 |
case 44: |
407 |
obj_ceroba_npc.action_sprite = false; |
408 |
cutscene_npc_walk(1161, 160, obj_kanako_npc.y, 2, "x", "left"); |
409 |
break; |
410 |
case 45: |
411 |
cutscene_npc_set_sprites(159, 1760, 3612, 3036, 1855, 2056, 2605, 1608, 2931); |
412 |
break; |
413 |
case 46: |
414 |
cutscene_wait(1); |
415 |
break; |
416 |
case 47: |
417 |
cutscene_dialogue(); |
418 |
with (msg) |
419 |
{ |
420 |
talker[0] = 1161; |
421 |
talker[2] = 159; |
422 |
message[0] = "* You may feel a pinch or# two but it'll all be# over before you know it."; |
423 |
message[1] = "* Understood?"; |
424 |
message[2] = "* Understood!"; |
425 |
prt[0] = 370; |
426 |
prt[1] = 370; |
427 |
prt[2] = 1250; |
428 |
position = 1; |
429 |
} |
430 |
break; |
431 |
case 48: |
432 |
cutscene_wait(1); |
433 |
break; |
434 |
case 49: |
435 |
cutscene_npc_action_sprite(1161, 3166, 1, true, 0); |
436 |
break; |
437 |
case 50: |
438 |
cutscene_wait(1); |
439 |
obj_ceroba_npc.left_sprite_idle = 2842; |
440 |
obj_ceroba_npc.npc_direction = "left"; |
441 |
obj_ceroba_npc.action_sprite = false; |
442 |
break; |
443 |
case 51: |
444 |
if (cutscene_dialogue()) |
445 |
scene = 51.5; |
446 |
with (msg) |
447 |
{ |
448 |
talker[0] = 1161; |
449 |
talker[1] = 159; |
450 |
message[0] = "* You truly believe in# this, don't you?"; |
451 |
message[1] = "* Yeah."; |
452 |
prt[0] = 370; |
453 |
prt[1] = 1250; |
454 |
position = 1; |
455 |
} |
456 |
break; |
457 |
case 51.5: |
458 |
if (cutscene_wait(1)) |
459 |
scene = 52; |
460 |
break; |
461 |
case 52: |
462 |
obj_kanako_npc.npc_dynamic_depth = false; |
463 |
obj_kanako_npc.depth = obj_ceroba_npc.depth - 1; |
464 |
cutscene_npc_walk(159, 157, 160, 2, "y", "right"); |
465 |
break; |
466 |
case 53: |
467 |
obj_kanako_npc.image_alpha = 0; |
468 |
cutscene_npc_action_sprite(1161, 3186, 1, true, 0); |
469 |
break; |
470 |
case 54: |
471 |
cutscene_wait(1); |
472 |
break; |
473 |
case 55: |
474 |
cutscene_dialogue(); |
475 |
with (msg) |
476 |
{ |
477 |
talker[0] = 1161; |
478 |
talker[1] = 159; |
479 |
message[0] = "* Love you lots."; |
480 |
message[1] = "* Love you more."; |
481 |
prt[0] = 2987; |
482 |
prt[1] = 2849; |
483 |
position = 1; |
484 |
} |
485 |
break; |
486 |
case 56: |
487 |
cutscene_wait(0.5); |
488 |
break; |
489 |
case 57: |
490 |
if (cutscene_npc_action_sprite(1161, 3354, 1, true)) |
491 |
{ |
492 |
obj_ceroba_npc.sprite_index = spr_flashback_ceroba_kneel; |
493 |
obj_ceroba_npc.image_index = obj_ceroba_npc.image_number - 1; |
494 |
obj_kanako_npc.image_alpha = 1; |
495 |
scene = 57.5; |
496 |
} |
497 |
break; |
498 |
case 57.5: |
499 |
if (cutscene_wait(1)) |
500 |
scene = 58; |
501 |
break; |
502 |
case 58: |
503 |
cutscene_npc_walk(159, 142, 158, 2, "x", "right"); |
504 |
break; |
505 |
case 59: |
506 |
cutscene_wait(2); |
507 |
break; |
508 |
case 60: |
509 |
obj_kanako_npc.image_alpha = 0; |
510 |
cutscene_npc_action_sprite(1161, 457, 1, true, 0); |
511 |
cutscene_advance(); |
512 |
break; |
513 |
case 61: |
514 |
with (obj_ceroba_npc) |
515 |
{ |
516 |
if (image_index >= 6) |
517 |
{ |
518 |
image_speed = 0; |
519 |
other.scene++; |
520 |
} |
521 |
} |
522 |
break; |
523 |
case 62: |
524 |
cutscene_wait(1.5); |
525 |
break; |
526 |
case 63: |
527 |
draw_overlay_alpha += 0.1; |
528 |
if (draw_overlay_alpha >= 1) |
529 |
cutscene_advance(); |
530 |
break; |
531 |
case 64: |
532 |
with (obj_ceroba_npc) |
533 |
{ |
534 |
if (image_speed != 1) |
535 |
{ |
536 |
image_speed = 1; |
537 |
} |
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 |
{ |
560 |
image_speed = 1; |
561 |
} |
562 |
else if (image_index >= (image_number - 1)) |
563 |
{ |
564 |
image_index = image_number - 1; |
565 |
image_speed = 0; |
566 |
other.scene++; |
567 |
} |
568 |
} |
569 |
break; |
570 |
case 69: |
571 |
cutscene_wait(1); |
572 |
break; |
573 |
case 70: |
574 |
obj_flashback_kanako_soul.fade_out = true; |
575 |
scene++; |
576 |
break; |
577 |
case 71: |
578 |
if (!instance_exists(obj_flashback_kanako_soul)) |
579 |
cutscene_advance(); |
580 |
break; |
581 |
case 72: |
582 |
draw_overlay_alpha -= 0.1; |
583 |
if (draw_overlay_alpha <= 0) |
584 |
cutscene_advance(); |
585 |
break; |
586 |
case 73: |
587 |
cutscene_wait(1); |
588 |
break; |
589 |
case 74: |
590 |
if (cutscene_npc_action_sprite(1161, 3012, 1, true, 0)) |
591 |
{ |
592 |
obj_kanako_npc.image_alpha = 1; |
593 |
obj_ceroba_npc.sprite_index = spr_flashback_ceroba_kneel; |
594 |
obj_ceroba_npc.image_index = obj_ceroba_npc.image_number - 1; |
595 |
} |
596 |
break; |
597 |
case 75: |
598 |
cutscene_wait(1); |
599 |
break; |
600 |
case 76: |
601 |
obj_ceroba_npc.left_sprite_idle = 63; |
602 |
cutscene_npc_action_sprite(1161, 3457, 1, true, 0); |
603 |
break; |
604 |
case 77: |
605 |
cutscene_npc_set_sprites(159, 1760, 3491, 3036, 1855, 2056, 1558, 1608, 2931); |
606 |
break; |
607 |
case 78: |
608 |
cutscene_wait(2); |
609 |
break; |
610 |
case 79: |
611 |
cutscene_npc_walk(1161, 175, obj_ceroba_npc.y, 0.5, "x", "right"); |
612 |
break; |
613 |
case 80: |
614 |
instance_create(obj_ceroba_npc.x, obj_ceroba_npc.y - 40, obj_cutscene_ex); |
615 |
obj_ceroba_npc.action_sprite = true; |
616 |
obj_ceroba_npc.image_speed = 0; |
617 |
obj_ceroba_npc.sprite_index = spr_flashback_ceroba_worried; |
618 |
obj_kanako_npc.action_sprite = true; |
619 |
obj_kanako_npc.sprite_index = spr_flashback_kanako_hurt; |
620 |
cutscene_advance(); |
621 |
break; |
622 |
case 81: |
623 |
cutscene_sfx_play(411, 1); |
624 |
break; |
625 |
case 82: |
626 |
with (obj_kanako_npc) |
627 |
{ |
628 |
xstart = x; |
629 |
ystart = y; |
630 |
} |
631 |
cutscene_advance(); |
632 |
case 83: |
633 |
obj_kanako_npc.x = obj_kanako_npc.xstart + irandom_range(-1, 1); |
634 |
obj_kanako_npc.y = obj_kanako_npc.ystart + irandom_range(-1, 1); |
635 |
if (cutscene_wait(1.5)) |
636 |
{ |
637 |
instance_destroy(obj_cutscene_ex); |
638 |
x = xstart; |
639 |
y = ystart; |
640 |
} |
641 |
break; |
642 |
case 84: |
643 |
draw_alpha_black = 1; |
644 |
instance_create_depth(obj_kanako_npc.x - 1, obj_kanako_npc.y + 4, obj_kanako_npc.depth - 1, obj_flashback_kanako_soul); |
645 |
obj_flashback_kanako_soul.image_index = obj_flashback_kanako_soul.image_number - 1; |
646 |
obj_flashback_kanako_soul.image_speed = 0; |
647 |
cutscene_advance(); |
648 |
break; |
649 |
case 85: |
650 |
cutscene_wait(1); |
651 |
break; |
652 |
case 86: |
653 |
obj_flashback_kanako_soul.sprite_index = spr_flashback_kanako_soul_broken; |
654 |
cutscene_sfx_play(242, 1); |
655 |
break; |
656 |
case 87: |
657 |
cutscene_wait(1); |
658 |
break; |
659 |
case 88: |
660 |
draw_alpha_black -= 0.05; |
661 |
if (draw_alpha_black <= 0) |
662 |
{ |
663 |
obj_flashback_kanako_soul.fade_out = true; |
664 |
draw_alpha_black = 0; |
665 |
scene++; |
666 |
} |
667 |
break; |
668 |
case 89: |
669 |
cutscene_dialogue(); |
670 |
with (msg) |
671 |
{ |
672 |
talker[0] = 1161; |
673 |
message[0] = "* NO!!!"; |
674 |
prt[0] = 393; |
675 |
position = 1; |
676 |
} |
677 |
break; |
678 |
case 90: |
679 |
cutscene_npc_set_sprites(1161, 81, 80, 78, 79, 61, 65, 60, 63); |
680 |
break; |
681 |
case 91: |
682 |
obj_kanako_npc.sprite_index = spr_flashback_kanako_hurt_2; |
683 |
obj_kanako_npc.image_speed = 1; |
684 |
if (obj_kanako_npc.image_index >= (obj_kanako_npc.image_number - 1)) |
685 |
{ |
686 |
obj_kanako_npc.image_speed = 0; |
687 |
obj_kanako_npc.image_index = obj_kanako_npc.image_number - 1; |
688 |
scene++; |
689 |
} |
690 |
break; |
691 |
case 92: |
692 |
obj_ceroba_npc.x = obj_kanako_npc.x; |
693 |
obj_ceroba_npc.y = obj_kanako_npc.y; |
694 |
cutscene_npc_action_sprite(1161, 2956, 1, true, 0); |
695 |
obj_kanako_npc.image_alpha = 0; |
696 |
break; |
697 |
case 93: |
698 |
cutscene_wait(1); |
699 |
break; |
700 |
case 94: |
701 |
cutscene_npc_set_sprites(1161, 81, 80, 78, 79, 61, 65, 751, 63); |
702 |
obj_ceroba_npc.npc_direction = "down"; |
703 |
obj_ceroba_npc.action_sprite = false; |
704 |
break; |
705 |
case 95: |
706 |
cutscene_dialogue(); |
707 |
with (msg) |
708 |
{ |
709 |
talker[0] = 1161; |
710 |
message[0] = "* No no no no no no-"; |
711 |
message[1] = "* Why didn't it work!?"; |
712 |
message[2] = "* Kanako, wake up."; |
713 |
message[3] = "* Wake up right now!"; |
714 |
message[4] = "* Mommy's here, come on! "; |
715 |
message[5] = "* Hey!"; |
716 |
prt[0] = 381; |
717 |
prt[1] = 381; |
718 |
prt[2] = 2599; |
719 |
prt[3] = 2599; |
720 |
prt[4] = 2599; |
721 |
prt[5] = 2599; |
722 |
position = 1; |
723 |
} |
724 |
break; |
725 |
case 96: |
726 |
if (cutscene_wait(1)) |
727 |
{ |
728 |
} |
729 |
break; |
730 |
case 97: |
731 |
cutscene_dialogue(); |
732 |
with (msg) |
733 |
{ |
734 |
talker[0] = 1161; |
735 |
message[0] = "* What..."; |
736 |
skippable = false; |
737 |
position = 1; |
738 |
} |
739 |
draw_alpha = lerp(draw_alpha, 1, 0.05); |
740 |
if (draw_alpha >= 0.99) |
741 |
{ |
742 |
draw_alpha = 1; |
743 |
instance_destroy(obj_dialogue); |
744 |
global.dialogue_open = false; |
745 |
scene++; |
746 |
} |
747 |
break; |
748 |
case 98: |
749 |
cutscene_wait(1); |
750 |
break; |
751 |
case 99: |
752 |
if (!instance_exists(obj_ceroba_phase_2_overworld_cutscene_dialogue_chujin)) |
753 |
{ |
754 |
msg = instance_create_depth(0, 0, -800, obj_ceroba_phase_2_overworld_cutscene_dialogue_chujin); |
755 |
scene++; |
756 |
} |
757 |
with (msg) |
758 |
{ |
759 |
sndfnt = 108; |
760 |
message[0] = " What have I done?"; |
761 |
skippable = false; |
762 |
message_timer = 60; |
763 |
position = 1; |
764 |
} |
765 |
break; |
766 |
case 100: |
767 |
if (!global.dialogue_open) |
768 |
cutscene_wait(1); |
769 |
break; |
770 |
case 101: |
771 |
global.hotland_flag[2] = 3; |
772 |
global.battle_enemy_name = "ceroba"; |
773 |
global.battling_boss = true; |
774 |
global.battle_start = true; |
775 |
global.sound_carry_overworld = false; |
776 |
scr_battle_savescr_battle_savefunction 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();
} (); |
777 |
room_goto(rm_battle Battle room); |
778 |
scene++; |
779 |
break; |
780 |
case 102: |
781 |
if (room != rm_battle) |
782 |
exit; |
783 |
if (instance_exists(obj_battle_fade_in_screen)) |
784 |
{ |
785 |
instance_destroy(obj_battle_fade_in_screen); |
786 |
instance_create_depth(0, 0, -9999, obj_battle_fade_in_screen_white); |
787 |
} |
788 |
instance_destroy(); |
789 |
break; |
790 |
} |