if (global.mercymod[myself] < 0) global.mercymod[myself] = 0; if (global.monster[myself] == 1) { if (scr_isphase("enemytalk") && talked == 0 && global.monsterhp[myself] < global.monstermaxhp[myself] && i_ex(obj_seth_shinobeetle_controller) && obj_seth_shinobeetle_controller.scon == 0) { with (obj_seth_shinobeetle_controller) scon = 1; } if (i_ex(obj_seth_shinobeetle_controller) && obj_seth_shinobeetle_controller.scon > 0) { } else if (scr_isphase("enemytalk") && talked == 0) { scr_randomtarget(); setbattlemsg = false; myattackchoice = choose(0); 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; rr = choose(0, 1, 2, 3); var _secondballoon = false; if (i_ex(obj_seth_shinobeetle_controller) && global.mercymod[myself] >= 100) convince_max_mercy_count++; if (i_ex(obj_seth_shinobeetle_controller) && puppydogeyes == 1) { puppydogeyes = 2; msgsetloc(0, "Are you&really going&to let&that work!?/%", "obj_shinobeetle_enemy_slash_Step_0_gml_38_0"); scr_enemyblcon(obj_seth_shinobeetle_controller.x + 29, obj_seth_shinobeetle_controller.y - 16, 13); global.mnfight = 1.5; } else if (i_ex(obj_seth_shinobeetle_controller) && global.mercymod[myself] >= 100 && convince_max_mercy_count >= 2) { msgsetloc(0, "Heh^1, they don't&realize they can&ACT and SPARE&on the same turn!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_44_0"); scr_enemyblcon(obj_seth_shinobeetle_controller.x + 29, obj_seth_shinobeetle_controller.y - 16, 13); _secondballoon = true; } else if (i_ex(obj_seth_shinobeetle_controller) && global.mercymod[myself] > 0) { msgsetloc(0, "Don't worry,&I'm right&behind you!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_50_0"); scr_enemyblcon(obj_seth_shinobeetle_controller.x + 29, obj_seth_shinobeetle_controller.y - 16, 13); global.mnfight = 1.5; } else if (scr_monsterpop() > 1 || i_ex(obj_seth_shinobeetle_controller)) { if (rr == 0) msgsetloc(0, "The sound&of reeds,&helter and&skelter.", "obj_shinobeetle_enemy_slash_Step_0_gml_56_0"); if (rr == 1) msgsetloc(0, "Blackbirds,&calling to&the dead&of night.", "obj_shinobeetle_enemy_slash_Step_0_gml_57_0"); if (rr == 2) msgsetloc(0, "Rice,&where a&wedding&had been.", "obj_shinobeetle_enemy_slash_Step_0_gml_58_0"); if (rr == 3) msgsetloc(0, "Love me...&DO!!!!", "obj_shinobeetle_enemy_slash_Step_0_gml_59_0"); scr_enemyblcon(x - 0, y + 70, 10); } else { if (first_turn_alone == false) { rr = choose(0, 1, 2); if (rr == 0) msgsetloc(0, "Oh^1, am I alone?&Can I quit being&a ninja now?", "obj_shinobeetle_enemy_slash_Step_0_gml_68_0"); if (rr == 1) msgsetloc(0, "Ah^1, I'm by&myself^1? That's&a relief!", "obj_shinobeetle_enemy_slash_Step_0_gml_69_0"); if (rr == 2) msgsetloc(0, "Phew^1, it's just&me^1? Time to think&for yourself!", "obj_shinobeetle_enemy_slash_Step_0_gml_70_0"); first_turn_alone = true; } else { rr = choose(0, 1, 2); if (rr == 0) msgsetloc(0, "Peace&and&love!", "obj_shinobeetle_enemy_slash_Step_0_gml_78_0"); if (rr == 1) msgsetloc(0, "Could I get&a little help&from my friends?", "obj_shinobeetle_enemy_slash_Step_0_gml_79_0"); if (rr == 2) msgsetloc(0, "I'm happy&just to dance&with you!", "obj_shinobeetle_enemy_slash_Step_0_gml_80_0"); } scr_enemyblcon(x - 0, y + 70, 10); } if (i_ex(obj_seth_shinobeetle_controller)) { if (global.mercymod[myself] > 0) { snd_play_x(snd_mercyadd, 0.8, 1); __mercydmgwriter = instance_create(global.monsterx[myself], (global.monstery[myself] + 20) - instance_number(obj_dmgwriter) - (instance_number(obj_dmgwriter) * 20), obj_dmgwriter); __mercydmgwriter.damage = -20; __mercydmgwriter.type = 5; global.mercymod[myself] -= 20; } } talked = 1; if (_secondballoon == true) talked = 0.6; talktimer = 0; rtimer = 0; } if (talked == 0.6 && !i_ex(obj_writer)) { msgsetloc(0, "Shinobeetle!&We've got this!&Keep it up!!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_107_0"); scr_enemyblcon(obj_seth_shinobeetle_controller.x + 29, obj_seth_shinobeetle_controller.y - 16, 13); talked = 1; global.mnfight = 1.5; } if (talked == 1 && scr_isphase("enemytalk")) scr_blconskip(15); if (global.mnfight == 1.5 && !i_ex(obj_writer)) { 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_shinobeetle_controller)) { global.monsterattackname[myself] = "jumpingshuriken"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 146; scr_turntimer(200); global.monsterattackname[myself] = "SupportFire"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 313; } else { var _usemigosp = false; for (var i = 0; i < instance_number(obj_shinobeetle_enemy); i++) { enemy[i] = instance_find(obj_shinobeetle_enemy, i); if (enemy[i].object_index != obj_shinobeetle_enemy) _usemigosp = true; } for (var i = 0; i < instance_number(obj_dbulletcontroller); i++) { enemy[i] = instance_find(obj_dbulletcontroller, i); if (enemy[i].type == 146) _usemigosp = true; } if (scr_monsterpop() == 1 && !i_ex(obj_seth_shinobeetle_controller)) { global.monsterattackname[myself] = "dancingbeetle"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 144.5; scr_turntimer(110); } else if (_usemigosp == true && global.flag[1870] == 1) { global.monsterattackname[myself] = "migosproach"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 146.5; scr_turntimer(200); } else if (myattackchoice == 0 && _usemigosp == false) { global.monsterattackname[myself] = "jumpingshuriken"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 146; scr_turntimer(200); } } turns += 1; global.typer = 6; global.fc = 0; rr = choose(0, 1, 2, 3); attacked = 1; } } if (global.mnfight == 2 && global.turntimer <= 1) { if (setbattlemsg == false) { global.typer = 6; global.fc = 0; rr = choose(0, 1, 2, 3); if (scr_messagepriority(random(2))) { if (rr == 0) global.battlemsg[0] = stringsetloc("* Shinobeetle waits for the other enemies to pose^1, then copies them.", "obj_shinobeetle_enemy_slash_Step_0_gml_216_0"); if (rr == 1) global.battlemsg[0] = stringsetloc("* Shinobeetle polishes its bronzed shurakins.", "obj_shinobeetle_enemy_slash_Step_0_gml_217_0"); if (rr == 2) global.battlemsg[0] = stringsetloc("* Shinobeetle says \"nin\", then runs around on tiptoes.", "obj_shinobeetle_enemy_slash_Step_0_gml_218_0"); if (rr == 3) global.battlemsg[0] = stringsetloc("* Shinobeetle spreads diatomaceous earth caltrops.", "obj_shinobeetle_enemy_slash_Step_0_gml_219_0"); if (irandom(100) < 3) global.battlemsg[0] = stringsetloc("* Smells like roasted chestnuts.", "obj_shinobeetle_enemy_slash_Step_0_gml_220_0"); } if (scr_monsterpop() == 1 && !i_ex(obj_seth_shinobeetle_controller)) { if (rr == 0) global.battlemsg[0] = stringsetloc("* Shinobeetle happily cuts a pizza with a non-ninja sai.", "obj_shinobeetle_enemy_slash_Step_0_gml_225_0"); if (rr == 1) global.battlemsg[0] = stringsetloc("* Shinobeetle uses its regular alone-time smoke bombs.", "obj_shinobeetle_enemy_slash_Step_0_gml_226_0"); if (rr == 2) global.battlemsg[0] = stringsetloc("* Shinobeetle creeps through shadows and cracks.", "obj_shinobeetle_enemy_slash_Step_0_gml_227_0"); if (rr == 3) global.battlemsg[0] = stringsetloc("* Shinobeetle uses a kunai as a bookmark.", "obj_shinobeetle_enemy_slash_Step_0_gml_228_0"); } if (global.monsterstatus[myself] == 1) { if (scr_messagepriority(100)) global.battlemsg[0] = stringsetloc("* Shinobeetle conceals its exhaustion with ninja techniques.", "obj_shinobeetle_enemy_slash_Step_0_gml_239_0"); } if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 4)) { if (scr_messagepriority(101)) global.battlemsg[0] = stringsetloc("* Shinobeetle flips on its back helplessly.", "obj_shinobeetle_enemy_slash_Step_0_gml_234_0"); } 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, "* SHINOBEETLE - Only a ninja by Seth's command^1. The only thing keeping the ruse is peer pressure./%", "obj_shinobeetle_enemy_slash_Step_0_gml_257_0"); scr_battletext_default(); } if (acting == 2 && actcon == 0) { acting = 2.1; msgsetloc(0, "* You told Shinobeetle to come to your side!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_265_0"); scr_battletext_default(); } if (acting == 2.1 && actcon == 0 && !i_ex(obj_writer)) { acting = 0; actcon = 1; convince_count++; if (convince_count >= 5) { msgsetloc(0, "* You CONVINCED Shinobeetle..^1. this time^1, with puppy dog eyes!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_278_0"); scr_battletext_default(); scr_mercyadd(myself, 100); if (puppydogeyes == 0) puppydogeyes = 1; } else { scr_mercyadd(myself, 35); if (scr_monsterpop() > 1 || i_ex(obj_seth_shinobeetle_controller)) { msgsetloc(0, "* But^1, the enemy was too nervous!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_286_0"); scr_battletext_default(); } else { msgsetloc(0, "* ..^1. but^1, the enemy already wants to do that!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_287_0"); scr_battletext_default(); } } } if (actingsus == 1 && actconsus == 1) { var rand = choose(0, 1, 2); if (rand == 0) msgsetloc(0, "* Susie flips over a beetle!", "obj_shinobeetle_enemy_slash_Step_0_gml_296_0"); if (rand == 1) msgsetloc(0, "* Susie encourages beetles to fight!", "obj_shinobeetle_enemy_slash_Step_0_gml_297_0"); if (rand == 2) msgsetloc(0, "* Susie catches bugs with her hands!", "obj_shinobeetle_enemy_slash_Step_0_gml_298_0"); scr_simultext("susie"); if (global.hp[1] < 1 && global.hp[3] < 1) scr_mercyadd(myself, 50); else scr_mercyadd(myself, 20); 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 unseals a cup jelly!", "obj_shinobeetle_enemy_slash_Step_0_gml_312_0"); if (rand == 1) msgsetloc(0, "* Ralsei pretends to be a root veg!", "obj_shinobeetle_enemy_slash_Step_0_gml_313_0"); if (rand == 2) msgsetloc(0, "* Ralsei listens to a white album!", "obj_shinobeetle_enemy_slash_Step_0_gml_314_0"); scr_simultext("ralsei"); if (global.hp[2] < 1 && global.hp[1] < 1) scr_mercyadd(myself, 50); else scr_mercyadd(myself, 20); 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)) scr_nextact(); } if (state == 3) { scr_enemyhurt_tired_after_damage(0.5); scr_enemy_hurt(); } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }