event_inherited(); physics = 0; entity_gravity = 0; rideable = 0; can_ride_entities = 0; image_xscale = 2; image_yscale = 2; set_bbox_relative(); image_speed = 1; hit = 0; scr_plat_set_difference(); glasssurf = -4; auraalph = 0; npc_seth = -4; npc_aqua = -4; simple = false; rude_buster_use_cooldown = 0; stood_on_ralsei = false; remaining_combo = 0; remaining_combo_max = 6; u_alpha = shader_get_uniform(shd_chromatic_reflection, "iAlpha"); u_patternangle = shader_get_uniform(shd_chromatic_reflection, "iPatternAngle"); u_patterncount = shader_get_uniform(shd_chromatic_reflection, "iPatternCount"); u_holoangle = shader_get_uniform(shd_chromatic_reflection, "iHoloAngle"); u_time = shader_get_uniform(shd_chromatic_reflection, "iTime"); coindrops = 30; bullet_spawn_count = 0; if (i_ex(obj_dw_cliff_seth_miniboss)) { npc_seth = obj_dw_cliff_seth_miniboss.npc_seth; npc_aqua = obj_dw_cliff_seth_miniboss.npc_aqua; } else { simple = true; auraalph = 1; } init = 0; lerptimer = 1; movetimer = 0; hp = 80; lefthp = 40; righthp = 40; image_speed = 0; left_lens_opacity = 0; right_lens_opacity = 0; plat = instance_create(x, y, obj_plat_movingplat); plat.movetype = -1; plat.visible = 0; plat.image_xscale = 8; con = -1; timer = 0; left_handle_angle = 85; right_handle_angle = 85; recovertimer = 0; rotation_speed = 0; announced_big_attack = false; bullet_pattern_expire_timer = 0; bullet_pattern_multipurpose_timer = 0; bullet_pattern_can_expire = false; bullet_pattern_dialogue_state = 0; bullet_pattern_endstate = 0; talkcon = 0; conreturntimer = 0; talkcon = -1; ral_hook_left = instance_create(x, y, obj_ralsei_hook); ral_hook_left.owner = self; with (ral_hook_left) { sprite_index = spr_fsethglasses_handle; depth = other.depth - 1; menu_name = stringsetloc("Glasses", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_96_0"); image_angle = other.left_handle_angle; image_xscale = other.image_xscale; image_yscale = other.image_yscale; can_cut_down = false; } ral_hook_right = instance_create(x, y, obj_ralsei_hook); ral_hook_right.owner = self; with (ral_hook_right) { sprite_index = spr_fsethglasses_handle; depth = other.depth - 1; menu_name = stringsetloc("Glasses", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_107_0"); image_angle = other.right_handle_angle; image_xscale = -other.image_xscale; image_yscale = other.image_yscale; can_cut_down = false; } left_lens_hitbox = scr_marker(0, 0, spr_hitbox_10px_center); left_lens_hitbox.image_xscale = 16; left_lens_hitbox.image_yscale = 9.6; right_lens_hitbox = scr_marker(0, 0, spr_hitbox_10px_center); right_lens_hitbox.image_xscale = 16; right_lens_hitbox.image_yscale = 9.6; left_lens_hitbox.visible = false; right_lens_hitbox.visible = false; knife_afterimages = instance_create(0, 0, obj_custom_particle_system); knife_afterimages.default_particle_data.sprite_index = spr_faqua_knife_cracked; knife_afterimages.default_particle_data.fadeout_speed = 0.05; knife_afterimages.depth = 10001; knife_afterimages.skip_fusuma = true; knife_particle_struct = { image_angle: image_angle, image_xscale: image_xscale, image_yscale: image_yscale, image_alpha: image_alpha * 0.3 }; lensorder = 0; glove_cycle = 0; create_bullet = function(arg0 = 270, arg1 = random_range(camerax() + (0.15 * camerawidth()), camerax() + (0.85 * camerawidth())), arg2 = cameray() - 80) { var winddir = scr_wind_direction(); if (hp <= 40 && con != 10 && con != 11 && con != 12) arg0 += random_range(-20, 20); var maxbullets = 1; bullet_spawn_count++; if (bullet_spawn_count >= 15 && simple) { bullet_spawn_count = 0; if (hp == 80) { if ((glove_cycle % 3) == 0) { scr_speaker("opuppet"); msgsetsubloc(0, "~1* I'm helping!!", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_148_0"); d_make_plat(0, 1, undefined, undefined, 1); with (obj_dw_fcastle_obscured_bullets) bossorangeactingpatterns[1](); } else if ((glove_cycle % 3) == 1) { scr_speaker("opuppet"); msgsetsubloc(0, "~1* Look^1, I'm helping!", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_153_0"); d_make_plat(0, 1, undefined, undefined, 1); with (obj_orange_puppet) { with (puppet) { targx = 0; targy = 40; targxscale = 0.7; targyscale = 0.7; targangle = 10; } preset = 3; puppetmovement = 3; animinit = 0; laughfast = true; } } else { scr_speaker("opuppet"); msgsetsubloc(0, "~1* My attack's beating them!", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_157_0"); d_make_plat(0, 1, undefined, undefined, 1); with (obj_orange_puppet) { with (puppet) { targx = 100; targy = -60; targxscale = 0.8; targyscale = 1; targangle = -30; } preset = 3; puppetmovement = 3; animinit = 0; laughfast = true; } } glove_cycle++; } var _b = instance_create_depth(arg1, arg2 + 60, depth - 10, obj_plat_enm_smallglove); with (_b) { if (other.hp < 30) { image_xscale *= 1.5; image_yscale *= 1.5; } generated = true; movepattern = 8; can_break_fusuma = false; } exit; } for (var i = 0; i < maxbullets; i++) { var _b = instance_create_depth(arg1, arg2, depth - 10, obj_plat_aquaknife_winddirect); with (_b) { owner = other.id; wind_direction = 0; afterimage_system = other.knife_afterimages; particle_struct = other.knife_particle_struct; direction = arg0 + ((i * 360) / maxbullets); lifetime = 999999; damage = 35; force_direction = true; sprite_index = spr_faqua_knife_cracked; image_speed = 0; depth = 10000; double_swipe = false; if (other.con == 2) homing = true; if (other.con == 10 || other.con == 11 || other.con == 12) { scr_lerpvar("speed", speed * 2, 0, 30, 1, "out"); double_swipe = true; } } } }; split_bullet_simple = function(arg0, arg1 = 2, arg2 = 25, arg3 = undefined) { var spreadinc = (2 * arg2) / max(1, arg1 - 1); with (arg0) { if (!split) { split = true; var s = speed * 2; if (s == 0) s = 10; blurry = true; if (arg3 != undefined) direction += arg3; var pos_shift_x = lengthdir_x(4, direction + 90); var pos_shift_y = lengthdir_y(4, direction + 90); x -= pos_shift_x; y -= pos_shift_y; var pos_shift_mult = 2 / max(1, arg1 - 1); var dir = direction - arg2; var fxdir = direction - 10; snd_stop(snd_spearappear_choppy); snd_play(snd_spearappear_choppy, 1, 1.5); for (var i = 0; i < (arg1 - 1); i++) { var fx = instance_create(x, y, obj_animation); with (fx) { fxdir += (20 / arg1); sprite_index = spr_faqua_knife_spliteffect; image_angle = fxdir; scr_darksize(); image_xscale = 4; } } double_swipe = false; for (var i = 0; i < (arg1 - 1); i++) { _newcopy = instance_create(x, y, object_index); with (_newcopy) { owner = other.owner; wind_direction = 0; lifetime = 999999; force_direction = true; image_speed = 0; depth = 10000; damage = other.damage; afterimage_system = other.afterimage_system; particle_struct = other.particle_struct; split = true; double_swipe = false; blurry = true; direction = other.direction; image_angle = other.image_angle; sprite_index = other.sprite_index; speed = 1; image_index = 0; scr_lerpvar("speed", 1, s, 30); scr_lerpvar("direction", direction, dir, 30); } x += (pos_shift_x * pos_shift_mult); y += (pos_shift_y * pos_shift_mult); dir += spreadinc; } speed = 1; image_index = 0; scr_lerpvar("speed", 1, s, 30); scr_lerpvar("direction", direction, dir, 30); } } }; refract_bullet = function(arg0, arg1) { if (!arg0.split && !arg0.homing) { var num = 2; if (arg1 < (30 - (10 * simple))) num = 3; var angle = -image_angle; if (con == 10 || con == 11 || con == 12) angle = undefined; split_bullet_simple(arg0, num, 25, angle); } }; anim_phase = -1; anim_timer = 0; current_animation = -4; stun_duration = 120; do_anim_step = function(arg0) { if (anim_phase == -1) exit; var step = arg0[anim_phase]; if (!global.pause_plat) { anim_timer++; if (step(anim_timer)) { anim_phase++; anim_timer = 0; if (anim_phase >= array_length(arg0)) anim_phase = -1; exit; } } }; anim_dragdown = [function(arg0) { if (arg0 == 1) { scr_shakeobj(); stun(); } if (con == 0) con = 1; return arg0 > 5; }, function(arg0) { if (arg0 == 1) { scr_lerpvar("y", y, ystart + 50, 15, 3, "in"); scr_lerpvar("left_handle_angle", left_handle_angle % 360, 107, 12, -1, "in"); scr_lerpvar("right_handle_angle", right_handle_angle % 360, 85, 14, -1, "in"); } if (arg0 == 18) { scr_shakeobj(); scr_lerpvar("left_handle_angle", left_handle_angle % 360, 135, 8, -1, "out"); scr_lerpvar("right_handle_angle", right_handle_angle % 360, 135, 10, -1, "out"); } recovertimer = 0; return arg0 > 30; }]; anim_lefthandle_down = [function(arg0) { if (arg0 == 1) { scr_shakeobj(); cancel_stun(); with (obj_dw_cliff_seth_miniboss) ensure_side(1); } con = 2; recovertimer = 0; remaining_combo = remaining_combo_max; return arg0 > 15; }, function(arg0) { if (arg0 == 1) { scr_lerpvar("x", x, xstart + 40, 30, -1, "out"); scr_lerpvar("y", y, ystart + 60, 30, -1, "out"); scr_lerpvar("left_handle_angle", left_handle_angle, 175, 30, -2, "out"); } return arg0 > 30; }]; anim_righthandle_down = [function(arg0) { if (arg0 == 1) { scr_shakeobj(); cancel_stun(); with (obj_dw_cliff_seth_miniboss) ensure_side(-1); } con = 2; recovertimer = 0; remaining_combo = remaining_combo_max; return arg0 > 15; }, function(arg0) { if (arg0 == 1) { scr_lerpvar("x", x, xstart - 40, 30, -1, "out"); scr_lerpvar("y", y, ystart + 60, 30, -1, "out"); scr_lerpvar("right_handle_angle", right_handle_angle, 175, 30, -2, "out"); } if (arg0 == 30) conreturntimer = 0; return arg0 > 30; }]; anim_recover = [function(arg0) { if ((arg0 % 15) == 1) { scr_shakeobj(); with (obj_plat_follower) { if (name == "ralsei") drop_off_platform_mode(); } } con = 3; return arg0 >= 16; }, function(arg0) { if (arg0 == 1) { snd_play(snd_spearrise, 1, 0.8); scr_lerpvar("image_angle", image_angle, 0, 12, -1, "out"); scr_lerpvar("left_handle_angle", left_handle_angle, 445, 32, -1, "out"); scr_lerpvar("right_handle_angle", right_handle_angle, 445, 32, -1, "out"); scr_lerpvar("x", x, xstart, 32, -1, "out"); scr_lerpvar("y", y, ystart, 32, -1, "out"); } if (arg0 == 34) { conreturntimer = 0; con = 1; recovertimer = 0; left_handle_angle = 85; right_handle_angle = 85; if ((hp <= 60 && has_done_super == 0) || (hp <= 20 && has_done_super == 1)) { con = 10; timer = 0; su_act.blocked = true; scr_lerpvar("auraalph", 0, 1, 15); has_done_super++; } else { con = 0; } } return arg0 >= 34; }]; has_done_super = false; anim_recover_end = [function(arg0) { if (arg0 == 1) { scr_lerpvar("y", y, ystart, 30, -1, "inout"); scr_lerpvar("left_handle_angle", right_handle_angle % 360, 85, 18, -1, "out"); scr_lerpvar("right_handle_angle", right_handle_angle % 360, 85, 14, -1, "out"); } if (arg0 == 30) { if ((hp <= 60 && has_done_super == 0) || (hp <= 20 && has_done_super == 1)) { con = 10; timer = 0; has_done_super++; su_act.blocked = true; scr_lerpvar("auraalph", 0, 1, 15); } else { con = 0; } } return arg0 > 35; }]; anim_super_left = [function(arg0) { if (arg0 == 1) { with (npc_aqua) force_animation(3476, 20); scr_lerpvar("x", x, xstart + 80, 20, 3, "inout"); scr_lerpvar("y", y, ystart - 90, 30, -1, "inout"); scr_lerpvar("image_angle", image_angle, -30, 30, -1, "inout"); } if (arg0 == 31) scr_lerpvar("x", x, xstart - 180, 25, 3, "in"); if (arg0 == 35) { scr_lerpvar("y", y, ystart + 5, 30, 2, "inout"); scr_lerpvar("image_angle", image_angle, 110, 50, -1, "inout"); } if (arg0 == 58) scr_lerpvar("x", x, xstart + 70, 50, 2, "out"); if (arg0 == 90) { scr_lerpvar("y", y, ystart, 30, -1, "inout"); scr_lerpvar("image_angle", image_angle, 0, 30, -1, "inout"); } if (arg0 == 110) scr_lerpvar("x", x, xstart, 18, 3, "inout"); return arg0 > 120; }]; anim_super_right = [function(arg0) { if (arg0 == 1) { with (npc_aqua) force_animation(3476, 20); scr_lerpvar("x", x, xstart - 80, 20, 3, "inout"); scr_lerpvar("y", y, ystart - 90, 30, -1, "inout"); scr_lerpvar("image_angle", image_angle, 30, 30, -1, "inout"); } if (arg0 == 31) scr_lerpvar("x", x, xstart + 180, 25, 3, "in"); if (arg0 == 35) { scr_lerpvar("y", y, ystart + 5, 30, 2, "inout"); scr_lerpvar("image_angle", image_angle, -110, 50, -1, "inout"); } if (arg0 == 58) scr_lerpvar("x", x, xstart - 70, 50, 2, "out"); if (arg0 == 90) { scr_lerpvar("y", y, ystart, 30, -1, "inout"); scr_lerpvar("image_angle", image_angle, 0, 30, -1, "inout"); } if (arg0 == 110) scr_lerpvar("x", x, xstart, 18, 3, "inout"); return arg0 > 120; }]; spawn_explosion = function(arg0) { var xx = x + lengthdir_x(random_range(-0.5 * sprite_width, 0.5 * sprite_width), image_angle); var yy = y + lengthdir_y(random_range(-0.5 * sprite_width, 0.5 * sprite_width), image_angle) + random_range(-24, 24); if (arg0) { snd_stop(snd_explosion_firework); snd_play(snd_explosion_firework, 1, 0.8); } with (instance_create(xx, yy, obj_animation)) sprite_index = spr_realisticexplosion; }; spawn_coin = function(arg0, arg1) { scr_plat_makecoins(arg0, arg1, 1, 0, 360, 14, 4, depth - 1, false); }; jerky_anim = -4; jerky_motion = function(arg0) { if (arg0 == -1) jerky_anim = anim_jerk_left; else if (arg0 == -2) jerky_anim = anim_jerk_final; else jerky_anim = anim_jerk_right; }; anim_jerk_final = [function(arg0) { if (arg0 == 1) { snd_play(snd_rudebuster_swing); with (obj_plat_follower) drop_off_platform_mode(true); scr_lerpvar("x", x, camerax() + 80, 10, 3, "in"); scr_lerpvar("image_angle", image_angle, image_angle - 120, 10, 1, "out"); } if ((arg0 % 1) == 0) spawn_explosion((arg0 % 4) == 0); if (arg0 == 11) { snd_play(snd_badexplosion); scr_shakescreen(); con = 22; } return arg0 > 10; }]; anim_jerk_left = [function(arg0) { if (arg0 == 1) { with (obj_plat_follower) drop_off_platform_mode(true); scr_lerpvar("x", x, x - 140, 36, -2, "out"); scr_lerpvar("image_angle", image_angle, image_angle - 48, 36, -2, "out"); } if ((arg0 % 1) == 0) spawn_explosion((arg0 % 4) == 0); return arg0 > 36; }]; anim_jerk_right = [function(arg0) { if (arg0 == 1) { with (obj_plat_follower) drop_off_platform_mode(true); scr_lerpvar("x", x, x + 140, 36, -2, "out"); scr_lerpvar("image_angle", image_angle, image_angle + 48, 36, -2, "out"); } if ((arg0 % 1) == 0) spawn_explosion((arg0 % 4) == 0); return arg0 > 36; }]; anim_die = [function(arg0) { if (arg0 == 1) { with (obj_plat_bullet) { scr_doom(self, 30); scr_lerpvar("image_alpha", image_alpha, 0, 30); } con = 100; image_alpha = 0; bullet_pattern_endstate = 999; with (ral_hook_left) { with (instance_create(x, y, obj_marker_fancy)) { scr_spritematch(other); hspeed = -12; vspeed = -9; gravity = 1; draw_func = scr_plat_marker_fancy_greyscale_draw; image_alpha = 1; image_speed = 0; image_index = 0; image_angle = other.image_angle - 12; scr_doom(self, 80); } } with (ral_hook_right) { with (instance_create(x, y, obj_marker_fancy)) { scr_spritematch(other); hspeed = 12; vspeed = -9; gravity = 1; draw_func = scr_plat_marker_fancy_greyscale_draw; image_alpha = 1; image_speed = 0; image_index = 0; image_angle = other.image_angle - 12; scr_doom(self, 80); } } var sw = sprite_width * 0.25; var sh = sprite_height * 0.25; var xx = lengthdir_x(sw, image_angle) + lengthdir_y(sh, image_angle); var yy = lengthdir_y(sw, image_angle) + lengthdir_x(sh, image_angle); with (instance_create(x - xx, y - yy, obj_marker_fancy)) { sprite_index = spr_fsethglasses_main_split; image_speed = 0; scr_darksize(); hspeed = -5; vspeed = -4; gravity = 1; image_angle = other.image_angle - 12; draw_func = scr_plat_marker_fancy_greyscale_draw; } with (instance_create(x + xx, y + yy, obj_marker_fancy)) { sprite_index = spr_fsethglasses_main_split; image_index = 1; image_speed = 0; scr_darksize(); hspeed = 5; vspeed = -6; gravity = 1; image_angle = other.image_angle + 12; draw_func = scr_plat_marker_fancy_greyscale_draw; } scr_plat_vfx(3352); hit = 0; instance_destroy(); } }]; anim_expire = [function(arg0) { if (arg0 == 1) { with (obj_plat_bullet) { scr_doom(self, 30); scr_lerpvar("image_alpha", image_alpha, 0, 30); } con = 100; bullet_pattern_endstate = 999; flash_hurt(16777215); with (scr_afterimage_monochrome(16777215, 1)) { image_alpha = 0.3; scr_lerpvar("image_xscale", image_xscale, image_xscale + 0.5, 15, 1, "out"); scr_lerpvar("image_yscale", image_yscale, image_yscale + 0.5, 15, 1, "out"); } scr_lerpvar("imagealpha", imagealpha, 0, 30); scr_delay_var("y", y - 10000, 80); scr_doom(self, 80); with (ral_hook_left) { image_index = 0; image_speed = 0; scr_lerpvar("image_alpha", 1, 0, 30); scr_doom(self, 80); } with (ral_hook_right) { image_index = 0; image_speed = 0; scr_lerpvar("image_alpha", 1, 0, 30); scr_doom(self, 80); } } }]; animate = function(arg0) { with (obj_lerpvar) { if (target == other) instance_destroy(); } anim_phase = 0; anim_timer = 0; current_animation = arg0; }; lefthit = 0; righthit = 0; eligible_for_standing_ending = false; conversation_started = false; get_hit_local = function(arg0, arg1) { var instakill = false; if (arg1.object_index == obj_plat_enm_smallglove) { instakill = true; if (!conversation_started) { conversation_started = true; scr_speaker("seth"); msgsetsubloc(0, "~1* Orange^1, what are you DOING!?", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_790_0"); scr_anyface_next("orange", 0); msgnextsubloc("~1* I'm just helping...", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_792_0"); scr_msgfunc(function() { with (obj_dw_fcastle_obscured_bullets) bossorangeactingpatterns[2](); }); scr_anyface_next("seth", 0); msgnextsubloc("~1* Leave this to the big flowers!", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_794_0"); scr_anyface_next("orange", 0); msgnextsubloc("~1* Why are you being mean?", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_796_0"); scr_msgfunc(function() { with (obj_dw_fcastle_obscured_bullets) bossorangeactingpatterns[3](); }); scr_anyface_next("seth", 0); msgnextsubloc("~1* You're making us LOSE!!!", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_798_0"); scr_anyface_next("orange", 0); msgnextsubloc("~1* Well^1, maybe you SHOULD lose!", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_800_0"); scr_msgfunc(function() { with (obj_dw_fcastle_obscured_bullets) bossorangeactingpatterns[4](); }); scr_anyface_next("seth", 0); msgnextsubloc("~1* I'll win despite her!", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_802_0"); scr_anyface_next("orange", 0); msgnextsubloc("~1* Not if I win first!", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_804_0"); scr_msgfunc(function() { with (obj_dw_fcastle_obscured_bullets) bossorangeactingpatterns[5](); }); scr_anyface_next("seth", 0); msgnextsubloc("~1* WE'RE ON THE SAME SIDE!", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_806_0"); scr_anyface_next("orange", 0); msgnextsubloc("~1* My side's better.", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_808_0"); scr_msgfunc(function() { with (obj_dw_fcastle_obscured_bullets) bossorangeactingpatterns[6](); }); scr_anyface_next("seth", 0); msgnextsubloc("~1* HOW?", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_810_0"); scr_anyface_next("orange", 0); msgnextsubloc("~1* And I'm STILL helping.", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_812_0"); scr_msgfunc(function() { with (obj_dw_fcastle_obscured_bullets) bossorangeactingpatterns[7](); }); scr_anyface_next("seth", 0); msgnextsubloc("~1* I give up...", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_814_0"); d_make_plat(0, 2, undefined, undefined, true); } snd_play(snd_ultraswing); snd_play(snd_punchheavythunder, 0.6, 1.3); snd_play(snd_explosion_mmx3); with (arg1) { hit = 1; scr_doom(self, 1); } with (instance_create(arg1.x, arg1.y, obj_animation)) { sprite_index = spr_finisher_explosion_flashy; image_speed = 0.5; } if (hp > 20) { snd_play(snd_glassbreak); } else { with (obj_plat_player) act_enabled = false; with (obj_dialoguer_plat) instance_destroy(); with (obj_dw_fcastle_obscured_bullets) blast_seth_aqua_offscreen(); with (obj_plat_bulletred) neutralized = 99999; snd_play(snd_explosion_mmx3); xx = arg1.x; yy = arg1.y; for (var i = 0; i < 14; i++) { var ii = -0.5 * i; while (ii <= (0.5 * i)) { var len = random_range(10, 30) + (20 * i); var dir = arg1.image_angle + (random_range(-45, 45) * i) + (20 * i); scr_script_delayed(function(arg0, arg1) { with (instance_create(arg0, arg1, obj_animation)) { sprite_index = spr_realisticexplosion; image_speed = 1; snd_stop(snd_badexplosion); snd_play(snd_badexplosion); } }, (3 * ceil(abs(i))) + irandom_range(1, 2), xx + lengthdir_x(len, dir), yy + lengthdir_y(len, dir)).respect_plat_pause = false; ii++; } xx += lengthdir_x(20, arg1.image_angle); yy += lengthdir_y(20, arg1.image_angle); } } scr_plat_cool_zoom(); } else { if (simple) exit; with (arg1) { if (!hit_check(arg1.id)) exit; } } var hp_thereshold_reached = false; var lasthpl = lefthp; var lasthpr = righthp; if (arg0 == -1 && lefthit <= 0) { if (instakill) { lefthp -= 10; righthp -= 10; lefthit = 20; } else { if (remaining_combo <= 0) lefthp -= 1; if (remaining_combo <= 0) righthp -= 1; lefthit = 2; } left_lens_opacity = 1; } else if (arg0 == 1 && righthit <= 0) { if (instakill) { lefthp -= 10; righthp -= 10; righthit = 20; } else { if (remaining_combo <= 0) lefthp -= 1; if (remaining_combo <= 0) righthp -= 1; righthit = 2; } right_lens_opacity = 1; } hp_thereshold_reached = floor((lefthp + righthp) / 30) < floor(hp / 30); if ((lefthp + righthp) <= 0 && hp > 0) hp_thereshold_reached = true; if (remaining_combo > 0) { remaining_combo--; hp_thereshold_reached = false; snd_play(snd_metalhit, 1, 2 - (remaining_combo / remaining_combo_max)); if (remaining_combo == 0) { hp_thereshold_reached = true; hp = floor(hp / 20) * 20; lefthp = floor(0.5 * hp); righthp = floor(0.5 * hp); snd_play(snd_ultraswing); snd_play(snd_glassbreak); snd_play(snd_punchheavythunder, 0.6, 1.3); scr_plat_cool_zoom(); } } hp = lefthp + righthp; var xx = x; var yy = y; if (arg0 == 1) { xx = x + lengthdir_x((sprite_width * 0.25) - 8, image_angle); yy = y + lengthdir_y((sprite_width * 0.25) - 8, image_angle); } else { xx = x + lengthdir_x((-sprite_width * 0.25) + 8, image_angle); yy = y + lengthdir_y((-sprite_width * 0.25) + 8, image_angle); } if (bullet_pattern_endstate > 0) { hp = 10; spawn_coin(xx, yy); } if (bullet_pattern_dialogue_state == 2) bullet_pattern_multipurpose_timer = 99999; spawn_hit_petals(3, point_direction(arg1.x, arg1.y, xx, yy), 1); if (instance_exists(obj_dw_cliff_seth_miniboss)) { if (scr_plat_standing_on("kr", obj_dw_cliff_seth_miniboss.plat_ralsei.platform)) eligible_for_standing_ending = 1; } if (hp_thereshold_reached && bullet_pattern_endstate == 0 && i_ex(obj_dw_cliff_seth_miniboss)) { if (con == 10 || con == 11 || con == 12) { auraalph = 0; with (obj_plat_aquaknife_winddirect) { if (double_swipe) { damage = 0; scr_doom(self, 10); scr_lerpvar("image_alpha", image_alpha, 0, 10); } } } conreturntimer = 999; if (lefthp > 29) lefthp = 29; if (righthp > 29) righthp = 29; if ((lefthp + righthp) > 1 && hp <= 40 && eligible_for_standing_ending) { bullet_pattern_endstate = 1; bullet_pattern_can_expire = false; with (obj_dw_cliff_seth_miniboss) do_standing_combo_ending(other); } else { hp = lefthp + righthp; snd_stop(snd_glassbreak); snd_play(snd_glassbreak); if (!instakill) { with (arg1) do_hbx_hit(-4, 10); } animate(anim_recover); } } else { shake = 4; if (!instakill) { with (arg1) do_hbx_hit(-4, 0); } with (obj_plat_follower) { if (scr_plat_standing_on("kr", platform)) { other.shake = 12; snd_stop(snd_punchheavythunder); snd_play(snd_punchheavythunder, 0.6, 1.3); with (other) flash_hurt(); } } } scr_shakeobj(); with (instance_create_depth(xx, yy, depth, obj_plat_vfx)) { sprite_index = spr_hit_vfx; image_speed = 1; } with (instance_create_depth(xx, yy, depth, obj_plat_vfx)) { sprite_index = spr_smokepuff; image_speed = 2; } if (hp <= 0) { scr_shakeobj(); con = 99; timer = 0; current_animation = -4; } }; imagealpha = 1; bifurcate_hitbox = instance_create(x, y, obj_marker); bifurcate_hitbox.sprite_index = spr_hitbox_10px_center; bifurcate_hitbox.image_xscale = 10; bifurcate_hitbox.image_yscale = 2; bifurcate_hitbox.visible = false; petal_color = 16711935; sublast = function() { scr_plat_susie_attack_fast(self); rude_buster_use_cooldown = 0; }; su_act.effect = sublast; get_hurt = function() { };