con = -1; customcon = 0; catti_hide = false; catti_shadow = 0; _balloon_sprite = -4; _juice_track = []; _alphys_spin = false; _alphys_spin_timer = 0; random_shake = false; shake_timer = 0; noelle_shake = false; noelle_shake_timer = 0; noelle_shake_x = 0; noelle_shake_y = 0; grape_marker = scr_marker(228, 155, spr_festival_scarychurch_items_bowl); with (grape_marker) scr_depth(); alvin_npc = instance_create(288, 66, obj_npc_room); with (alvin_npc) { sprite_index = spr_npc_alvin_vampire; extflag = "church_alvin"; } var poem_readable = instance_create(323, 82, obj_readable_room1); with (poem_readable) extflag = "church_poem"; var juice_readable = instance_create(160, 160, obj_readable_room1); with (juice_readable) { extflag = "church_juice"; image_xscale = 3; } var eyeballs_readable = instance_create(233, 160, obj_readable_room1); with (eyeballs_readable) { extflag = "church_eyeballs"; image_xscale = 2.7; } mummy_marker = scr_marker(227, 55, spr_mummy_pop_out); with (mummy_marker) scr_depth(); var mummy_readable = instance_create(240, 90, obj_readable_room1); with (mummy_readable) { extflag = "church_mummy"; image_xscale = 0.8; image_yscale = 1.7; } var sign_readable = instance_create(370, 120, obj_readable_room1); with (sign_readable) extflag = "church_sign"; var tent_marker = scr_marker(392, 33, spr_festival_scarychurch_items_tent_bg); with (tent_marker) depth = 98640; catti_marker = scr_marker(tent_marker.x + 34, tent_marker.y + 34, spr_npc_catti_fortune); with (catti_marker) depth = 98630; catti_readable = instance_create(427, 105, obj_readable_room1); with (catti_readable) { extflag = "church_catti"; image_xscale = 1.85; image_yscale = 1.7; } alphys_marker = scr_marker(175, 40, spr_alphys_ceiling_fall); with (alphys_marker) scr_depth(); var choir_door_readable = instance_create(190, 90, obj_readable_room1); with (choir_door_readable) extflag = "church_choir"; show_convo = function(arg0) { npc_animate = false; npc_animate_target = -4; switch (arg0) { case "church_alvin": con = (scr_flag_get(1393) == 0) ? 10 : 12; npc_animate = true; npc_animate_target = alvin_npc; break; case "church_poem": con = 15; break; case "church_juice": con = 20; break; case "church_eyeballs": con = 30; if (scr_flag_get(1394) > 0) con = 35; break; case "church_mummy": con = 40; if (scr_flag_get(1395) == 1) con = 45; break; case "church_alphys": con = 50; if (scr_flag_get(1396) == 1) con = 54; break; case "church_catti": con = 60; if (scr_flag_get(1397) > 0) con = 62; if (scr_flag_get(1394) > 0) { con = 65; if (scr_flag_get(1418) > 0) { con = 68; if (scr_flag_get(1419) > 0) con = 69; } } break; case "church_sign": con = 70; break; case "church_choir": con = 80; break; } }; sparkle_marker = -4; alphys_readable = -4; create_sparkle = function() { sparkle_marker = scr_marker(80, 120, spr_shine); with (sparkle_marker) { image_speed = 0.1; scr_depth(); } alphys_readable = instance_create(70, 110, obj_readable_room1); with (alphys_readable) extflag = "church_alphys"; }; hide_sparkle = function() { with (sparkle_marker) instance_destroy(); }; if (scr_flag_get(1395) == 1) { create_sparkle(); with (mummy_marker) image_index = 2; if (scr_flag_get(1396) == 1) { hide_sparkle(); with (alphys_marker) { sprite_index = spr_alphys_ceiling_spin; image_speed = 0.1; scr_depth(); } with (alphys_readable) { x = 180; y = 110; } var alphys_block = instance_create(alphys_readable.x - 4, alphys_readable.y + 4, obj_solidblockLight); with (alphys_block) image_xscale = 1.4; } } catti_shock = function() { catti_marker.sprite_index = spr_npc_catti_fortune_surprise; _balloon_sprite = scr_marker(catti_marker.x + 20, catti_marker.y - 10, spr_exc); _balloon_sprite.depth = 98520; }; if (scr_flag_get(1394) == 1) catti_shock(); if (scr_flag_get(1418) == 1) { with (catti_marker) instance_destroy(); with (_balloon_sprite) instance_destroy(); }