if (resetcamera == true) { resetcameratimer++; if (resetcameratimer == 1) resetcamloc = scr_getcam(); fadecaterpillars(1); var resetcamtime = 15; var cx = camerax(); var cy = cameray(); var targ = scr_darkcameraideal(); var ease = { x: round(lerp_out_cubic(resetcamloc.x, targ.x, resetcameratimer / resetcamtime)), y: round(lerp_out_cubic(resetcamloc.y, targ.y, resetcameratimer / resetcamtime)) }; camera_setxy(ease.x, ease.y); if (resetcameratimer >= resetcamtime) { with (obj_caterpillarchara) image_alpha = 1; with (obj_mainchara) image_alpha = 1; resetcamera = false; obj_mainchara.cutscene = false; } } if (updatedfriends == 1) { if (global.interact == 0 && scr_trigcheck("friendupdate")) { global.interact = 1; updatedfriends = 2; scr_speaker("no_name"); var dialoguerStrings = []; var lost1 = false; for (var i = 0; i < array_length(friendsgained); i++) { var str = stringsetsubloc("* (You can now take a break with ~1!)/", friendsgained[i], "obj_dw_fcastle_cafe_slash_Step_2_gml_88_0"); if (i != 0) str = stringsetsubloc("* (You can also take a break with ~1!)/", friendsgained[i], "obj_dw_fcastle_cafe_slash_Step_2_gml_89_0"); array_push(dialoguerStrings, str); } for (var i = 0; i < array_length(friendslost); i++) { var str = stringsetsubloc("* (Due to your actions^1, ~1 won't hang out...)/", friendslost[i], "obj_dw_fcastle_cafe_slash_Step_2_gml_95_0"); if (i != 0) str = stringsetsubloc("* (~1 won't either...)/", friendslost[i], "obj_dw_fcastle_cafe_slash_Step_2_gml_96_0"); array_push(dialoguerStrings, str); if (!lost1) { scr_msgno_func(array_length(dialoguerStrings) - 1, function() { snd_play(snd_glassbreak); }); } } global.msgno = 0; var count = array_length(dialoguerStrings); for (var i = 0; i < count; i++) { global.msg[i] = dialoguerStrings[i]; if (i == (count - 1)) global.msg[i] = dialoguerStrings[i] + "%"; } d_make(); } } if (updatedfriends == 2 && !d_ex()) { global.flag[1856] = currentresult_bitflagval; updatedfriends = 0; global.interact = 0; }