if (global.monster[myself] == 1) { if (global.mnfight == 2 && global.turntimer <= -15 && turns < 99) { var _yep = false; with (obj_aqua_enemy) { if (phasehit) _yep = true; } var talk_duckhit1 = stringsetloc(".../%", "obj_purple_enemy_slash_Step_0_gml_14_0"); var talk_duckmiss1 = stringsetloc("A-^1Aqua..^2&why would you&think I meant&THAT attack!?/%", "obj_purple_enemy_slash_Step_0_gml_16_0"); var talk_duckmiss2 = stringsetloc("Hee?^1 Wasn't that&your proudest&move you planned&beforehand?/%", "obj_purple_enemy_slash_Step_0_gml_17_0"); var talk_duckmiss3 = stringsetloc("S..^1. silence!^2&Just...^2 just&use what we&were just using!/%", "obj_purple_enemy_slash_Step_0_gml_18_0"); switch (turns) { case 1: if (_yep) { var talk_hit1_1 = stringsetloc("Haha! I knew it!^1&You're like an open&book!^1 And I&definitely read books!/%", "obj_purple_enemy_slash_Step_0_gml_25_0"); var talk_hit1_2 = stringsetloc("Aqua, it's time to&team up!^1 Let's use&that attack AGAIN!!!/%", "obj_purple_enemy_slash_Step_0_gml_26_0"); global.typer = 50; msgset_add(talk_hit1_1, x - 20, y + 25, 10, 50, function() { idlesprite = spr_seth_adjust_glasses; sparesprite = spr_seth_adjust_glasses; siner = 0; image_speed = 0; }); msgset_add(talk_hit1_2, x - 20, y + 25, 10, 50, function() { idlesprite = spr_seth_idle; sparesprite = spr_seth_idle; siner = 0; image_speed = 0.16666666666666666; }); } else { var talk_miss1_1 = stringsetloc("Wh... WHAT!?^1 You&didn't get hit&at all!?/%", "obj_purple_enemy_slash_Step_0_gml_34_0"); var talk_miss1_2 = stringsetloc("Aqua, you dummy!^1&You must have&been using the&attack wrong!!/%", "obj_purple_enemy_slash_Step_0_gml_35_0"); var talk_miss1_3 = stringsetloc("Hee hee, I'm a&dummy? A dummy?^1&Shall I go&limp and dance!/%", "obj_purple_enemy_slash_Step_0_gml_36_0"); var talk_miss1_4 = stringsetloc("... No?!^2&Agggh! Just use&something else!/%", "obj_purple_enemy_slash_Step_0_gml_37_0"); global.typer = 50; msgset_add(talk_miss1_1, x - 20, y + 25, 10, 50, function() { seth_sprite(4419); }); msgset_add(talk_miss1_2, x - 20, y + 25, 10, 50, function() { state_string = ""; idlesprite = spr_seth_upset; sparesprite = spr_seth_upset; }); msgset_add(talk_miss1_3, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50); msgset_add(talk_miss1_4, x - 20, y + 25, 10, 50); msgset_add_func(function() { seth_sprite(); }); } break; case 2: if (_yep) { var talk_hit2_1 = stringsetloc("Once again, my&analysis has proven&fruitful,^1 or even&vegetable-ful!/%", "obj_purple_enemy_slash_Step_0_gml_55_0"); var talk_hit2_2 = stringsetloc("But I'm not going&to let you figure&out our strategy,&oh no!/%", "obj_purple_enemy_slash_Step_0_gml_56_0"); var talk_hit2_3 = stringsetloc("Aqua... it's time to&mix things up!!!/%", "obj_purple_enemy_slash_Step_0_gml_57_0"); var talk_hit2_4 = stringsetloc("Next time...^1&use \\cRTHAT\\c0 ATTACK!!!/%", "obj_purple_enemy_slash_Step_0_gml_58_0"); var talk_hit2_5 = stringsetloc("\\cRTHAT\\c0 attack..?^2&OK!! Hee hee.../%", "obj_purple_enemy_slash_Step_0_gml_59_0"); global.typer = 50; msgset_add(talk_hit2_1, x - 20, y + 25, 10, 50, function() { idlesprite = spr_seth_adjust_glasses; sparesprite = spr_seth_adjust_glasses; siner = 0; image_speed = 0; }); msgset_add(talk_hit2_2, x - 20, y + 25, 10, 50); msgset_add(talk_hit2_3, x - 20, y + 25, 10, 50, function() { idlesprite = spr_seth_idle; sparesprite = spr_seth_idle; siner = 0; image_speed = 0.16666666666666666; }); msgset_add(talk_hit2_4, x - 20, y + 25, 10, 50); msgset_add(talk_hit2_5, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50); } else { var talk_miss2_1 = stringsetloc("Inconceivable!!!^2&How the stamen&did you dodge THAT!?/%", "obj_purple_enemy_slash_Step_0_gml_70_0"); var talk_miss2_2 = stringsetloc("Uuu, it looks like&they did it by&moving out of the way!/%", "obj_purple_enemy_slash_Step_0_gml_71_0"); var talk_miss2_3 = stringsetloc("I...^2 I know that,&you dummy!!!/%", "obj_purple_enemy_slash_Step_0_gml_72_0"); var talk_miss2_4 = stringsetloc("You won't be so&lucky this time!^2&Aqua..^1. next time.../%", "obj_purple_enemy_slash_Step_0_gml_73_0"); var talk_miss2_5 = stringsetloc("Use \\cRTHAT\\c0 ATTACK!!!/%", "obj_purple_enemy_slash_Step_0_gml_74_0"); global.typer = 50; msgset_add(talk_miss2_1, x - 20, y + 25, 10, 50, function() { seth_sprite(4419); }); msgset_add(talk_miss2_2, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50); msgset_add(talk_miss2_3, x - 20, y + 25, 10, 50); msgset_add(talk_miss2_4, x - 20, y + 25, 10, 50, function() { seth_sprite(2003, 0, 0.16666666666666666); }); msgset_add(talk_miss2_5, x - 20, y + 25, 10, 50); } break; case 3: with (obj_aqua_enemy) { global.typer = 50; msgset(0, talk_duckhit1); scr_enemyblcon(x - 20, y + 25, 10); } global.typer = 50; with (obj_aqua_enemy) { idlesprite = spr_enemy_aqua_unamused; sparesprite = spr_enemy_aqua_unamused; } msgset_add(talk_duckhit1, x - 20, y + 25, 10, 50, function() { seth_sprite(4419); }); if (_yep) { var talk_duckhit2 = stringsetloc("HA!!! Couldn't dodge&THAT, could you!?!?/%", "obj_purple_enemy_slash_Step_0_gml_113_0"); var talk_duckhit3 = stringsetloc("Hee hee, is this&their weakness?&Is this our&strongness??/%", "obj_purple_enemy_slash_Step_0_gml_114_0"); var talk_duckhit4 = stringsetloc("Yes!!!^2 Yes!!!^2&Aqua, use it&AGAIN!!!/%", "obj_purple_enemy_slash_Step_0_gml_115_0"); msgset_add(talk_duckhit2, x - 20, y + 50, 10, 50, function() { snd_play(snd_grab); visible = false; obj_aqua_enemy.visible = false; with (instance_create(x + 50, y + 70, obj_marker)) { sprite_index = spr_seth_aqua_dancing; scr_darksize(); image_speed = 0.25; } }); msgset_add(talk_duckhit3, x - 20, y + 70, 10, 50); msgset_add(talk_duckhit4, x - 20, y + 50, 10, 50); msgset_add_func(function() { seth_sprite(2003, 0, 0.16666666666666666); obj_aqua_enemy.aqua_sprite(6109, 0, 0.16666666666666666); with (obj_marker) { if (sprite_index == spr_seth_aqua_dancing) instance_destroy(); } visible = true; obj_aqua_enemy.visible = true; }); } else { msgset_add(talk_duckmiss1, x - 20, y + 25, 10, 50, function() { scr_shakeobj(); idlesprite = spr_seth_upset; sparesprite = spr_seth_upset; state_string = ""; }); msgset_add(talk_duckmiss2, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50, function() { with (obj_aqua_enemy) { idlesprite = spr_enemy_aqua_pose; sparesprite = spr_enemy_aqua_pose; scr_minishakeobj(); } }); msgset_add(talk_duckmiss3, x - 20, y + 25, 10, 50, function() { scr_minishakeobj(); }); msgset_add_func(function() { idlesprite = spr_seth_idle; sparesprite = spr_seth_idle; with (obj_aqua_enemy) { idlesprite = spr_enemy_aqua_idle; sparesprite = spr_enemy_aqua_idle; } }); } break; case 4: if (obj_aqua_enemy.myattackchoice == 5) { if (_yep) { talk_duckhit1 = stringsetloc("We..^1. we're actually&winning!!!^2 If we&can just keep using&this attack.../%", "obj_purple_enemy_slash_Step_0_gml_158_0"); var talk_duckhit2 = stringsetloc("Aqua, I'm sorry for &calling you a&dummy!!^1 You...&you're not!!!/%", "obj_purple_enemy_slash_Step_0_gml_159_0"); var talk_duckhit3 = stringsetloc("Uuu, I'm NOT a&dummy?^1 Does that&mean I can't go&limp and dance?/%", "obj_purple_enemy_slash_Step_0_gml_160_0"); var talk_duckhit4 = stringsetloc("Fine, you're&a dummy!^1 But,&a good one!!!&A good one!!!/%", "obj_purple_enemy_slash_Step_0_gml_161_0"); var talk_duckhit5 = stringsetloc("Hee hee,&dummy, dummy!/%", "obj_purple_enemy_slash_Step_0_gml_162_0"); global.typer = 50; msgset_add(talk_duckhit1, x - 20, y + 25, 10, 50, function() { seth_sprite(6556); }); msgset_add(talk_duckhit2, x - 20, y + 25, 10, 50); msgset_add(talk_duckhit3, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50); msgset_add(talk_duckhit4, x - 20, y + 25, 10, 50); msgset_add(talk_duckhit5, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50, function() { obj_aqua_enemy.image_speed = 0.5; }); msgset_add_func(function() { obj_aqua_enemy.image_speed = 0.16666666666666666; seth_sprite(2003); }); } else { with (obj_aqua_enemy) { global.typer = 50; msgset(0, talk_duckhit1); scr_enemyblcon(x - 20, y + 25, 10); } global.typer = 50; with (obj_aqua_enemy) { idlesprite = spr_enemy_aqua_unamused; sparesprite = spr_enemy_aqua_unamused; } msgset_add(talk_duckhit1, x - 20, y + 25, 10, 50); msgset_add(talk_duckmiss1, x - 20, y + 25, 10, 50, function() { scr_shakeobj(); idlesprite = spr_seth_upset; sparesprite = spr_seth_upset; }); msgset_add(talk_duckmiss2, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50, function() { with (obj_aqua_enemy) { idlesprite = spr_enemy_aqua_pose; sparesprite = spr_enemy_aqua_pose; scr_minishakeobj(); } }); msgset_add(talk_duckmiss3, x - 20, y + 25, 10, 50, function() { scr_minishakeobj(); }); msgset_add_func(function() { idlesprite = spr_seth_idle; sparesprite = spr_seth_idle; with (obj_aqua_enemy) { idlesprite = spr_enemy_aqua_idle; sparesprite = spr_enemy_aqua_idle; } }); } } else { var talk_seth_frustrated1 = stringsetloc("I know this is&your weakness!!^2&We just.../%", "obj_purple_enemy_slash_Step_0_gml_201_0"); var talk_seth_frustrated2 = stringsetloc("We just have to&keep using it&over and over!/%", "obj_purple_enemy_slash_Step_0_gml_202_0"); var talk_seth_frustrated3 = stringsetloc(".../%", "obj_purple_enemy_slash_Step_0_gml_203_0"); msgset_add(talk_seth_frustrated1, x - 20, y + 25, 10, 50, function() { seth_sprite(7701); }); msgset_add(talk_seth_frustrated2, x - 20, y + 25, 10, 50); msgset_add(talk_seth_frustrated3, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50, function() { with (obj_aqua_enemy) { idlesprite = spr_enemy_aqua_bored; sparesprite = spr_enemy_aqua_bored; image_speed = 0.125; } }); msgset_add_func(function() { seth_sprite(2003, 0, 0.16666666666666666); }); } break; case 5: var talk_aquagone1 = stringsetloc("Uuu, that was&fun, that was&fun!!!/%", "obj_purple_enemy_slash_Step_0_gml_216_0"); var talk_aquagone2 = stringsetloc("I wonder who else&I can attack?!/%", "obj_purple_enemy_slash_Step_0_gml_217_0"); var talk_aquagone3 = stringsetloc("AQUA!!/%", "obj_purple_enemy_slash_Step_0_gml_218_0"); var talk_aquagone4 = stringsetloc("... fine!^2&She was only&holding me back&anyway!/%", "obj_purple_enemy_slash_Step_0_gml_219_0"); with (obj_aqua_enemy) { idlesprite = spr_enemy_aqua_laugh; sparesprite = spr_enemy_aqua_laugh; image_speed = 0.16666666666666666; } msgset_add(talk_aquagone1, obj_aqua_enemy.x + 15, obj_aqua_enemy.y - 15, 13, 50); msgset_add(talk_aquagone2, obj_aqua_enemy.x + 15, obj_aqua_enemy.y - 15, 13, 50); msgset_add_func(function() { with (obj_aqua_enemy) { snd_play(snd_pirouette, 0.7, 1.5); snd_play(snd_whistlebreath); idlesprite = spr_enemy_aqua_spin; sparesprite = spr_enemy_aqua_spin; image_speed = 2; scr_lerpvar("image_speed", 2, 1/3, 30); scr_lerpvar("y", y, y - 480, 120); scr_lerpvar("x", x, x + 60, 10, 2, "out"); scr_script_delayed(scr_lerpvar, 10, "x", x + 60, x + 30, 10, 2, "in"); scr_script_delayed(scr_lerpvar, 20, "x", x + 30, x, 10, 2, "out"); scr_script_delayed(scr_lerpvar, 30, "x", x, x + 60, 10, 2, "in"); scr_script_delayed(scr_lerpvar, 40, "x", x + 60, x + 240, 20, 2, "out"); funct = function() { repeat (3 + irandom(1)) { var _dir = irandom(360); var _len = 35 + irandom(35); with (instance_create(x + 18 + lengthdir_x(_len, _dir), y + 70 + lengthdir_y(_len * 0.5, _dir), obj_bulletparent)) { sprite_index = spr_falling_petal; image_index = irandom(4); image_speed = 0.125 * choose(1, 0.5, 0.75); image_blend = c_gray; scr_darksize(); depth = other.depth + 1; speed = 8 + random(4); direction = _dir - 90; vspeed *= 0.5; scr_lerpvar("hspeed", hspeed, 0, 48); gravity_direction = 270; gravity = 0.05 + random(0.05); image_xscale *= choose(1, -1); scr_lerpvar("image_alpha", 1, 0, 60); funct = function() { if (image_index > 0 && image_index < 4) x += 0.5; else x -= 0.5; }; scr_script_repeat(scr_use_funct, 64, 1); } } }; scr_script_repeat(scr_use_funct, 40, 4); } talked = -1; scr_var_delayed("talked", 1, 40); }); msgset_add(talk_aquagone3, x + 50, y + 45, 10, 50, function() { seth_sprite(2803, 0, 0.25); image_xscale = 2; x -= 66; scr_shakeobj(); with (obj_battleblcon) side = -1; }); msgset_add_func(function() { talked = -1; scr_var_delayed("talked", 1, 10); }); msgset_add_func(function() { image_speed = 0; talked = -1; scr_var_delayed("talked", 1, 30); }); msgset_add_func(function() { image_xscale = -2; x += 66; scr_minishakeobj(); state_string = ""; idlesprite = spr_seth_adjust_glasses; siner = 3; image_speed = 0; talked = -1; scr_var_delayed("talked", 1, 30); }); msgset_add_func(function() { image_xscale = 2; x -= 66; talked = -1; scr_var_delayed("talked", 1, 30); }); msgset_add(talk_aquagone4, (x + 90) - 66, y + 25, 10, 50, function() { myblcon.side = -1; }); msgset_add_func(function() { with (obj_aqua_enemy) scr_monsterdefeat(); scr_lerpvar("x", x, init_x, 30); scr_lerpvar("y", y, init_y, 30); talked = -1; scr_var_delayed("talked", 1, 30); }); break; case 7: var sethdone1 = stringsetloc("Heheh...^2&I still have^2&one more tactic!/%", "obj_purple_enemy_slash_Step_0_gml_358_0"); var sethdone2 = stringsetloc("Aqua!!^1 Help me!!^2&Come back!!^2&Please!!/%", "obj_purple_enemy_slash_Step_0_gml_359_0"); var sethdone3 = stringsetloc("Ooo, are we&playing a&screaming game?/%", "obj_purple_enemy_slash_Step_0_gml_360_0"); var sethdone4 = stringsetloc("AAAAAAAA%%AAAAAAA&A&A&A", "obj_purple_enemy_slash_Step_0_gml_361_0"); var sethdone5 = stringsetloc("No, you're&helping me&run away, dummy!!/%", "obj_purple_enemy_slash_Step_0_gml_362_0"); var sethdone6 = stringsetloc("Hee hee!^2&Running,&running!/%", "obj_purple_enemy_slash_Step_0_gml_363_0"); aquamarker = instance_create(init_x + 80 + 240, init_y - 160, obj_marker); msgset_add_func(function() { cantalk = false; scr_var_delayed("cantalk", true, 30); }); msgset_add(sethdone1, x - 20, y + 25, 10, 50, function() { state_string = ""; idlesprite = spr_seth_adjust_glasses; sparesprite = spr_seth_adjust_glasses; siner = 0; image_speed = 0; }); msgset_add_func(function() { cantalk = false; scr_var_delayed("cantalk", true, 20); }); msgset_add(sethdone2, x - 20, y + 25, 10, 50, function() { seth_sprite(8144, 0, 0.16666666666666666); scr_shakeobj(); }); msgset_add_func(function() { image_speed = 0; with (aquamarker) { scr_darksize(); snd_play(snd_whistlebreath); sprite_index = spr_enemy_aqua_spin; image_speed = 1/3; scr_lerpvar("x", other.init_x + 320, other.init_x + 40, 30, 2, "out"); scr_lerpvar("y", other.init_y - 160, other.init_y + 12, 30); funct = function() { repeat (3 + irandom(1)) { var _dir = 180 + irandom_range(-15, 15); var _len = irandom(50); with (instance_create(x + 18 + lengthdir_x(_len, _dir), y + 70 + lengthdir_y(_len * 0.5, _dir), obj_bulletparent)) { sprite_index = spr_falling_petal; image_index = irandom(4); image_speed = 0.125 * choose(1, 0.5, 0.75); image_blend = c_gray; scr_darksize(); depth = other.depth + 1; speed = 8 + random(4); direction = _dir; vspeed *= 0.5; scr_lerpvar("hspeed", hspeed, 0, 48); gravity_direction = 270; gravity = 0.05 + random(0.05); image_xscale *= choose(1, -1); scr_lerpvar("image_alpha", 1, 0, 60); funct = function() { if (image_index > 0 && image_index < 4) x += 0.5; else x -= 0.5; }; scr_script_repeat(scr_use_funct, 64, 1); } } }; scr_script_repeat(scr_use_funct, 5, 4); } talked = -1; scr_var_delayed("talked", 1, 1); }); msgset_add_func(function() { seth_sprite(6749); image_xscale = -2; x += 66; scr_script_delayed(scr_lerpvar, 15, "x", x, x - 40, 10, 2, "out"); talked = -1; scr_var_delayed("talked", 1, 29); }); msgset_add(sethdone3, ((init_x + 40) - 20) + 35, (init_y + 37) - 40, 13, 50, function() { with (aquamarker) sprite_index = spr_enemy_aqua_pose; }); msgset_add(sethdone4, ((init_x + 40) - 20) + 35, (init_y + 37) - 40, 13, 50); msgset_add(sethdone5, x - 60, y + 25, 10, 50, function() { seth_sprite(2177, 0, 0.16666666666666666); }); msgset_add(sethdone6, ((init_x + 40) - 20) + 35, (init_y + 37) - 40, 13, 50, function() { with (aquamarker) { sprite_index = spr_enemy_aqua_laugh; image_speed = 0.16666666666666666; } }); msgset_add_func(function() { talked = -1; scr_var_delayed("talked", 1, 5); }); msgset_add_func(function() { snd_play(snd_grab); with (aquamarker) { image_xscale = -2; x += 38; sprite_index = spr_aqua_grab_hold; } x += 64; y -= 60; seth_sprite(5905); talked = -1; scr_var_delayed("talked", 1, 25); }); msgset_add_func(function() { with (aquamarker) { image_xscale = 2; x -= 38; sprite_index = spr_aqua_grab_jump; image_speed = 0; image_index = 0; } y += 4; talked = -1; scr_var_delayed("talked", 1, 5); }); msgset_add_func(function() { snd_play(snd_jump, 1, 1.25); y -= 4; x += 4; scr_lerpvar("y", y, y - 160, 30, 3, "out"); scr_lerpvar("x", x, x + 240, 30); with (aquamarker) { image_index = 1; scr_lerpvar("y", y, y - 160, 30, 3, "out"); scr_lerpvar("x", x, x + 240, 30); } talked = -1; scr_var_delayed("talked", 1, 60); }); msgset_add_func(function() { scr_wincombat(); }); break; } msgset_add_func(function() { obj_battlecontroller.alarm[2] = 1; }); seth_balloon(); talked = 1; talktimer = 0; rtimer = 0; global.mnfight = 1.25; global.typer = 6; global.fc = 0; var substring; if (scr_messagepriority(1)) { substring = string(myself); var random_status = choose(0, 1, 2, 3); if (random_status == 0) global.battlemsg[0] = stringsetsubloc("* Seth points!&* Aqua looks at Seth's finger^1, not the target!", substring, "obj_purple_enemy_slash_Step_0_gml_556_0"); if (random_status == 1) global.battlemsg[0] = stringsetsubloc("* Seth pushes up glasses!&* Aqua also pushes up Seth's glasses!", substring, "obj_purple_enemy_slash_Step_0_gml_559_0"); if (random_status == 2) global.battlemsg[0] = stringsetsubloc("* Seth looks at a page and says \"a-HA!\"&* Aqua doesn't get the joke!", substring, "obj_purple_enemy_slash_Step_0_gml_562_0"); if (random_status == 3) global.battlemsg[0] = stringsetsubloc("* Aqua floats a bit.&* Seth stays firmly on the ground!", substring, "obj_purple_enemy_slash_Step_0_gml_565_0"); } if ((turns == 3 || turns == 4) && _yep) global.battlemsg[0] = stringsetsubloc("* Seth is beaming with pride!", substring, "obj_purple_enemy_slash_Step_0_gml_570_0"); if (turns == 4 && obj_aqua_enemy.myattackchoice != 5) global.battlemsg[0] = stringsetsubloc("* Aqua seems unamused.", substring, "obj_purple_enemy_slash_Step_0_gml_574_0"); with (obj_aqua_enemy) { if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3)) { if (scr_messagepriority(100 + random(2))) { substring = string(myself); global.battlemsg[0] = stringsetsubloc("* Aqua is starting to fray.", substring, "obj_purple_enemy_slash_Step_0_gml_597_0"); } } } if (turns == 5) global.battlemsg[0] = stringsetsubloc("* Seth prepares the ultimate tactic!", substring, "obj_purple_enemy_slash_Step_0_gml_578_0"); if (turns == 6) global.battlemsg[0] = stringsetsubloc("* Seth prepares the other ultimate tactic!", substring, "obj_purple_enemy_slash_Step_0_gml_581_0"); if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3)) { if (scr_messagepriority(100 + random(2))) { substring = string(myself); global.battlemsg[0] = stringsetsubloc("* Seth's glasses are drooping.", substring, "obj_purple_enemy_slash_Step_0_gml_588_0"); } } } if (global.mnfight == 1.25) { if (talked == 1 && cantalk) scr_blconskip_boss(15); exit; } if (scr_isphase("enemytalk") && talked == 0) { scr_randomtarget(); setbattlemsg = false; with (obj_aqua_enemy) { event_user(1); talked = 0; } event_user(1); myattackpriority = 0; scr_attackpriority(myattackpriority - 1); if (!instance_exists(obj_darkener) && !violence_end) instance_create(0, 0, obj_darkener); rr = choose(0, 1, 2, 3); var story1 = stringsetloc("Ha! Aqua alone&might have been&trivial for you.../%", "obj_purple_enemy_slash_Step_0_gml_639_0"); var story2 = stringsetloc("but I, the master&tactician, have&analyzed your&battle data!/%", "obj_purple_enemy_slash_Step_0_gml_640_0"); var story3 = stringsetloc("THIS... is your&weakness, isn't it!?&What Aqua hit you with&the most.../%", "obj_purple_enemy_slash_Step_0_gml_641_0"); var story4 = stringsetloc("...&What!?&You didn't take&ANY DAMAGE!?/%", "obj_purple_enemy_slash_Step_0_gml_642_0"); var attack1 = stringsetloc("Aqua,&knife chain attack&now!!!/%", "obj_purple_enemy_slash_Step_0_gml_644_0"); var attack2 = stringsetloc("Aqua,&knife fan attack&now!!!/%", "obj_purple_enemy_slash_Step_0_gml_645_0"); var attack3 = stringsetloc("Aqua,&knife circle attack&now!!!/%", "obj_purple_enemy_slash_Step_0_gml_646_0"); var attack4 = stringsetloc("Aqua,&OMEGA knife attack&now!!!/%", "obj_purple_enemy_slash_Step_0_gml_647_0"); var attack5 = stringsetloc("Aqua,&THAT attack, NOW!!!/%", "obj_purple_enemy_slash_Step_0_gml_648_0"); var attack6 = stringsetloc("Aqua, throw EVERYTHING&AT THEM!!!/%", "obj_purple_enemy_slash_Step_0_gml_650_0"); var sethopener = stringsetloc("Hee hee, okay!/%", "obj_purple_enemy_slash_Step_0_gml_652_0"); msgset_add(stringset(""), x - 20, y + 25, 10, 50); var aqua_end = false; with (obj_aqua_enemy) { if (violence_end) aqua_end = true; } if (!introtalk) { msgset_replace(0, story1, x - 20, y + 25, 10, 50, function() { if (idlesprite == spr_seth_glasses_shiny) { image_speed = 0; siner %= 8; } else { seth_sprite(1640, 0, 0); } }); msgset_add(story2, x - 20, y + 25, 10, 50); msgset_add(story3, x - 20, y + 25, 10, 50, function() { seth_sprite(7556, 2, 0); }); if (global.flag[1313] == 0) { msgset_add_func(function() { talked = -1; talktimer = 15; scr_var_delayed("talked", 1, 30); scr_var_delayed("talktimer", 999, 30); }); msgset_add(story4, x - 20, y + 25, 10, 50, function() { scr_shakeobj(); seth_sprite(6749, 0, 0); }); } msgset_add_func(function() { talked = 0; with (obj_aqua_enemy) talked = 0; introtalk = true; seth_sprite(2003, 0, 0.16666666666666666); }); } else if (turns < 4) { if (!violence_end && !aqua_end) { with (obj_aqua_enemy) { global.typer = 50; msgset(0, sethopener); with (scr_enemyblcon(x - 20, y + 25, 10)) mywriter.clear_all_writers = true; } } if (obj_aqua_enemy.myattackchoice == 0) msgset_replace(0, attack1, x - 20, y + 25, 10, 50); if (obj_aqua_enemy.myattackchoice == 1) msgset_replace(0, attack2, x - 20, y + 25, 10, 50); if (obj_aqua_enemy.myattackchoice == 2) msgset_replace(0, attack3, x - 20, y + 25, 10, 50); if (obj_aqua_enemy.myattackchoice == 3) msgset_replace(0, attack4, x - 20, y + 25, 10, 50); if (obj_aqua_enemy.myattackchoice == 5) msgset_replace(0, attack5, x - 20, y + 25, 10, 50); if (obj_aqua_enemy.myattackchoice == 4) msgset_replace(0, attack6, x - 20, y + 25, 10, 50); } if (turns == 4) { var ropeturn_1 = stringsetloc("Ha ha!^2&Scared yet?/%", "obj_purple_enemy_slash_Step_0_gml_750_0"); var ropeturn_3 = stringsetloc("This time YOU&guys are gonna&wanna run away!/%", "obj_purple_enemy_slash_Step_0_gml_751_0"); var ropeturn_4 = stringsetloc("All right, Aqua!^2&Use the same attack&one more time&and it's over...!/%", "obj_purple_enemy_slash_Step_0_gml_752_0"); var ropeturn_5 = stringsetloc(".../%", "obj_purple_enemy_slash_Step_0_gml_753_0"); var ropeturn_6 = stringsetloc("...^2 Aqua?/%", "obj_purple_enemy_slash_Step_0_gml_754_0"); var ropeturn_7 = stringsetloc("Uuu, doing the&same thing is&BORING!!!/%", "obj_purple_enemy_slash_Step_0_gml_755_0"); var ropeturn_8 = stringsetloc("... using the&SAME move.../%", "obj_purple_enemy_slash_Step_0_gml_756_0"); var ropeturn_9 = stringsetloc("... and only&attacking the&SAME people!!!/%", "obj_purple_enemy_slash_Step_0_gml_757_0"); var ropeturn_10 = stringsetloc("... h-huh?/%", "obj_purple_enemy_slash_Step_0_gml_758_0"); instance_destroy(obj_balloon_queue); msgset_add_func(function() { init_x = x; init_y = y; state_string = ""; talked = -1; scr_var_delayed("talked", 1, 25); scr_lerpvar("x", x, x - 175, 25); scr_lerpvar("y", y, y + 20, 25); idlesprite = spr_seth_walk_left; sparesprite = spr_seth_walk_left; image_speed = 1/3; }); msgset_add(ropeturn_1, (x + 90) - 175, y + 25 + 20, 10, 50, function() { myblcon.side = -1; seth_sprite(7319, 3, 0); }); msgset_add(ropeturn_3, (x + 90) - 175, y + 25 + 20, 10, 50, function() { myblcon.side = -1; scr_minishakeobj(); seth_sprite(7556, 2, 0); }); msgset_add(ropeturn_4, (x + 90) - 175, y + 25 + 20, 10, 50, function() { myblcon.side = -1; }); msgset_add(ropeturn_5, obj_aqua_enemy.x + 15, obj_aqua_enemy.y - 15, 13, 50, function() { with (obj_aqua_enemy) { idlesprite = spr_enemy_aqua_bored; sparesprite = spr_enemy_aqua_bored; image_speed = 0.125; } }); msgset_add(ropeturn_6, (x + 90) - 175, y + 25 + 20, 10, 50, function() { myblcon.side = -1; image_xscale = -2; x += 66; seth_sprite(2003, 0, 0.16666666666666666); }); msgset_add(ropeturn_7, obj_aqua_enemy.x + 15, obj_aqua_enemy.y - 15, 13, 50, function() { obj_aqua_enemy.aqua_sprite(4067, 0, 0); }); msgset_add(ropeturn_8, obj_aqua_enemy.x + 15, obj_aqua_enemy.y - 15, 13, 50); msgset_add(ropeturn_9, obj_aqua_enemy.x + 15, obj_aqua_enemy.y - 15, 13, 50, function() { obj_aqua_enemy.aqua_sprite(5498); }); msgset_add(ropeturn_10, (x + 90) - 175, y + 25 + 20, 10, 50, function() { myblcon.side = -1; seth_sprite(4554, 0, 0.16666666666666666); scr_lerpvar("x", x, x - 15, 10); scr_var_delayed("idlesprite", 2003, 10); scr_var_delayed("sparesprite", 2003, 10); with (obj_battleblcon) { if (i_ex(mywriter)) { initwritingx = mywriter.writingx; initwritingy = mywriter.writingy; } scr_lerpvar("x", x, x - 15, 10); scr_lerpvar("initwritingx", initwritingx, initwritingx - 15, 10); } talked = -1; scr_var_delayed("talked", 1, 10); }); msgset_add_func(function() { state_string = ""; obj_aqua_enemy.state_string = ""; depth -= 85; }); } if (turns == 5) { var seth_solo1 = stringsetloc("Aqua was only a&pawn in my master&plan!/%", "obj_purple_enemy_slash_Step_0_gml_841_0"); var seth_solo2 = stringsetloc("But the king or queen&of this battle^2 is&blossoming before &you right now!/%", "obj_purple_enemy_slash_Step_0_gml_842_0"); var seth_solo3 = stringsetloc("It's time for my&ultimate tactic!^2&Watch...^2&And learn!!!/%", "obj_purple_enemy_slash_Step_0_gml_843_0"); instance_destroy(obj_balloon_queue); msgset_add(seth_solo1, x - 20, y + 25, 10, 50); msgset_add(seth_solo2, x - 20, y + 25, 10, 50); msgset_add(seth_solo3, x - 20, y + 25, 10, 50); } if (turns == 6) { var seth_solo1 = stringsetloc("Heheh.../%", "obj_purple_enemy_slash_Step_0_gml_854_0"); var seth_solo2 = stringsetloc("UUAAAAAAGHHH!!!&THAT WAS MY&ULTIMATE MOVE!!!/%", "obj_purple_enemy_slash_Step_0_gml_855_0"); var seth_solo3 = stringsetloc("AAAAAAAAAAGHHH!!!/%", "obj_purple_enemy_slash_Step_0_gml_856_0"); var seth_solo4 = stringsetloc("LOSE!!!/%", "obj_purple_enemy_slash_Step_0_gml_857_0"); instance_destroy(obj_balloon_queue); msgset_add(seth_solo1, x - 20, y + 25, 10, 50, function() { scr_minishakeobj(); }); msgset_add(seth_solo2, x - 20, y + 25, 10, 50, function() { seth_sprite(3142, 0, 0.16666666666666666); scr_shakeobj(); }); msgset_add(seth_solo3, x - 20, y + 25, 10, 50, function() { scr_shakeobj(); }); msgset_add(seth_solo4, x - 20, y + 25, 10, 50); msgset_add_func(function() { seth_sprite(7701, 0, 0.16666666666666666); }); } if (violence_end) { global.flag[1906] = -1; instance_destroy(obj_balloon_queue); with (obj_darkener) instance_destroy(); var seth_hurt1 = stringsetloc("H-hey!^2 Attacking me&isn't part of the&plan!^2 Y-you...!/%", "obj_purple_enemy_slash_Step_0_gml_879_0"); var seth_hurt2 = stringsetloc("Uuu, Seth, why are&you lying on the&ground?^2 Are you&\"Sleepy?\"/%", "obj_purple_enemy_slash_Step_0_gml_880_0"); var seth_hurt3 = stringsetloc("Is this \"sleep?\"/%", "obj_purple_enemy_slash_Step_0_gml_881_0"); var seth_hurt4 = stringsetloc(".../%", "obj_purple_enemy_slash_Step_0_gml_882_0"); var seth_hurt5 = stringsetloc("Uuu, it's boring if&you don't say&anything back!/%", "obj_purple_enemy_slash_Step_0_gml_883_0"); var seth_hurt6 = stringsetloc("Seth, Seth needs&to wake up!^2&Lazy Seth, lazy!/%", "obj_purple_enemy_slash_Step_0_gml_884_0"); msgset_add(seth_hurt1, x - 20, y + 25, 10, 50, function() { seth_sprite(2640, 0, 0); }); msgset_add_func(function() { scr_minishakeobj(); snd_play(snd_bump); seth_sprite(5407); talked = -1; scr_var_delayed("talked", 1, 60); }); if (turns >= 5) { obj_aqua_enemy.x = camera_get_view_x(view_camera[0]) + 500; obj_aqua_enemy.y = camera_get_view_y(view_camera[0]) + 200; msgset_add_func(function() { with (obj_aqua_enemy) { depth = obj_purple_enemy.depth - 1; snd_play(snd_whistlebreath); idlesprite = spr_enemy_aqua_spin; sparesprite = spr_enemy_aqua_spin; image_speed = 0.16666666666666666; scr_lerpvar("x", camera_get_view_x(view_camera[0]) + 500 + 280, (camera_get_view_x(view_camera[0]) + 500 + 280) - 280, 30, 2, "out"); scr_lerpvar("y", (camera_get_view_y(view_camera[0]) + 200) - 148, ((camera_get_view_y(view_camera[0]) + 200) - 148) + 148, 30); scr_var_delayed("image_speed", 0, 30); funct = function() { repeat (3 + irandom(1)) { var _dir = 180 + irandom_range(-15, 15); var _len = irandom(50); with (instance_create(x + 18 + lengthdir_x(_len, _dir), y + 70 + lengthdir_y(_len * 0.5, _dir), obj_bulletparent)) { sprite_index = spr_falling_petal; image_index = irandom(4); image_speed = 0.125 * choose(1, 0.5, 0.75); image_blend = c_gray; scr_darksize(); depth = other.depth + 1; speed = 8 + random(4); direction = _dir; vspeed *= 0.5; scr_lerpvar("hspeed", hspeed, 0, 48); gravity_direction = 270; gravity = 0.05 + random(0.05); image_xscale *= choose(1, -1); scr_lerpvar("image_alpha", 1, 0, 60); funct = function() { if (image_index > 0 && image_index < 4) x += 0.5; else x -= 0.5; }; scr_script_repeat(scr_use_funct, 64, 1); } } }; scr_script_repeat(scr_use_funct, 5, 4); } talked = -1; scr_var_delayed("talked", 1, 30); }); } msgset_add(seth_hurt2, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50, function() { obj_aqua_enemy.aqua_sprite(7724, 0, 0); }); msgset_add(seth_hurt3, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50); msgset_add_func(function() { talked = -1; scr_var_delayed("talked", 1, 5); }); msgset_add_func(function() { with (obj_aqua_enemy) { scr_minishakeobj(); aqua_sprite(6237, 0, 0); } snd_play(snd_bump); talked = -1; scr_var_delayed("talked", 1, 60); }); msgset_add(seth_hurt4, obj_aqua_enemy.x, obj_aqua_enemy.y + 40, 10, 50, function() { talked = -1; scr_var_delayed("talked", 1, 30); }); msgset_add_func(function() { obj_aqua_enemy.state_string = ""; talked = -1; scr_var_delayed("talked", 1, 10); }); msgset_add(seth_hurt5, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50, function() { obj_aqua_enemy.aqua_sprite(4067, 0, 0); }); msgset_add(seth_hurt6, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50); msgset_add_func(function() { with (obj_aqua_enemy) { aqua_sprite(7767, 0, 0.16666666666666666); scr_lerpvar("y", y, obj_purple_enemy.y, 30); scr_var_delayed("depth", obj_purple_enemy.depth + 1, 25); } talked = -1; scr_var_delayed("talked", 1, 30); }); msgset_add_func(function() { with (obj_aqua_enemy) { aqua_sprite(3456, 0, 0.16666666666666666); scr_lerpvar("x", x, x + 160, 60); } talked = -1; scr_var_delayed("talked", 1, 10); }); msgset_add_func(function() { snd_play(snd_grab); scr_script_delayed(scr_lerpvar, 3, "x", x, x + 160, 60); talked = -1; scr_var_delayed("talked", 1, 80); }); msgset_add_func(function() { scr_wincombat(); }); if (turns >= 5) { obj_aqua_enemy.x = camera_get_view_x(view_camera[0]) + 500 + 280; obj_aqua_enemy.y = (camera_get_view_y(view_camera[0]) + 200) - 148; } } if (aqua_end) { instance_destroy(obj_balloon_queue); with (obj_darkener) instance_destroy(); global.flag[1906] = -1; var aqua_hurt1 = stringsetloc("Uee hee hee!&Numbers, numbers!&Is this.. pain!?/%", "obj_purple_enemy_slash_Step_0_gml_1043_0"); var aqua_hurt2 = stringsetloc("A... Aqua!^2&Are you OK!?/%", "obj_purple_enemy_slash_Step_0_gml_1044_0"); var aqua_hurt3 = stringsetloc("Hey...!^1 You...^2 you&can't hurt Aqua&like that!!/%", "obj_purple_enemy_slash_Step_0_gml_1045_0"); var aqua_hurt4 = stringsetloc("You know she doesn't&really know what&happens when you fight!!/%", "obj_purple_enemy_slash_Step_0_gml_1046_0"); var aqua_hurt5 = stringsetloc("Fine!^2 If it's grown&to this, then you leaf&me no choice!/%", "obj_purple_enemy_slash_Step_0_gml_1047_0"); var aqua_hurt6 = stringsetloc("Retreat!!/%", "obj_purple_enemy_slash_Step_0_gml_1048_0"); msgset_add(aqua_hurt1, obj_aqua_enemy.x - 20, obj_aqua_enemy.y + 25, 10, 50); msgset_add_func(function() { with (obj_aqua_enemy) { snd_play(snd_bump); aqua_sprite(6237, 0, 0); scr_minishakeobj(); } talked = -1; scr_var_delayed("talked", 1, 20); }); msgset_add(aqua_hurt2, x - 20, y + 25, 10, 50, function() { seth_sprite(6520, 0, 0); scr_minishakeobj(); }); msgset_add(aqua_hurt3, x - 20, y + 25, 10, 50, function() { seth_sprite(6632, 0, 0); }); msgset_add(aqua_hurt4, x - 20, y + 25, 10, 50, function() { talked = -1; scr_var_delayed("talked", 1, 15); }); msgset_add_func(function() { talked = -1; scr_var_delayed("talked", 1, 15); }); msgset_add(aqua_hurt5, x - 20, y + 25, 10, 50, function() { seth_sprite(7701, 0, 0); }); msgset_add(aqua_hurt6, x - 20, y + 25, 10, 50); msgset_add_func(function() { seth_sprite(6348, 0, 1/3); scr_lerpvar("x", x, obj_aqua_enemy.x + 30, 15); scr_lerpvar("y", y, obj_aqua_enemy.y - 20, 15); talked = -1; scr_var_delayed("talked", 1, 15); }); msgset_add_func(function() { snd_play(snd_grab); seth_sprite(4200, 0, 1/3); scr_lerpvar("x", x, x + 200, 30); with (obj_aqua_enemy) scr_lerpvar("x", x, x + 200, 30); talked = -1; scr_var_delayed("talked", 1, 80); }); msgset_add_func(function() { scr_wincombat(); }); } seth_balloon(); } if (talked == 1 && scr_isphase("enemytalk")) scr_blconskip_boss(15); if (global.mnfight == 1.5) { if (scr_attackpriority(myattackpriority)) { if (!instance_exists(obj_growtangle)) instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle); if (!instance_exists(obj_moveheart)) scr_moveheart(); global.mnfight = 2; scr_turntimer(90); } } if (scr_isphase("bullets") && attacked == 0) { rtimer++; if (fight_type == "aqua") { if (rtimer == 12) { if (myattackchoice == 0) { global.monsterattackname[myself] = "SupportFire"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 313; } if (myattackchoice == 1) { global.monsterattackname[myself] = "OmegaBook"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 306; scr_turntimer(300); } if (myattackchoice == 2) { global.monsterattackname[myself] = "OmegaBookEx"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 306; dc.omega_ex_mode = true; scr_turntimer(480); } turns++; attacked = 1; } } } } if (global.myfight == 3) { xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); if (fight_type == "aqua") { if (acting == 1 && actcon == 0) { acting = 1.1; global.writerimg[0] = spr_purple_check1; global.writerimg[1] = spr_purple_check2; msgsetloc(0, "* SETH - AT \\I0 DF \\I1&A know-it-all that generally&only perseveres at studying./%", "obj_purple_enemy_slash_Step_0_gml_1191_0"); scr_battletext_default(); seth_sprite(1640, 0, 0.16666666666666666); } if (acting == 1.1 && actcon == 0 && !i_ex(obj_writer)) { msgset_add_func(function() { if (turns >= 5) seth_sprite(7319, 3, 0); else if (turns > 0) seth_sprite(2003, 0, 0.16666666666666666); actcon = 1; talked = 0; }); } if (acting == 2 && actcon == 0) { acting = 2.1; var seth_flattery1 = stringsetloc("* Everyone praised Seth's IQ!/%", "obj_purple_enemy_slash_Step_0_gml_1212_0"); var seth_flattery2 = stringsetloc("* Everyone praised Seth's tactics!/%", "obj_purple_enemy_slash_Step_0_gml_1213_0"); if (on_guard == 5) seth_flattery2 = string_replace(seth_flattery2, "%", ""); if (on_guard == 0) msgset(0, seth_flattery1); else msgset(0, seth_flattery2); if (on_guard == 5) msgset(1, mercy_dodge); scr_battle_sprite_actflash("kris"); scr_battle_sprite_actflash("susie"); scr_battle_sprite_actflash("ralsei"); snd_play_x(snd_mercyadd, 0.8, 1.2); if (on_guard != 5) { with (instance_create(x + 40, (y + 40) - (global.hittarget[myself] * 20), obj_dmgwriter)) { stayincamera = false; snapback = false; damage = min(100 - global.mercymod[other.myself], 50); type = 5; killamount = 0; } } else { seth_sprite(5201, 0, 0); scr_script_repeat(function() { with (instance_create((x + random(sprite_width)) - 60, y + random(sprite_height), obj_marker)) { image_angle = irandom(360); image_xscale = 2; image_yscale = 2; sprite_index = spr_sparestar_anim; image_alpha = 2; image_speed = 0.25; hspeed = 3; gravity = 1; gravity_direction = 0; scr_lerpvar("image_angle", image_angle, image_angle + ((360 + irandom(360)) * choose(-1, 1)), 30); scr_lerpvar("image_alpha", 1, 0, 15); scr_lerpvar("image_xscale", 2, 1, 15); scr_lerpvar("image_yscale", 2, 1, 15); scr_doom(id, 15); } }, 8, 2); } scr_battletext(); } if (acting == 2.1 && actcon == 0 && !i_ex(obj_writer)) { if (on_guard == 0) { var flattered_1 = stringsetloc("Ah, really?^2 I'm&hoping to be just&like my avian hero.../%", "obj_purple_enemy_slash_Step_0_gml_1278_0"); var flattered_2 = stringsetloc("W-^1Wait, wait! I know&this tactic!^2 You're&trying to make us&drop our guard!!/%", "obj_purple_enemy_slash_Step_0_gml_1279_0"); msgset_add(flattered_1, x - 20, y + 25, 10, 50, function() { seth_sprite(8366, 0, 0.16666666666666666); }); msgset_add(flattered_2, x - 20, y + 25, 10, 50, function() { seth_sprite(2177, 0, 0.16666666666666666); }); msgset_add_func(function() { with (obj_dmgwriter) { if (type == 5) { y = ystart; bounces = 2; x = (xstart + 45) - 80; y -= 20; scr_lerpvar("x", x, x - 30, 5, 2, "out"); } } seth_sprite(3161, 2, 0); scr_var_delayed("siner", 3, 2); scr_script_delayed(function() { scr_lerpvar("siner", 3, 6, 6); with (obj_dmgwriter) { if (type == 5) { snd_play(snd_play_x(snd_fall, 0.75, 1.5)); scr_lerpvar("x", x, x + 800, 30); scr_lerpvar("y", y, y - 80, 15, 2, "out"); scr_script_delayed(scr_lerpvar, 15, "y", y - 80, y, 15, 2, "in"); } } scr_script_delayed(function() { msgset_add(mercy_deny, x - 20, y + 25, 10, 50, function() { seth_sprite(1640, 0, 0); }); if (!i_ex(obj_writer)) seth_balloon(); msgset_add_func(function() { talked = 0; if (turns >= 5) seth_sprite(7319, 3, 0); else if (turns > 0) seth_sprite(2003, 0, 0.16666666666666666); actcon = 1; }); }, 60); scr_script_delayed(function() { scr_shakescreen(); snd_play_pitch(snd_glassbreak, 0.5); snd_play_pitch(snd_explosion_firework, 0.75); with (obj_dmgwriter) instance_destroy(); }, 40); msgset_add(mercy_throw, x - 20, y + 25, 10, 50); seth_balloon(x - 20 - 64); }, 30); }); } if (on_guard == 1) { var flattered_1 = stringsetloc("You...^2 you.../%", "obj_purple_enemy_slash_Step_0_gml_1331_0"); var flattered_2 = stringsetloc("You won't trick us!!/%", "obj_purple_enemy_slash_Step_0_gml_1332_0"); msgset_add(flattered_1, x - 20, y + 25, 10, 50, function() { seth_sprite(8366, 0, 0.16666666666666666); }); msgset_add(flattered_2, x - 20, y + 25, 10, 50, function() { seth_sprite(2177, 0, 0.16666666666666666); }); msgset_add_func(function() { with (obj_dmgwriter) { if (type == 5) { x -= 80; y -= 20; scr_lerpvar("x", x, x - 30, 5, 2, "out"); } } seth_sprite(3161, 2, 0); scr_var_delayed("siner", 3, 2); scr_script_delayed(function() { scr_lerpvar("siner", 3, 6, 6); with (obj_dmgwriter) { if (type == 5) { snd_play(snd_play_x(snd_fall, 0.75, 1.5)); scr_lerpvar("x", x, x + 800, 30); scr_lerpvar("y", y, y - 80, 15, 2, "out"); scr_script_delayed(scr_lerpvar, 15, "y", y - 80, y, 15, 2, "in"); } } scr_script_delayed(function() { msgset_add_func(function() { state_string = ""; talked = 0; if (turns >= 5) seth_sprite(7319, 3, 0); else if (turns > 0) seth_sprite(2003, 0, 0.16666666666666666); actcon = 1; }); }, 60); scr_script_delayed(function() { scr_shakescreen(); snd_play_pitch(snd_glassbreak, 0.5); snd_play_pitch(snd_explosion_firework, 0.75); with (obj_dmgwriter) instance_destroy(); }, 40); msgset_add(mercy_throw, x - 20, y + 25, 10, 50); seth_balloon(x - 20 - 64); }, 30); }); } if (on_guard == 2) { msgset_add_func(function() { with (obj_dmgwriter) { if (type == 5) { x -= 80; y -= 20; scr_lerpvar("x", x, x - 30, 5, 2, "out"); } } seth_sprite(3161, 2, 0); scr_var_delayed("siner", 3, 2); scr_script_delayed(function() { scr_lerpvar("siner", 3, 6, 6); with (obj_dmgwriter) { if (type == 5) { snd_play(snd_play_x(snd_fall, 0.75, 1.5)); scr_lerpvar("x", x, x + 800, 30); scr_lerpvar("y", y, y - 80, 15, 2, "out"); scr_script_delayed(scr_lerpvar, 15, "y", y - 80, y, 15, 2, "in"); } } scr_script_delayed(function() { msgset_add_func(function() { state_string = ""; talked = 0; if (turns >= 5) seth_sprite(7319, 3, 0); else if (turns > 0) seth_sprite(2003, 0, 0.16666666666666666); actcon = 1; }); }, 60); scr_script_delayed(function() { scr_shakescreen(); snd_play_pitch(snd_glassbreak, 0.5); snd_play_pitch(snd_explosion_firework, 0.75); with (obj_dmgwriter) instance_destroy(); }, 40); msgset_add(mercy_throw, x - 20, y + 25, 10, 50); seth_balloon(x - 20 - 64); }, 30); }); } if (on_guard == 3) { msgset_add(mercy_annoyed_1, x - 5, y + 25, 10, 50, function() { seth_sprite(7701, 0, 0.16666666666666666); with (obj_writer) { disablebutton1 = true; disablebutton2 = true; preventcskip = true; } scr_script_delayed(function() { with (obj_writer) instance_destroy(); }, 24); }); msgset_add_func(function() { with (obj_dmgwriter) { if (type == 5) { x -= 50; y += 24; } } seth_sprite(3792, 0, 0); talked = -1; scr_var_delay("talked", 0, 10); }); msgset_add_func(function() { snd_play(snd_jump); seth_sprite(3792, 1, 0); scr_lerpvar("y", y, y - 64, 12, 2, "out"); talked = -1; scr_var_delay("talked", 0, 12); }); msgset_add_func(function() { scr_lerpvar("y", y, y + 64, 8, 2, "in"); talked = -1; scr_var_delay("talked", 0, 6); }); msgset_add_func(function() { seth_sprite(3792, 0, 0); with (obj_dmgwriter) { depth = obj_purple_enemy.depth + 1; scr_lerpvar("kill", 0, -stretch, 4); scr_lerpvar("y", y, y + 20, 4); scr_script_delayed(function() { for (var a = 0; a < 6; a++) { with (instance_create(x, y, obj_bulletparent)) { sprite_index = spr_launchsmoke; image_xscale = 1 + (a * 0.5); image_yscale = image_xscale; depth = other.depth; direction = irandom_range(-4, 4); speed = (a * 2) + random(1); gravity_direction = 90; gravity = a * 0.1; var ded = 6 + irandom(3) + a; scr_lerpvar("image_alpha", 1, 0, ded); scr_lerpvar("image_angle", image_angle, (360 + irandom(360)) * choose(-1, 1), 30); scr_lerpvar("image_xscale", image_xscale, 0.25, ded * 2); scr_lerpvar("image_yscale", image_yscale, 0.25, ded * 2); scr_doom(id, ded); } with (instance_create(x, y, obj_bulletparent)) { sprite_index = spr_launchsmoke; image_xscale = 1 + (a * 0.5); image_yscale = image_xscale; depth = other.depth; direction = 180 + irandom_range(-4, 4); speed = (a * 2) + random(1); gravity_direction = 90; gravity = a * 0.1; var ded = 6 + irandom(3) + (a * 1); scr_lerpvar("image_alpha", 1, 0, ded); scr_lerpvar("image_angle", image_angle, (360 + irandom(360)) * choose(-1, 1), 30); scr_lerpvar("image_xscale", image_xscale, 0.25, ded * 2); scr_lerpvar("image_yscale", image_yscale, 0.25, ded * 2); scr_doom(id, ded); } } instance_destroy(); }, 4); } talked = -1; scr_var_delay("talked", 0, 3); }); msgset_add_func(function() { scr_shakescreen(); snd_play(snd_screenshake); talked = -1; scr_var_delay("talked", 0, 16); }); msgset_add_func(function() { if (turns >= 5) seth_sprite(7319, 3, 0); else seth_sprite(2003, 0, 0.16666666666666666); talked = -1; scr_var_delay("talked", 0, 4); }); msgset_add_func(function() { actcon = 1; talked = 0; }); } if (on_guard == 4) { msgset_add(mercy_annoyed_2, x - 5, y + 25, 10, 50, function() { seth_sprite(7701, 0, 0.16666666666666666); with (obj_writer) { disablebutton1 = true; disablebutton2 = true; preventcskip = true; } scr_script_delayed(function() { with (obj_writer) instance_destroy(); }, 30); }); msgset_add_func(function() { with (obj_dmgwriter) { if (type == 5) { x += 28; y += 18; } } seth_sprite(519, 0, 0); talked = -1; scr_var_delay("talked", 0, 20); }); msgset_add_func(function() { snd_play(snd_whistlebreath); with (obj_dmgwriter) { if (type == 5) { scr_lerpvar("x", x, x + 180, 60, 1, "in"); scr_doom(id, 60); } } seth_sprite(519, 1, 0); talked = -1; scr_var_delay("talked", 0, 60); }); msgset_add_func(function() { if (turns >= 5) seth_sprite(7319, 3, 0); else seth_sprite(2003, 0, 0.16666666666666666); talked = -1; scr_var_delay("talked", 0, 4); }); msgset_add_func(function() { actcon = 1; talked = 0; }); } if (on_guard == 5) { if (turns >= 5) seth_sprite(7319, 3, 0); else seth_sprite(2003, 0, 0.16666666666666666); msgset_add_func(function() { actcon = 1; talked = 0; }); } seth_balloon(); acting = 2.2; on_guard = scr_approach(on_guard, 5, 1); } if ((acting == 2.2 || acting == 1.1) && actcon == 0) { if (talked != -1) seth_balloon_control(); } if (actingsus == 1 && actconsus == 1) { scr_mercyadd(myself, 5); global.flag[1888] = 1; if (simultotal == 1) { var susiesim1 = stringsetloc("* Susie swaps Ralsei and Seth's glasses...!^2 ... no real effect.", "obj_purple_enemy_slash_Step_0_gml_1619_0"); var susiesim2 = stringsetloc("* Susie calls Seth a Berdly knockoff.^2 It was taken with pride!", "obj_purple_enemy_slash_Step_0_gml_1620_0"); var susiesim3 = stringsetloc("* Susie calls Seth a bookworm.^2 It was taken with pride!", "obj_purple_enemy_slash_Step_0_gml_1621_0"); msgset(0, choose(susiesim1, susiesim2, susiesim3)); scr_battletext_default(); actconsus = 20; } else { var susiesim1 = stringsetloc("* Susie calls Seth budget Berdly!", "obj_purple_enemy_slash_Step_0_gml_1629_0"); var susiesim2 = stringsetloc("* Susie calls Seth purple! (nice)", "obj_purple_enemy_slash_Step_0_gml_1630_0"); var susiesim3 = stringsetloc("* Susie calls Seth budget Ralsei!", "obj_purple_enemy_slash_Step_0_gml_1631_0"); msgset(0, choose(susiesim1, susiesim2, susiesim3)); scr_simultext("susie"); if (simulordersus == 0) actconsus = 20; else actconsus = 0; } } if (actingral == 1 && actconral == 1) { scr_mercyadd(myself, 5); global.flag[1888] = 1; if (simultotal == 1) { var ralseisim1 = stringsetloc("* Ralsei listens to Seth's explanations with patience!", "obj_purple_enemy_slash_Step_0_gml_1649_0"); var ralseisim2 = stringsetloc("* Ralsei shares his Manual with Seth!", "obj_purple_enemy_slash_Step_0_gml_1650_0"); var ralseisim3 = stringsetloc("* Ralsei sniff's Seth's scent!", "obj_purple_enemy_slash_Step_0_gml_1651_0"); msgset(0, choose(ralseisim1, ralseisim2, ralseisim3)); scr_battletext_default(); actconral = 20; } else { var ralseisim1 = stringsetloc("* Ralsei listens politely!", "obj_purple_enemy_slash_Step_0_gml_1659_0"); var ralseisim2 = stringsetloc("* Ralsei shows his Manual!", "obj_purple_enemy_slash_Step_0_gml_1660_0"); var ralseisim3 = stringsetloc("* Ralsei admires Seth's scent! (?)", "obj_purple_enemy_slash_Step_0_gml_1661_0"); msgset(0, choose(ralseisim1, ralseisim2, ralseisim3)); scr_simultext("ralsei"); if (simulorderral == 0) actconral = 20; else actconral = 0; } } } if (actcon == 20 || actconsus == 20 || actconral == 20) { if (scr_terminate_writer()) { actconsus = -1; actconral = -1; actcon = 1; } } if (actcon == 1 && !instance_exists(obj_writer)) scr_nextact(); } if (state == 3) scr_enemy_hurt(); enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }