if (toaster_active && global.interact == 0 && !d_ex()) { global.flag[1745]++; if (global.flag[1745] >= 300) { snd_play(snd_bell); toaster_complete = true; toaster_active = false; toaster_shine(); with (_toaster) turn_off(); } } if (con < 0) exit; if (con == 0) { var triggered = false; with (_trigger) { if (place_meeting(x, y, obj_mainchara)) triggered = true; } if (triggered) { con = 1; with (_trigger) instance_destroy(); } } if (con == 1 && global.interact == 0 && !d_ex()) { con = 15; global.interact = 1; cutscene_master = scr_cutscene_make(); scr_maincharacters_actors(); to = actor_count + 1; to_actor = instance_create(toriel_npc.x, toriel_npc.y, obj_actor); scr_actor_setup(to, to_actor, "toriel"); to_actor.sprite_index = toriel_npc.sprite_index; c_var_instance(toriel_npc, "visible", false); c_sel(to); c_sprite(spr_toriel_hungover_awake); c_emote("!", 30, 1, 14); c_wait(30); c_sel(to); c_sprite(spr_toriel_hungover_toast_ask); global.msc = -99; global.choice = -1; global.choicemsg = [stringsetloc("#Yes", "obj_ch5_LW02_slash_Step_0_gml_70_0"), stringsetloc("#I'm busy", "obj_ch5_LW02_slash_Step_0_gml_71_0"), stringset(""), stringset("")]; c_speaker("toriel"); c_msgsetloc(0, "\\EB* ..^1. Kris./", "obj_ch5_LW02_slash_Step_0_gml_77_0"); c_msgnextloc("\\EC* Could you be a dear and put some toast on?/", "obj_ch5_LW02_slash_Step_0_gml_78_0"); c_msgnext("\\C2"); c_customfunc(function() { d_make(); }); c_waitcustom(); } if (con == 15 && global.choice != -1 && customcon == 1) { con = -1; customcon = 0; k_d(4); scr_flag_set(1435, global.choice + 1); c_waitcustom_end(); if (global.choice == 0) { c_speaker("toriel"); c_msgsetloc(0, "\\EB* Thank you^1, dear./", "obj_ch5_LW02_slash_Step_0_gml_103_0"); c_msgnextloc("\\EC* ..^1. and^1, don't forget to put honey on it^1, okay^1, honey?/%", "obj_ch5_LW02_slash_Step_0_gml_104_0"); c_talk_wait(); c_customfunc(function() { toaster_shine(); }); } if (global.choice == 1) { c_sel(to); c_sprite(spr_toriel_hungover_toastless); if (scr_flag_get(1436) == 1) { c_speaker("toriel"); c_msgsetloc(0, "\\E4* Busy doing what^1? Flushing the toilet over and over^1? Come on now.../%", "obj_ch5_LW02_slash_Step_0_gml_121_0"); c_talk_wait(); } else { c_speaker("toriel"); c_msgsetloc(0, "\\ED* Too busy^1? I see..^1. then I suppose I will just wither away.../%", "obj_ch5_LW02_slash_Step_0_gml_126_0"); c_talk_wait(); } c_sprite(spr_toriel_hungover_awake); } c_customfunc(function() { global.plot = 10; regain_control(); }); c_sel(kr); c_setxy(419, 132); c_waitcustom(); } if (con == 30 && !d_ex() && customcon == 1) { con = 32; customcon = 0; scr_flag_set(1439, 1); scr_litemremove(19); c_waitcustom_end(); c_customfunc(function() { lose_control(); }); var kr_x_pos = 427; var kr_y_pos = 124; var kr_walktime = scr_calculate_move_distance(kr_actor.x, kr_actor.y, kr_x_pos, kr_y_pos, 2); var kr_walktime_ext = scr_calculate_move_distance(kr_x_pos, kr_y_pos, 407, kr_y_pos, 2); c_sel(kr); c_walkdirect(kr_x_pos, kr_y_pos, kr_walktime); c_delayfacing(kr_walktime + 1, "u"); c_wait(kr_walktime + 15); c_snd_play(snd_item); c_speaker("no_name"); c_msgsetloc(0, "* (You gave Toriel the toast.)/%", "obj_ch5_LW02_slash_Step_0_gml_174_0"); c_talk_wait(); c_sel(to); c_autowalk(0); c_sprite(spr_toriel_hungover_toast_eat); c_imagespeed(0.1); c_sel(kr); c_facing("r"); c_autowalk(0); c_imagespeed(0.2); c_walkdirect_wait(407, kr_y_pos, kr_walktime_ext); c_halt(); c_var_instance(id, "_mogu_active", true); c_wait(15); c_speaker("toriel"); c_msgsetloc(0, "\\EA* (munch^1, munch...)/", "obj_ch5_LW02_slash_Step_0_gml_192_0"); c_msgnextloc("\\E4* Thank you for the honey^1, honey./%", "obj_ch5_LW02_slash_Step_0_gml_193_0"); c_talk_wait(); c_var_instance(id, "_mogu_active", false); c_snd_play(snd_swallow); c_sel(to); c_sprite(spr_toriel_hungover_toast_eat_expressions); c_halt(); c_wait(30); global.msc = -99; global.choice = -1; global.choicemsg = [stringsetloc("#Fine and#dandy", "obj_ch5_LW02_slash_Step_0_gml_210_0"), stringsetloc("#Terrible.", "obj_ch5_LW02_slash_Step_0_gml_211_0"), stringset(""), stringset("")]; c_speaker("toriel"); c_msgsetloc(0, "\\EF* .../", "obj_ch5_LW02_slash_Step_0_gml_217_0"); c_msgnextloc("\\E9* Kris..^1. how did YOU sleep last night^1, honey?/", "obj_ch5_LW02_slash_Step_0_gml_218_0"); c_msgnext("\\C2"); c_customfunc(function() { d_make(); }); c_waitcustom(); } if (_mogu_active) { if (i_ex(to_actor)) { _mogu_buffer--; if (_mogu_buffer <= 0) { if (to_actor.image_index < 1) { _mogu_buffer = 18; snd_stop(snd_swallow); snd_play(snd_swallow); } } } } if (con == 32 && global.choice != -1 && customcon == 1) { con = 33; customcon = 0; k_d(4); c_waitcustom_end(); c_customfunc(function() { scr_flag_set(1746, global.choice + 1); }); if (global.choice == 0) { c_sel(to); c_imageindex(1); c_speaker("toriel"); c_msgsetloc(0, "\\E4* Oh^1, wherever did you learn that wonderful sarcasm from?/", "obj_ch5_LW02_slash_Step_0_gml_266_0"); c_msgnextloc("\\EF* ..^1. really though./%", "obj_ch5_LW02_slash_Step_0_gml_267_0"); c_talk(); c_wait_box(1); c_sel(to); c_imageindex(0); c_wait_talk(); } else { c_sel(to); c_imageindex(1); c_speaker("toriel"); c_msgsetloc(0, "\\EF* ..^1. I see^1. I should have suspected you were upset./", "obj_ch5_LW02_slash_Step_0_gml_281_0"); c_msgnextloc("\\E4* There's only about 80`% as much honey on this as normal./%", "obj_ch5_LW02_slash_Step_0_gml_282_0"); c_talk(); c_wait_box(1); c_sel(to); c_imageindex(3); c_wait_talk(); } c_wait(30); c_sel(to); c_imageindex(3); global.msc = -99; global.choice = -1; global.choicemsg = [stringsetloc("#We were#locked out", "obj_ch5_LW02_slash_Step_0_gml_301_0"), stringsetloc("#You were#way too loud", "obj_ch5_LW02_slash_Step_0_gml_302_0"), stringset(""), stringset("")]; c_speaker("toriel"); c_msgsetloc(0, "\\E8* ..^1. I got a bit carried away last night^1, didn't I?/", "obj_ch5_LW02_slash_Step_0_gml_308_0"); c_msgnext("\\C2"); c_customfunc(function() { d_make(); if (global.lang == "ja") scr_choiceradjust(11); }); c_waitcustom(); } if (con == 33 && global.choice != -1 && customcon == 1) { con = -1; customcon = 0; k_d(4); c_waitcustom_end(); c_customfunc(function() { scr_flag_set(1747, global.choice + 1); }); c_sel(to); c_imageindex(0); if (global.choice == 0) { c_speaker("toriel"); c_msgsetloc(0, "\\E3* Huh...?/", "obj_ch5_LW02_slash_Step_0_gml_338_0"); c_msgnextloc("\\E4* Kris^1, is that^1, some sort of joke^1? Haha./", "obj_ch5_LW02_slash_Step_0_gml_339_0"); c_msgnextloc("\\E1* Kris^1, you know where I hide the extra house key./", "obj_ch5_LW02_slash_Step_0_gml_340_0"); c_msgnextloc("\\E8* ..^1. I was surprised to find the house empty when I came home at 7./", "obj_ch5_LW02_slash_Step_0_gml_341_0"); c_msgnextloc("\\E1* I tried calling you straight away./", "obj_ch5_LW02_slash_Step_0_gml_342_0"); c_msgnextloc("\\E6* But your phone..^1. I could not..^1. get through to it./", "obj_ch5_LW02_slash_Step_0_gml_343_0"); c_msgnextloc("\\E1* Kris^1, did you take the ICE-E charger^1? You know it does not work./", "obj_ch5_LW02_slash_Step_0_gml_344_0"); c_msgnextloc("\\EF* Anyhow^1, I was very worried^1. I was about to go looking for you.../", "obj_ch5_LW02_slash_Step_0_gml_345_0"); c_msgnextloc("\\E8* But Mr. Sans told me..^1. he saw you and Susie..^1. well.../", "obj_ch5_LW02_slash_Step_0_gml_346_0"); c_msgnextloc("\\E9* You know^1. Hanging out./", "obj_ch5_LW02_slash_Step_0_gml_347_0"); c_msgnextloc("\\EE* ..^1. and^1, well^1. He convinced me^1. Perhaps^1, I should leave you be./%", "obj_ch5_LW02_slash_Step_0_gml_348_0"); c_talk(); c_wait_box(1); c_sel(to); c_imageindex(3); c_wait_box(2); c_sel(to); c_imageindex(1); c_wait_box(3); c_sel(to); c_imageindex(0); c_wait_box(5); c_sel(to); c_imageindex(1); c_wait_box(6); c_sel(to); c_imageindex(0); c_wait_box(8); c_sel(to); c_imageindex(1); c_wait_box(11); c_sel(to); c_imageindex(0); c_wait_box(12); c_sel(to); c_imageindex(3); c_wait_box(13); c_sel(to); c_imageindex(0); c_wait_talk(); } else { c_speaker("toriel"); c_msgsetloc(0, "\\E4* Oh..^1. you mean our joke marathon?/", "obj_ch5_LW02_slash_Step_0_gml_391_0"); c_msgnextloc("\\E0* Haha^1, I had not had one of those in ages.../", "obj_ch5_LW02_slash_Step_0_gml_392_0"); c_msgnextloc("\\E4* Kris^1, we were really hoping you would join^1, too./", "obj_ch5_LW02_slash_Step_0_gml_393_0"); c_msgnextloc("\\EE* ..^1. I know you used to like those^1, honey./", "obj_ch5_LW02_slash_Step_0_gml_394_0"); c_msgnextloc("\\E8* .../", "obj_ch5_LW02_slash_Step_0_gml_395_0"); c_msgnextloc("\\EF* Susie.../", "obj_ch5_LW02_slash_Step_0_gml_396_0"); c_msgnextloc("\\E8* I said some strange things to her last night.../", "obj_ch5_LW02_slash_Step_0_gml_397_0"); c_msgnextloc("\\EF* Kris^1? Was she okay^1? Did she really go home?/", "obj_ch5_LW02_slash_Step_0_gml_398_0"); c_msgnextloc("\\EF* I.../", "obj_ch5_LW02_slash_Step_0_gml_399_0"); c_msgnextloc("\\EE* ..^1. it was really nice having her over last time./", "obj_ch5_LW02_slash_Step_0_gml_400_0"); c_msgnextloc("\\EF* I hope she still feels like she can come over./", "obj_ch5_LW02_slash_Step_0_gml_401_0"); c_msgnextloc("\\E9* ..^1. you hope so too^1, right^1, Kris?/%", "obj_ch5_LW02_slash_Step_0_gml_402_0"); c_talk(); c_wait_box(1); c_sel(to); c_imageindex(2); c_wait_box(2); c_sel(to); c_imageindex(0); c_wait_box(4); c_sel(to); c_imageindex(1); c_wait_box(6); c_sel(to); c_imageindex(3); c_wait_box(7); c_sel(to); c_imageindex(0); c_wait_box(8); c_sel(to); c_imageindex(1); c_wait_box(9); c_sel(to); c_imageindex(2); c_wait_box(10); c_sel(to); c_imageindex(0); c_wait_talk(); } c_wait(30); c_sel(to); c_sprite(spr_toriel_hungover_toast_eat_expressions); c_halt(); c_speaker("toriel"); c_msgsetloc(0, "\\E0* ..^1. oh^1, the Festival is later today^1, is it not?/", "obj_ch5_LW02_slash_Step_0_gml_447_0"); c_msgnextloc("\\E1* A shame Asriel could not be here to go with you./", "obj_ch5_LW02_slash_Step_0_gml_448_0"); c_msgnextloc("\\E4* You two had so much fun at those together./", "obj_ch5_LW02_slash_Step_0_gml_449_0"); c_msgnextloc("\\E9* You would win so many whistles and toys.../", "obj_ch5_LW02_slash_Step_0_gml_450_0"); c_msgnextloc("\\E3* ..^1. which I had to^1, um.../", "obj_ch5_LW02_slash_Step_0_gml_451_0"); c_msgnextloc("\\E5* Hide^1, because you two and your father made so much noise./%", "obj_ch5_LW02_slash_Step_0_gml_452_0"); c_talk(); c_wait_box(1); c_sel(to); c_imageindex(1); c_wait_box(2); c_imageindex(2); c_wait_box(3); c_imageindex(0); c_wait_box(4); c_imageindex(1); c_wait_box(5); c_imageindex(3); c_wait_talk(); c_wait(15); c_snd_play(snd_swallow); c_sel(to); c_sprite(spr_toriel_hungover_awake); c_wait(30); c_speaker("toriel"); c_msgsetloc(0, "\\E1* .../", "obj_ch5_LW02_slash_Step_0_gml_481_0"); c_msgnextloc("\\EE* ..^1. just a little while before we go to bring Asriel home./%", "obj_ch5_LW02_slash_Step_0_gml_482_0"); c_talk(); c_wait_box(1); c_sel(to); c_sprite(spr_toriel_hungover_toast_ask); c_wait_talk(); c_wait(45); c_speaker("toriel"); c_msgsetloc(0, "\\EF* .../", "obj_ch5_LW02_slash_Step_0_gml_494_0"); c_msgnextloc("\\E0* I wonder if it would be nice to surprise him early....?/", "obj_ch5_LW02_slash_Step_0_gml_495_0"); c_msgnextloc("\\E4* Appear suddenly at his dormitory^1. What would he think^1? Haha./", "obj_ch5_LW02_slash_Step_0_gml_496_0"); c_msgnextloc("\\EE* Just a..^1. crazy thought./%", "obj_ch5_LW02_slash_Step_0_gml_497_0"); c_talk(); c_wait_box(1); c_sprite(spr_toriel_hungover_awake); c_wait_box(2); c_sprite(spr_toriel_hungover_toast_ask); c_wait_box(3); c_sprite(spr_toriel_hungover_awake); c_wait_talk(); c_wait(5); c_sel(to); c_sprite(spr_toriel_hungover); c_wait(15); c_sel(kr); c_autowalk(1); c_walkdirect_wait(407, 140, 12); c_pannable(1); c_panobj(kr_actor, 20); c_wait(21); c_pannable(0); c_sel(kr); c_facing("d"); c_customfunc(function() { global.plot = 11; regain_control(); }); c_waitcustom(); } if (con == 40 && !d_ex() && customcon == 1) { con = -1; customcon = 0; c_waitcustom_end(); c_customfunc(function() { lose_control(); }); c_speaker("toriel"); c_msgsetloc(0, "\\E4* Kris^1, honey..^1. toast^1, honey..^1. honey toast^1. Please./%", "obj_ch5_LW02_slash_Step_0_gml_554_0"); c_talk_wait(); c_customfunc(function() { regain_control(); }); c_waitcustom(); } if (con == 45 && !d_ex() && customcon == 1) { con = -1; customcon = 0; c_waitcustom_end(); c_customfunc(function() { lose_control(); }); var kr_x_pos = 427; var kr_y_pos = 124; var kr_walktime = scr_calculate_move_distance(kr_actor.x, kr_actor.y, kr_x_pos, kr_y_pos, 2); var kr_walktime_ext = scr_calculate_move_distance(kr_x_pos, kr_y_pos, 407, kr_y_pos, 2); c_sel(kr); c_walkdirect_wait(407, kr_y_pos, kr_walktime_ext); c_halt(); c_facing("r"); c_wait(15); c_sel(to); c_sprite(spr_toriel_hungover_toastless); c_speaker("toriel"); c_msgsetloc(0, "\\E3* Kris.../", "obj_ch5_LW02_slash_Step_0_gml_603_0"); c_msgnextloc("\\ED* You know I didn't raise you to waste food.../", "obj_ch5_LW02_slash_Step_0_gml_604_0"); c_msgnextloc("\\EF* .../%", "obj_ch5_LW02_slash_Step_0_gml_605_0"); c_talk_wait(); c_sel(to); c_sprite(spr_toriel_hungover_awake); c_sel(kr); c_autowalk(1); c_walkdirect_wait(407, 140, 12); c_pannable(1); c_panobj(kr_actor, 20); c_wait(21); c_pannable(0); c_sel(kr); c_facing("d"); c_customfunc(function() { global.plot = 11; regain_control(); }); c_waitcustom(); } if (con == 48 && !d_ex() && customcon == 1) { con = -1; customcon = 0; c_waitcustom_end(); c_customfunc(function() { lose_control(); }); var kr_x_pos = 427; var kr_y_pos = 124; var kr_walktime = scr_calculate_move_distance(kr_actor.x, kr_actor.y, kr_x_pos, kr_y_pos, 2); var kr_walktime_ext = scr_calculate_move_distance(kr_x_pos, kr_y_pos, 407, kr_y_pos, 2); c_sel(kr); c_walkdirect_wait(407, kr_y_pos, kr_walktime_ext); c_halt(); c_facing("r"); c_wait(15); c_sel(to); c_sprite(spr_toriel_hungover_awake); c_speaker("toriel"); c_msgsetloc(0, "\\E4* Kris? Where's the toast^1, honey?/", "obj_ch5_LW02_slash_Step_0_gml_663_0_b"); c_msgnextloc("\\E1* .../", "obj_ch5_LW02_slash_Step_0_gml_664_0_b"); c_msgnextloc("\\E3* You don't remember...?/", "obj_ch5_LW02_slash_Step_0_gml_665_0"); c_msgnextloc("\\E5* .../%", "obj_ch5_LW02_slash_Step_0_gml_666_0"); c_talk_wait(); c_sel(kr); c_autowalk(1); c_walkdirect_wait(407, 140, 12); c_pannable(1); c_panobj(kr_actor, 20); c_wait(21); c_pannable(0); c_sel(kr); c_facing("d"); c_customfunc(function() { global.plot = 11; regain_control(); }); c_waitcustom(); } if (con == 50 && !d_ex() && customcon == 1) { con = -1; customcon = 0; c_waitcustom_end(); c_customfunc(function() { lose_control(); }); c_sel(to); c_sprite(spr_toriel_hungover_awake); c_speaker("toriel"); c_msgsetloc(0, "\\E0* Go have fun at the Festival^1, honey./", "obj_ch5_LW02_slash_Step_0_gml_583_0"); c_msgnextloc("\\E9* I am certain Susie would love to go with you./%", "obj_ch5_LW02_slash_Step_0_gml_584_0"); c_talk_wait(); c_customfunc(function() { regain_control(); }); c_waitcustom(); } if (con == 52 && !d_ex() && customcon == 1) { con = -1; customcon = 0; c_waitcustom_end(); c_customfunc(function() { lose_control(); }); c_sel(to); c_sprite(spr_toriel_hungover_toastless); c_speaker("toriel"); c_msgsetloc(0, "\\E5* Kris!^1! That was just a joke!^1! You do not have to keep flushing!!/", "obj_ch5_LW02_slash_Step_0_gml_613_0"); c_msgnextloc("\\ED* Everyone in this family thinks they are just so funny!!/%", "obj_ch5_LW02_slash_Step_0_gml_614_0"); c_talk_wait(); c_customfunc(function() { scr_flag_set(1436, 3); regain_control(); }); c_waitcustom(); } if (con == 60 && !d_ex() && global.interact == 0) { con = 61; global.interact = 1; with (_shine_marker) instance_destroy(); _shine_marker = -4; scr_speaker("no_name"); msgsetloc(0, "* (You put the toast in the microwave toaster and set it to \"toast\".)/", "obj_ch5_LW02_slash_Step_0_gml_637_0"); msgnextloc("* (It will take 10 seconds for the toast to be done.)/%", "obj_ch5_LW02_slash_Step_0_gml_638_0"); d_make(); } if (con == 61 && !d_ex()) { con = 100; scr_flag_set(1437, 1); toaster_active = true; global.flag[1745] = 0; } if (con == 70 && !d_ex() && global.interact == 0) { con = 71; global.interact = 1; toaster_active = false; scr_speaker("no_name"); msgsetloc(0, "* (You looked at the toaster.)/", "obj_ch5_LW02_slash_Step_0_gml_663_0"); msgnextloc("* (Doing this somehow makes the toast take longer to finish.)/%", "obj_ch5_LW02_slash_Step_0_gml_664_0"); d_make(); } if (con == 71 && !d_ex()) { con = 100; scr_flag_set(1438, 1); toaster_active = true; } if (con == 72 && !d_ex() && global.interact == 0) { con = 100; global.interact = 1; with (_shine_marker) instance_destroy(); scr_litemget(19); global.writersnd[0] = snd_item; scr_speaker("no_name"); msgsetloc(0, "* (You took out the toast and carefully put honey on it.)/", "obj_ch5_LW02_slash_Step_0_gml_691_0"); msgnextloc("\\S0* (You got the Honey Toast.)/%", "obj_ch5_LW02_slash_Step_0_gml_692_0"); d_make(); } if (con == 74 && !d_ex() && global.interact == 0) { con = 75; global.interact = 1; scr_speaker("no_name"); msgsetloc(0, "* (It's a toaster that toasts toast^1, just like all the other ones.)/", "obj_ch5_LW02_slash_Step_0_gml_704_0"); msgnextloc("* (..^1. or^1, rather^1, a microwave toaster oven.)/%", "obj_ch5_LW02_slash_Step_0_gml_705_0"); d_make(); } if (con == 75 && !d_ex()) { con = 0; global.interact = 0; } if (con == 90 && !d_ex() && customcon == 1) { con = 100; customcon = 0; global.facing = 0; c_waitcustom_end(); c_pannable(1); c_panobj(kr_actor, 15); c_wait(16); c_pannable(0); c_sel(kr); c_facing("d"); c_var_instance(toriel_npc, "visible", true); c_actortokris(); c_actortocaterpillar(); c_terminatekillactors(); } if (con == 100 && !d_ex()) { con = -1; global.interact = 0; }