if (con < 0) exit; if (con == 10 && !d_ex() && global.interact == 0) { con = 90; global.interact = 1; cutscene_master = scr_cutscene_make(); scr_maincharacters_actors(); sa = actor_count + 1; sa_actor = instance_create(sans_npc.x, sans_npc.y, obj_actor); scr_actor_setup(sa, sa_actor, "sans"); sa_actor.sprite_index = sans_npc.sprite_index; c_var_instance(sans_npc, "visible", 0); var kr_x_pos = 1130; var kr_y_pos = 113; var kr_walktime = scr_calculate_move_distance(kr_actor.x, kr_actor.y, kr_x_pos, kr_y_pos, 2); c_sel(kr); c_walkdirect(kr_x_pos, kr_y_pos, kr_walktime); c_delayfacing(kr_walktime + 1, "u"); var su_x_pos = kr_x_pos - 42; var su_y_pos = kr_y_pos - 6; var su_walktime = scr_calculate_move_distance(su_actor.x, su_actor.y, su_x_pos, su_y_pos, 2); if (su_actor.y < 88 || su_actor.x >= 1125) { c_sel(su); c_walkdirect_wait(su_actor.x, su_y_pos, 12); } c_sel(su); c_walkdirect(su_x_pos, su_y_pos, su_walktime); c_delayfacing(su_walktime + 1, "u"); var no_x_pos = kr_x_pos - 70; var no_y_pos = kr_y_pos - 9; var no_walktime = scr_calculate_move_distance(no_actor.x, no_actor.y, no_x_pos, no_y_pos, 2); if (no_actor.y < 90 || no_actor.x >= 1125) { c_sel(no); c_walkdirect_wait(1125, 90, 12); } c_sel(no); c_walkdirect(no_x_pos, no_y_pos, no_walktime); c_delayfacing(no_walktime + 1, "u"); c_pannable(1); c_pan_fancy(950, cameray(), 16); c_wait_if(su_actor, "y", ">=", su_y_pos); c_wait_if(no_actor, "y", ">=", no_y_pos); c_wait(30); c_speaker("sans"); c_msgsetloc(0, "\\E3* ice cream^1, get your ice cream./", "obj_town_mid_sans_slash_Step_0_gml_52_0"); c_msgnextloc("\\E5* ..^1. you can get my ice cream too./", "obj_town_mid_sans_slash_Step_0_gml_53_0"); c_msgnextloc("\\E2* just $1. how about it?/", "obj_town_mid_sans_slash_Step_0_gml_54_0"); c_facenext("susie", 0); c_msgnextloc("\\E0* Hmm..^1. got anything purple?/", "obj_town_mid_sans_slash_Step_0_gml_56_0"); c_facenext("noelle", "0"); c_msgnextloc("\\E0* I'll have^1, um..^1. oh^1, the holiday twist!/", "obj_town_mid_sans_slash_Step_0_gml_58_0"); c_facenext("sans", 2); c_msgnextloc("\\E2* ok^1, wait a sec./%", "obj_town_mid_sans_slash_Step_0_gml_60_0"); c_talk(); c_wait_box(4); c_sel(su); c_autowalk(0); c_sprite(spr_susie_head_down_left_more); c_wait_box(6); c_sel(no); c_autowalk(0); c_sprite(spr_noelle_head_down); c_imageindex(1); c_wait_box(8); c_sel(su); c_facing("u"); c_sel(no); c_autowalk(1); c_facing("u"); c_halt(); c_wait_talk(); c_sel(sa); c_facing("u"); c_wait(30); c_sprite(spr_sans_ice_cream_hold_many); c_speaker("sans"); c_msgsetloc(0, "\\E5* ok^1, here you go^1. one for everyone./%", "obj_town_mid_sans_slash_Step_0_gml_94_0"); c_talk_wait(); c_sel(sa); c_sprite(spr_sans_ice_cream_hold); c_snd_play(snd_bump); c_sel(no); c_autowalk(0); c_sprite(spr_noelle_ice_cream_take); c_halt(); c_delaycmd(4, "imageindex", 1); c_sel(su); c_sprite(spr_susie_ice_cream_take); c_halt(); c_delaycmd(4, "imageindex", 1); c_wait(30); c_sel(sa); c_autowalk(0); c_sprite(spr_sans_ice_cream_eat); c_imagespeed(0.1); c_sel(no); c_sprite(spr_noelle_ice_cream_give); c_halt(); c_sel(su); c_sprite(spr_susie_ice_cream_hold_right); c_sel(kr); c_facing("l"); c_speaker("susie"); c_msgsetloc(0, "\\EY* Here^1, Kris^1. You can lick the melted parts off my hand./", "obj_town_mid_sans_slash_Step_0_gml_133_0"); c_facenext("noelle", "3"); c_msgnextloc("\\E3* Umm^1, here^1, Kris^1. Just have mine.../%", "obj_town_mid_sans_slash_Step_0_gml_135_0"); c_talk(); c_wait_box(2); c_sel(no); c_sprite(spr_noelle_ice_cream_smile); c_wait_talk(); c_sel(no); c_halt(); c_autowalk(0); c_sprite(spr_noelle_ice_cream_give); c_wait(6); c_imageindex(1); c_wait(15); c_snd_play(snd_bump); c_sel(kr); c_sprite(spr_kris_ice_cream); c_sel(no); c_sprite(spr_noelle_walk_right_lw); c_halt(); c_wait(30); c_sel(kr); c_facing("l"); c_snd_play(snd_reverse_splat); c_wait(45); c_sel(su); c_sprite(spr_susie_ice_cream_eat_left); c_speaker("susie"); c_msgsetloc(0, "\\E2* Cool^1, guess that means you're sharing with me?/", "obj_town_mid_sans_slash_Step_0_gml_174_0"); c_facenext("noelle", 23); c_msgnextloc("\\EN* H-huh^1? I.../%", "obj_town_mid_sans_slash_Step_0_gml_176_0"); c_talk(); c_wait_box(2); c_sel(no); c_sprite(spr_noelle_surprise_right_blush); c_wait_talk(); c_sel(sa); c_sprite(spr_sans_d); c_halt(); c_wait(30); c_sel(no); c_sprite(spr_noelle_surprise_right); c_speaker("sans"); c_msgsetloc(0, "\\E2* hey^1, that's 3 creams^1. looks like you qualify for a punch card./", "obj_town_mid_sans_slash_Step_0_gml_196_0"); c_facenext("susie", 6); c_msgnextloc("\\E6* Huh^1? What do we have to do?/", "obj_town_mid_sans_slash_Step_0_gml_198_0"); c_facenext("sans", 1); c_msgnextloc("\\E1* not much^1. just take this marker.../", "obj_town_mid_sans_slash_Step_0_gml_200_0"); c_msgnextloc("\\E2* and draw your friends on here so i'll remember ya./", "obj_town_mid_sans_slash_Step_0_gml_201_0"); c_facenext("susie", 2); c_msgnextloc("\\E2* Easy./%", "obj_town_mid_sans_slash_Step_0_gml_203_0"); c_talk(); c_wait_box(2); c_sel(su); c_sprite(spr_susie_ice_cream_take); c_imageindex(1); c_sel(no); c_facing("u"); c_sel(kr); c_facing("u"); c_wait_talk(); c_sel(su); c_sprite(spr_susie_ice_cream_eat_left); c_halt(); c_var_lerp_to("image_index", 4, 20); c_wait_if(su_actor, "image_index", ">=", 2); c_snd_play(snd_swallow); c_wait(15); c_facing("u"); c_halt(); c_wait(15); c_sprite(spr_susie_ice_cream_take); c_imageindex(1); c_wait(6); if (scr_flag_get(1216) > 0) { c_wait(30); c_sel(kr); c_facing("l"); c_sel(su); c_sprite(spr_susie_paper_look_right_up); c_wait(15); c_speaker("susie"); c_msgsetloc(0, "\\E6* (Huh^1? Ralsei said that ice cream was from him...?)/", "obj_town_mid_sans_slash_Step_0_gml_250_0"); c_msgnextloc("\\EQ* (Heh...)/", "obj_town_mid_sans_slash_Step_0_gml_251_0"); c_msgnextloc("\\E9* (You know that means I gotta draw him on^1, too.)/%", "obj_town_mid_sans_slash_Step_0_gml_252_0"); c_talk(); c_wait_box(1); c_sprite(spr_susie_card_write); c_imageindex(0); c_wait_talk(); c_sel(kr); c_facing("u"); } c_autowalk(0); c_sel(su); c_snd_play(snd_window_draw_squeak); c_sprite(spr_susie_card_write); c_imagespeed(0.2); c_wait(30); c_halt(); c_wait(15); c_sprite(spr_susie_ice_cream_take); c_imageindex(0); c_wait(6); c_imageindex(1); c_speaker("susie"); c_msgsetloc(0, "\\EA* How's this?/%", "obj_town_mid_sans_slash_Step_0_gml_283_0"); c_talk_wait(); c_sel(su); c_facing("u"); c_halt(); c_wait(30); c_speaker("sans"); c_msgsetloc(0, "\\E5* perfect./%", "obj_town_mid_sans_slash_Step_0_gml_293_0"); c_talk_wait(); c_sel(sa); c_facing("u"); c_snd_play(snd_noise); c_wait(15); c_facing("d"); c_wait(30); var small_text = stringsetloc("I wanted more#ice cream!!", "obj_town_mid_sans_slash_Step_0_gml_305_0"); var sf = { x: "right", y: "bottom" }; if (global.lang == "ja") { sf = { x: 346, y: 238 }; } scr_smallface(0, "susie", 22, sf.x, sf.y, small_text); c_speaker("susie"); c_msgsetloc(0, "\\E7* ..^1. so what do we get?/", "obj_town_mid_sans_slash_Step_0_gml_309_0"); c_facenext("sans", 2); c_msgnextloc("\\E2* well^1, nothing./", "obj_town_mid_sans_slash_Step_0_gml_311_0"); c_facenext("susie", "g"); c_msgnextloc("\\Eg* ..^1. what?/", "obj_town_mid_sans_slash_Step_0_gml_313_0"); c_facenext("sans", 3); c_msgnextloc("\\E3* just told you to fill out the card./", "obj_town_mid_sans_slash_Step_0_gml_315_0"); c_msgnextloc("\\E5* i didn't say it was good for anything./", "obj_town_mid_sans_slash_Step_0_gml_316_0"); c_facenext("susie", "q"); c_msgnextloc("\\Eq* .../", "obj_town_mid_sans_slash_Step_0_gml_318_0"); c_facenext("noelle", 27); c_msgnextloc("\\ER* Hahahaha!^1! Susie^1, your face!!\\f0/%", "obj_town_mid_sans_slash_Step_0_gml_320_0"); c_talk(); c_wait_box(10); c_sel(no); c_autowalk(0); c_sprite(spr_noelle_laugh_right); c_imagespeed(0.2); c_wait_talk(); c_customfunc(function() { scr_flag_set(1344, 1); global.plot = 150; }); c_sel(no); c_facing("r"); c_halt(); c_var_instance(sans_npc, "visible", 1); c_waitcustom(); } if (con == 20 && !d_ex() && global.interact == 0) { con = 22; global.interact = 1; global.msc = -99; global.choice = -1; global.choicemsg[0] = stringsetloc("More#ice cream", "obj_town_mid_sans_slash_Step_0_gml_357_0"); global.choicemsg[1] = stringsetloc("#Brother", "obj_town_mid_sans_slash_Step_0_gml_358_0"); global.choicemsg[2] = stringsetloc("Nothing", "obj_town_mid_sans_slash_Step_0_gml_359_0"); global.choicemsg[3] = stringset(""); scr_speaker("sans"); msgsetloc(0, "\\E2* anything else?/", "obj_town_mid_sans_slash_Step_0_gml_363_0"); msgnext("\\C3"); var d = d_make(); d.side = 0; if (global.lang == "ja") scr_choiceradjust(11, undefined, undefined, undefined, 26); } if (con == 22 && global.choice != -1) { con = 100; k_d(3); if (global.choice == 0) { scr_speaker("sans"); msgsetloc(0, "\\E5* screamin' for the cream^1, huh./", "obj_town_mid_sans_slash_Step_0_gml_378_0"); msgnextloc("\\E1* well^1, it takes a while to make./", "obj_town_mid_sans_slash_Step_0_gml_379_0"); msgnextloc("\\E5* why not hit the beach in the meantime?/", "obj_town_mid_sans_slash_Step_0_gml_380_0"); msgnextloc("\\E2* could kill some time 'til the action happens..^1. y'know?/%", "obj_town_mid_sans_slash_Step_0_gml_381_0"); } else if (global.choice == 1) { scr_speaker("sans"); msgsetloc(0, "\\E3* yeah^1, my brother^1. he'd really like the Festival./", "obj_town_mid_sans_slash_Step_0_gml_386_0"); msgnextloc("\\E1* ..^1. too bad he couldn't make it this year./", "obj_town_mid_sans_slash_Step_0_gml_387_0"); msgnextloc("\\E5* least i got him a little souvenir^1. ..^1. thanks./%", "obj_town_mid_sans_slash_Step_0_gml_388_0"); } else { scr_speaker("sans"); msgsetloc(0, "\\E2* enjoy the fest./%", "obj_town_mid_sans_slash_Step_0_gml_392_0"); } var d = d_make(); d.side = 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, 20); c_wait(21); c_pannable(0); c_sel(kr); c_facing("d"); c_actortokris(); c_actortocaterpillar(); c_terminatekillactors(); } if (con == 100 && !d_ex() && !i_ex(obj_cutscene_master)) { con = -1; global.interact = 0; }