con = -1; customcon = 0; blackall = scr_dark_marker(-10, -10, spr_pixel_white); blackall.image_xscale = 999; blackall.image_yscale = 999; blackall.depth = 4000; blackall.image_blend = c_black; _rotate_vfx = -4; if (i_ex(obj_ch5_LW20W_rotate)) _rotate_vfx = instance_find(obj_ch5_LW20W_rotate, 0); _blur_vfx = -4; _blue_vfx = -4; _white_vfx = -4; _crt_vfx = -4; _slow_text_active = true; _proceed_enabled = false; _proceed_timer = 0; _proceed_time = 20; _proceed_pause = false; _proceed_text_active = false; _whiteout_finished = false; _water_counter = 0; _proceed_counter = 0; _bgm_track = []; _bgm_pitch = 0.6; _bgm_volume = 0.2; _text_rate = 2; oceansong = []; voice_pitch = -1; _shadow_kris = scr_marker(0, 0, spr_kris_sunset_shadow); var shadow_x_kris = obj_mainchara.x + 12; var shadow_y_kris = (obj_mainchara.y + sprite_get_height(obj_mainchara.sprite_index)) - 1; with (_shadow_kris) { x = shadow_x_kris; y = shadow_y_kris; scr_stickto(obj_mainchara, 10); } _shadow_noelle = scr_marker(0, 0, spr_noelle_sunset_shadow_tall); if (global.tempflag[55] == 0) { global.interact = 1; _rotate_vfx = instance_create(0, 0, obj_ch5_LW20W_rotate); with (_rotate_vfx) init(); } else { con = 0; global.interact = 0; with (_rotate_vfx) persistent = false; _blur_vfx = instance_create(0, 0, obj_ch5_LW20W_blur); _blur_vfx.visible = 0; _blue_vfx = instance_create(0, 0, obj_ch5_LW20W_blue); _white_vfx = instance_create(0, 0, obj_ch5_LW20W_white); _crt_vfx = instance_create(0, 0, obj_ch5_LW20W_crt); _crt_vfx.visible = 0; global.tempflag[55] = 0; scr_lerp_instance_var(blackall, "image_alpha", 1, 0, 60); snd_free_all(); oceansong[0] = snd_init("ocean.ogg"); oceansong[1] = mus_loop(oceansong[0]); mus_volume(oceansong[1], 0, 0); mus_volume(oceansong[1], 0.5, 30); var left_block = instance_create(-20, 0, obj_solidblockLight); with (left_block) image_yscale = 18; with (obj_doorB) instance_destroy(); _vfx = instance_create(0, 0, obj_ch5_LW20W_vfx); _noelle_marker = scr_marker(384, 98, spr_noelle_silo_right); with (_noelle_marker) { scr_depth(); image_speed = 0.2; } var shadow_x_noelle = _noelle_marker.x + 14; var shadow_y_noelle = (_noelle_marker.y + sprite_get_height(_noelle_marker.sprite_index)) - 3; with (_shadow_noelle) { x = shadow_x_noelle; y = shadow_y_noelle; } _trigger = instance_create(250, 80, obj_trigger); with (_trigger) image_yscale = 12; } show_choice = function() { con = 10; k_d(1); global.msc = -99; global.choice = -1; global.choicemsg = [stringsetloc("#Stop", "obj_ch5_LW20W_slash_Create_0_gml_136_0"), stringsetloc("#Proceed", "obj_ch5_LW20W_slash_Create_0_gml_137_0"), stringset(""), stringset("")]; scr_speaker("no_name"); msgset(0, "\\C2"); d_make(); }; show_proceed = function() { con = 30; _proceed_pause = false; _proceed_timer = _proceed_time * 30; _white_vfx.init(id); _white_vfx.proceed(); show_debug_message("_proceed_time " + string(_proceed_time) + " | _proceed_timer " + string(_proceed_timer)); _proceed_time = clamp(_proceed_time - 5, 1.5, 20); k_d(1); global.msc = -99; global.choice = -1; global.choicemsg = [stringsetloc("#Proceed", "obj_ch5_LW20W_slash_Create_0_gml_177_0"), stringsetloc("#Proceed", "obj_ch5_LW20W_slash_Create_0_gml_178_0"), stringset(""), stringset("")]; scr_speaker("no_name"); msgset(0, "\\C2"); d_make(); }; trigger_event = function(arg0) { switch (arg0) { case "failed": break; case "whiteout_finished": _whiteout_finished = true; break; } }; lake_chant = function() { if (_water_counter < 6) exit; if (_bgm_track[0] == -4) { _bgm_track[0] = snd_init("ch5_inversion_lake_chant.ogg"); _bgm_track[1] = mus_loop_ext(_bgm_track[0], 1, 1); mus_volume(_bgm_track[1], 0, 0); snd_pitch(_bgm_track[1], 0); } snd_pitch_time(_bgm_track[1], _bgm_pitch, 30); mus_volume(_bgm_track[1], _bgm_volume, 30); _bgm_pitch = clamp(_bgm_pitch - 0.05, 0.05, 1); _bgm_volume = clamp(_bgm_volume + 0.1, 0.1, 1); }; handoff = 0;