if (global.monster[myself] == 1) { if (scr_isphase("enemytalk") && talked == 0 && i_ex(obj_seth_shi_controller) && instance_number(obj_scarecrow_enemy) == 1 && obj_seth_shi_controller.con == 1) obj_seth_shi_controller.con = 3; if (i_ex(obj_seth_shi_controller) && ((obj_seth_shi_controller.con > 0 && obj_seth_shi_controller.con < 1) || obj_seth_shi_controller.con > 1) && obj_seth_shi_controller.con != 4) { } else if (scr_isphase("enemytalk") && talked == 0) { scr_randomtarget(); setbattlemsg = false; myattackchoice = choose(0, 1); myattackpriority = 1; if (myattackchoice == 2) myattackpriority = 50; scr_attackpriority(myattackpriority - 1); if (!instance_exists(obj_darkener)) instance_create(0, 0, obj_darkener); global.typer = 50; if (instance_exists(obj_seth_shi_controller)) { scr_battle_sprite_reset("kris"); scr_battle_sprite_reset("susie"); scr_battle_sprite_reset("ralsei"); if (!i_ex(obj_battleblcon)) { if (instance_number(obj_scarecrow_enemy) == 3) { msgsetloc(0, "That's it!&Power&formation!/%", "obj_scarecrow_enemy_slash_Step_0_gml_35_0"); scr_enemyblcon(obj_seth_shi_controller.x - 15, obj_seth_shi_controller.y + 38, 10); } if (instance_number(obj_scarecrow_enemy) == 2) { sethballoonorder++; if (sethballoonorder == 1) msgsetloc(0, "Heh^1, getting rid&of one doesn't&change anything!/%", "obj_scarecrow_enemy_slash_Step_0_gml_41_0"); if (sethballoonorder >= 2) msgsetloc(0, "It..^1. still&didn't change&anything!/%", "obj_scarecrow_enemy_slash_Step_0_gml_42_0"); scr_enemyblcon(obj_seth_shi_controller.x - 15, obj_seth_shi_controller.y + 38, 10); } if (instance_number(obj_scarecrow_enemy) == 1) global.mnfight = 1.5; } } else if (instance_exists(obj_kawkaw_enemy)) { } else { if (sadboy == true) { rr = choose(0, 1, 2); if (rr == 0) msgsetloc(0, "Uhh... don't&look at this.", "obj_scarecrow_enemy_slash_Step_0_gml_57_0_b"); if (rr == 1) msgsetloc(0, "Oh, GROSS!&Someone's, uh...&eww! Bullets!", "obj_scarecrow_enemy_slash_Step_0_gml_58_0_b"); if (rr == 2) msgsetloc(0, "Oh, no! That,&green box!! Ugh!&What IS that?", "obj_scarecrow_enemy_slash_Step_0_gml_59_0"); } else { rr = choose(0, 1, 2, 3); if (rr == 0) msgsetloc(0, "HEH^1! I'm on&that PSYCHO DRIFT^1! Try&and CATCH me!", "obj_scarecrow_enemy_slash_Step_0_gml_55_0"); if (rr == 1) msgsetloc(0, "HEH^1! Follow&THIS^1! RISING...&SUMMERSALT!!", "obj_scarecrow_enemy_slash_Step_0_gml_56_0"); if (rr == 2) msgsetloc(0, "Real boys&can't do THIS!&SONIC DASH!!!", "obj_scarecrow_enemy_slash_Step_0_gml_57_0"); if (rr == 3) msgsetloc(0, "CROW KICK!&HAH^1, did you see that?&Too slow...", "obj_scarecrow_enemy_slash_Step_0_gml_58_0"); } scr_enemyblcon(x - 0, y + 50, 10); } talked = 1; talktimer = 0; rtimer = 0; } if (talked == 1 && scr_isphase("enemytalk") && !instance_exists(obj_kawkaw_enemy)) { if (instance_exists(obj_seth_shi_controller) && !instance_exists(obj_writer)) global.mnfight = 1.5; else scr_blconskip(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 += 1; if (rtimer == 12) { if (i_ex(obj_seth_shi_controller)) { if (instance_number(obj_scarecrow_enemy) == 1) { global.monsterattackname[myself] = "scythebomb"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 145; if (i_ex(obj_seth_shi_controller)) { with (obj_seth_shi_controller.aqua_marker) visible = false; aqua = instance_create_depth(obj_seth_shi_controller.aqua_marker.x, obj_seth_shi_controller.aqua_marker.y, depth - 100, obj_attack_knifefan_manager); } scr_turntimer(240); redobattlemsg = true; } else { global.monsterattackname[myself] = "shi spring"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 155; scr_turntimer(230); } } else { if (myattackchoice == -1) { global.monsterattackname[myself] = "SplittingShuriken"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 144; } if (myattackchoice == 0) { global.monsterattackname[myself] = "easy shi attack"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 154; } if (myattackchoice == 1) { global.monsterattackname[myself] = "scythebomb"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 145; } scr_turntimer(250); } turns += 1; attacked = 1; } } if ((global.mnfight == 2 && global.turntimer <= 1) || redobattlemsg == true) { if (setbattlemsg == false || redobattlemsg == true) { redobattlemsg = false; if (state == 11) state = 0; global.typer = 6; global.fc = 0; rr = choose(0, 1, 2, 3); if (scr_messagepriority(random(2))) { if (rr == 0) global.battlemsg[0] = stringsetloc("* Shi is focusing its Chi^1, which it also calls its Shi.", "obj_scarecrow_enemy_slash_Step_0_gml_164_0"); if (rr == 1) global.battlemsg[0] = stringsetloc("* Shi acts like it's jumping all over the place but does not actually move.", "obj_scarecrow_enemy_slash_Step_0_gml_165_0"); if (rr == 2) global.battlemsg[0] = stringsetloc("* Shi lowers its hat and chuckles^1. \"Time to get serious...\"", "obj_scarecrow_enemy_slash_Step_0_gml_166_0"); if (rr == 3) global.battlemsg[0] = stringsetloc("* Shi shouts \"heh^1, behind you!\" Then^1, doesn't actually move.", "obj_scarecrow_enemy_slash_Step_0_gml_167_0"); if (irandom(100) < 3) global.battlemsg[0] = stringsetloc("* Smells like straw.", "obj_scarecrow_enemy_slash_Step_0_gml_168_0"); } if (global.monsterstatus[myself] == 1) { if (scr_messagepriority(100)) global.battlemsg[0] = stringsetloc("* Shi's movements finally slow.", "obj_scarecrow_enemy_slash_Step_0_gml_184_0"); } if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 4)) { if (scr_messagepriority(101)) global.battlemsg[0] = stringsetloc("* Shi leaks straw.", "obj_scarecrow_enemy_slash_Step_0_gml_174_0"); } if (global.mercymod[myself] >= 100) { if (scr_messagepriority(102)) global.battlemsg[0] = stringsetloc("* Shi seems satisfied.", "obj_scarecrow_enemy_slash_Step_0_gml_179_0"); } if (sadboy == true) global.battlemsg[0] = stringsetloc("* The opponent...&* ... denies being the opponent.", "obj_scarecrow_enemy_slash_Step_0_gml_203_0_b"); setbattlemsg = true; } } } if (global.myfight == 3) { xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); if (acting == 1 && actcon == 0) { actcon = 1; msgsetloc(0, "* SHI - YELLOW's yes-man^1. A scarecrow with super speed..^1. that can't move./", "obj_scarecrow_enemy_slash_Step_0_gml_203_0"); msgnextloc("* Supposed to be ORANGE's lackey^1, but they've never met^1. As it can't move./%", "obj_scarecrow_enemy_slash_Step_0_gml_204_0"); scr_battletext_default(); } if (acting == 2 && actcon == 0) { with (obj_herokris) x += 6; with (obj_herokris) y += 10; msgsetloc(0, "* You acted like a scared crow!", "obj_scarecrow_enemy_slash_Step_0_gml_216_0"); scr_simultext("kris"); scr_act_charsprite("kris", spr_kris_chicken, 0.16666666666666666, 1); if (simulorderkri == 0) actcon = 20; else actcon = -1; if (global.hp[2] < 1 && global.hp[3] < 1) scr_mercyadd(myself, 50); else scr_mercyadd(myself, 30); } if (acting == 3 && actcon == 0) { msgsetloc(0, "* Press with the right timing to INTIMIDATE!", "obj_scarecrow_enemy_slash_Step_0_gml_229_0"); scr_battletext_default(); acting = 3.1; } if (acting == 3.1 && actcon == 0 && i_ex(obj_writer) && obj_writer.reachedend == 1) { instance_create(camerax() + 304, cameray() + 80, obj_scarecrow_intimidate); box = instance_create(camerax() + 320, cameray() + 220, obj_scarecrow_intimidate2); box.parentid = id; acting = 3.2; } if (acting == 3.2 && actcon == 0 && !i_ex(obj_scarecrow_intimidate2)) { scr_battle_sprite_reset("kris"); scr_battle_sprite_reset("susie"); scr_battle_sprite_reset("ralsei"); with (obj_writer) instance_destroy(); } if (create_afterimage == true) { custom_draw_example++; if ((custom_draw_example % 6) == 0) { with (obj_heroparent) { afterimage = instance_create(x, y, obj_afterimage_fog); afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; with (afterimage) { speed = 2.7; direction = irandom(360); fadeSpeed = 0.1; } } } } if (actingsus == 1 && actconsus == 1) { var rand = choose(0, 1, 2); if (rand == 0) msgsetloc(0, "* Susie eats hay!", "obj_scarecrow_enemy_slash_Step_0_gml_282_0"); if (rand == 1) msgsetloc(0, "* Susie pretends to scare crows!", "obj_scarecrow_enemy_slash_Step_0_gml_283_0"); if (rand == 2) msgsetloc(0, "* Susie beats up the ground!", "obj_scarecrow_enemy_slash_Step_0_gml_284_0"); scr_simultext("susie"); if (global.hp[1] < 1 && global.hp[3] < 1) scr_mercyadd(myself, 50); else scr_mercyadd(myself, 30); global.flag[1888] = 1; if (simulordersus == 0) actconsus = 20; else actconsus = 0; } if (actingral == 1 && actconral == 1) { var rand = choose(0, 1, 2); if (rand == 0) msgsetloc(0, "* Ralsei trades hats!", "obj_scarecrow_enemy_slash_Step_0_gml_297_0"); if (rand == 1) msgsetloc(0, "* Ralsei poses like a scarecrow!", "obj_scarecrow_enemy_slash_Step_0_gml_298_0"); if (rand == 2) msgsetloc(0, "* Ralsei eats hay!", "obj_scarecrow_enemy_slash_Step_0_gml_299_0"); scr_simultext("ralsei"); if (global.hp[1] < 1 && global.hp[2] < 1) scr_mercyadd(myself, 50); else scr_mercyadd(myself, 30); global.flag[1888] = 1; 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)) { with (obj_herokris) { x = xstart; y = ystart; } scr_nextact(); scr_act_charsprite_end(); with (obj_scarecrow_shine) { timer = 0; con = 2; } create_afterimage = false; snd_stop(snd_sneo_overpower); } } if (state == 3) { scr_enemyhurt_tired_after_damage(0.5); hurttimer -= 1; if (hurttimer < 0) { state = 0; } else { if (global.monster[myself] == 0 && hurttimer == 1) { defeatanim = instance_create_depth(x - 38, y - 2, depth, obj_defeatanim_shi); defeatanim.sprite_index = spr_shi_surrender; defeatanim.image_index = 0; defeatanim.image_blend = merge_color(c_gray, c_white, 0.1); defeatanim.image_xscale = image_xscale; defeatanim.image_yscale = image_yscale; defeatanim.image_speed = 1/3; instance_destroy(); scr_monsterdefeat(); if (recruitable == 1 && global.flag[61] == 0) { global.flag[63] = 1; if (global.flag[global.monstertype[myself] + 600] != -1) { global.flag[global.monstertype[myself] + 600] = -1; _rtext = instance_create(global.monsterx[myself], global.monstery[myself] - 40, obj_recruitanim); _rtext.image_index = 7; } } for (var i = 0; i < 8; i++) { with (instance_create_depth(x + 40 + irandom(40), y + 20 + irandom(60), depth - 100, obj_shinobeetle_smokecloud)) { image_xscale = 1; image_yscale = 1; image_index = i; image_speed = 0; direction = 45 + (i * 90); speed = 2 + random(1); image_alpha -= random(0.07); fadespeed = 0.08; } } } hurtshake += 1; if (hurtshake > 1) { if (shakex > 0) shakex -= 1; if (shakex < 0) shakex += 1; shakex = -shakex; hurtshake = 0; } } } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }