con = 0; timer = 0; init = 0; siner = 0; roomphase = 0; turnofflayers("CUT"); turnofflayers("DEBUG"); turnofflayers("NPCs"); turnofflayers("PianoMarkers"); turnofflayers("ASSETS"); tasquemanager = -4; tasque = -4; maus = -4; if (global.flag[642] == 1 && global.flag[632] == 1 && global.flag[634] == 1) { tasquemanager = scr_makenpc_fromasset(findsprite(spr_dw_castle_church_npc_tasquemanager)); tasque = scr_makenpc_fromasset(findsprite(spr_dw_castle_church_npc_tasque)); maus = scr_makenpc_fromasset(findsprite(spr_dw_castle_church_npc_maus)); maus.marker.depth += 1000; } wafer = scr_makenpc_fromasset(findsprite(spr_npc_church_wafer, "NPCs", #70FF7C)); wafer.marker.image_blend = c_white; sweet = scr_makenpc_fromasset(findsprite(spr_dw_npc_sweet_box_right, "NPCs"), true); kk = scr_makenpc_fromasset(findsprite(spr_dw_npc_k_k_box_left, "NPCs"), true); with (sweet.marker) { con = 0; timer = 0; dance = function() { timer = 0; con = 1; }; step_func = function() { if (con == 1) { timer++; image_index += (((1 - (timer / 15)) * 1) / 2); if (timer >= 15) { con = 0; timer = 0; image_index = 0; } } }; } with (kk.marker) { con = 0; timer = 0; dance = function() { timer = 0; con = 1; }; step_func = function() { if (con == 1) { timer++; image_index += (((1 - (timer / 15)) * 1) / 2); if (timer >= 15) { con = 0; timer = 0; image_index = 0; } } }; } if (scr_enemyrecruitcheck("organikk")) instance_create(0, 0, obj_dw_castle_church_entrance_organikks); unlockedclimb = false; if (scr_enemyrecruitcheck("balthizard") && scr_enemyrecruitcheck("mizzle") && scr_enemyrecruitcheck("shadowguy")) unlockedclimb = true; noclimb = -4; if (unlockedclimb == false) { noclimb = scr_makenpc_fromasset(findsprite(spr_dw_castle_church_entrance_climbdoor)); noclimb.marker.image_index = 1; } else { doorway = scr_marker_fromasset(findsprite(spr_dw_castle_church_entrance_climbdoor)); scr_depth_alt(doorway, -5000); doorway.image_index = 0; doorway.image_speed = 0; } instance_create_depth(0, 0, 0, obj_musicer_darkcastle); if (scr_recruited_all_in_chapter(4)) { var cup_npc = instance_create(1420, 332, obj_npc_room); with (cup_npc) { extflag = "church_cup"; sprite_index = spr_npc_cup_walk; scr_depth(); } }