if (global.monster[myself] == 1) { if (!done_intro) global.charturn = 3; if (global.mnfight == 0 && !done_intro) { msgset_add_func(function() { talked = -1; scr_var_delay("talked", 1, 10); }); msgset_add(stringsetloc("That's it,&CRIMINELLS!&No more MERCYS!!/%", "obj_blue_enemy_slash_Step_0_gml_13_0"), obj_yellow_enemy.x - 20, obj_yellow_enemy.y + 35, 10, 50, function() { obj_yellow_enemy.idlesprite = spr_yellow_point_left; obj_yellow_enemy.x -= 28; }); msgset_add(stringsetloc("EVERY CRIMES in&our CASTLE!!/%", "obj_blue_enemy_slash_Step_0_gml_17_0"), obj_yellow_enemy.x - 20, obj_yellow_enemy.y + 35, 10, 50); msgset_add(stringsetloc("I know they was&ALL YOU!!!&Now eat JUSTICE!!!/%", "obj_blue_enemy_slash_Step_0_gml_18_0"), obj_yellow_enemy.x - 20, obj_yellow_enemy.y + 35, 10, 50); msgset_add(stringsetloc("O^1, you three!&If you'd like to&survive your&punishment.../%", "obj_blue_enemy_slash_Step_0_gml_19_0"), x + 10, y + 35, 10, 50, function() { obj_yellow_enemy.idlesprite = spr_yellow_idle; obj_yellow_enemy.x += 28; }); msgset_add(stringsetloc("Find the TRUE&culprit of 4&UNSOLVED CASES./%", "obj_blue_enemy_slash_Step_0_gml_23_0"), x + 10, y + 35, 10, 50); msgset_add(stringsetloc("Yellow's \"JUSTICE\"&ACT will begin&each trial./%", "obj_blue_enemy_slash_Step_0_gml_24_0"), x + 10, y + 35, 10, 50); msgset_add(stringsetloc("..^1. and if you&lack EVIDENCE,&please ACT on me.&Hoho./%", "obj_blue_enemy_slash_Step_0_gml_25_0"), x + 10, y + 35, 10, 50); msgset_add_func(function() { obj_battlecontroller.alarm[2] = 1; done_intro = true; global.charturn = 0; }); blue_balloon(); rtimer = 0; global.mnfight = 1.25; } if (global.mnfight == 1.25) { if (talked == 1 && cantalk) scr_blconskip_boss(15); exit; } if (scr_isphase("enemytalk") && talked == 0) { scr_randomtarget(); setbattlemsg = false; event_user(1); myattackpriority = 1; scr_attackpriority(myattackpriority - 1); if (!instance_exists(obj_darkener)) instance_create(0, 0, obj_darkener); var synch_var; with (obj_yellow_enemy) synch_var = talk_var; if (synch_var == 0) msgset_add(stringsetloc("Innocent until&proven guilty./%", "obj_blue_enemy_slash_Step_0_gml_70_0"), x + 5, y + 35, 10, 50); if (synch_var == 1) msgset_add(stringsetloc("Justice is blind./%", "obj_blue_enemy_slash_Step_0_gml_71_0"), x + 5, y + 35, 10, 50); if (synch_var == 2) msgset_add(stringsetloc("We only seek...&to find the truth./%", "obj_blue_enemy_slash_Step_0_gml_72_0"), x + 5, y + 35, 10, 50); if (synch_var == 3) msgset_add(stringsetloc("Who revolves -&the world^1, or I?/%", "obj_blue_enemy_slash_Step_0_gml_73_0"), x + 5, y + 35, 10, 50); if (synch_var == 4) msgset_add(stringsetloc("Hmm..^1. a flower-&pressing item.../%", "obj_blue_enemy_slash_Step_0_gml_76_0"), x + 5, y + 35, 10, 50); if (synch_var == 5) msgset_add(stringsetloc("The yellow cloth...&Could it have&been burnt?/%", "obj_blue_enemy_slash_Step_0_gml_77_0"), x + 5, y + 35, 10, 50); if (synch_var == 6) msgset_add(stringsetloc("Hmm..^1. if she&used red food&coloring.../%", "obj_blue_enemy_slash_Step_0_gml_78_0"), x + 5, y + 35, 10, 50); if (synch_var == 7) msgset_add(stringsetloc(".../%", "obj_blue_enemy_slash_Step_0_gml_79_0"), x + 5, y + 35, 10, 50); if (synch_var == 8) msgset_add(stringsetloc("..^1. they did&WANT to be&smashed./%", "obj_blue_enemy_slash_Step_0_gml_81_0"), x + 5, y + 35, 10, 50); if (synch_var == 9) msgset_add(stringsetloc("..^1. any regrets,&Yellow?/%", "obj_blue_enemy_slash_Step_0_gml_82_0"), x + 5, y + 35, 10, 50); if (synch_var == 10) msgset_add(stringsetloc("So that hole's&red splatter was&food coloring!/%", "obj_blue_enemy_slash_Step_0_gml_83_0"), x + 5, y + 35, 10, 50); blue_balloon(); } if (talked == 1 && scr_isphase("enemytalk")) scr_blconskip_boss(15); if (global.mnfight == 1.5) { if (scr_attackpriority(myattackpriority)) { if (i_ex(obj_yellow_enemy) && global.monsterhp[obj_yellow_enemy.myself] < (global.monstermaxhp[obj_yellow_enemy.myself] * 0.5) && obj_yellow_enemy.healingraincon == 0) obj_yellow_enemy.healingraincon = 1; else if (!instance_exists(obj_growtangle)) instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle); if (myattackchoice == 0) { with (obj_growtangle) { x -= 50; with (obj_heart) x -= 50; } } if (myattackchoice == 1) { with (obj_growtangle) { maxxscale = 3.5; y += 48; } } if (myattackchoice == 2) { with (obj_growtangle) { x -= 50; maxxscale = 3; } } if (myattackchoice == 3) { with (obj_growtangle) maxxscale = 3; } if (!instance_exists(obj_moveheart) && obj_yellow_enemy.healingraincon == 0) scr_moveheart(); global.mnfight = 2; scr_turntimer(90); } } if (scr_isphase("bullets") && attacked == 0) { rtimer++; if (rtimer == 12 && i_ex(obj_yellow_enemy) && obj_yellow_enemy.healingraincon == 0) { if (myattackchoice == 0) { global.monsterattackname[myself] = "GuidedBullet"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 301; scr_turntimer(300); } if (myattackchoice == 1) { global.monsterattackname[myself] = "Dancers"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 302; scr_turntimer(270); } if (myattackchoice == 2) { global.monsterattackname[myself] = "ShootingGallery"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 303; scr_turntimer(225); } if (myattackchoice == 3) { global.monsterattackname[myself] = "BlueSinging"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 304; scr_turntimer(300); } turns++; attacked = 1; } } } if (global.myfight == 3) { xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); if (acting == 1 && actcon == 0) { actcon = 0.1; msgsetloc(0, "* You searched out evidence!/%", "obj_blue_enemy_slash_Step_0_gml_209_0"); scr_battle_sprite_actflash("kris"); scr_battle_sprite_actflash("susie"); scr_battle_sprite_actflash("ralsei"); scr_battletext(); } if (acting == 2 && actcon == 0) { actcon = 0.3; msgsetloc(0, "* You asked for help...!/%", "obj_blue_enemy_slash_Step_0_gml_242_0"); scr_battle_sprite_actflash("kris"); scr_battle_sprite_actflash("susie"); scr_battle_sprite_actflash("ralsei"); scr_battletext(); } if (actcon == 0.1) { if (!i_ex(obj_writer)) { actcon = 0.11; var all_evident = true; for (var a = 0; a < 7; a++) { if (!obj_yellow_enemy.evidence_obtained[a]) all_evident = false; } if (all_evident) { global.typer = 6; msgset(0, blue_evidence_4); scr_battletext(); msgset_add_func(function() { actcon = 0.5; }); } else { idlesprite = spr_blue_poses; image_index = 0; image_speed = 0; msgset_add(blue_evidence_1, x - 30, y + 55, 10, 50); msgset_add(blue_evidence_2, x - 30, y + 55, 10, 50); msgset_add_func(function() { snd_play(snd_item); with (obj_yellow_enemy) gain_evidence(); global.typer = 6; msgset(0, blue_evidence_3); scr_battletext(); }); msgset_add_func(function() { actcon = 0.5; }); } blue_balloon(); } } if (actcon == 0.2) { if (!i_ex(obj_writer)) { actcon = 0.11; give_hint(); blue_balloon(); } } if (actcon == 0.11) { if (!i_ex(obj_writer)) blue_balloon(); } if (actcon == 0.3) { if (!i_ex(obj_writer)) { if (global.hp[2] <= 0 || global.hp[3] <= 0) { msgsetloc(0, "* BLUE took pity on the party!/%", "obj_blue_enemy_slash_Step_0_gml_320_0"); actcon = 0.399; } else { msgsetloc(0, "* ..^1. but^1, no party member was DOWNED./%", "obj_blue_enemy_slash_Step_0_gml_325_0"); actcon = 0.5; } scr_battletext(); } } if (actcon == 0.399) { if (!i_ex(obj_writer)) { actcon = 0.3995; scr_script_delayed(function() { actcon = 0.4; }, 30); snd_play(snd_rain_short); if (global.hp[2] <= 0) { with (global.charinstance[1]) { with (instance_create(x + 34, y, obj_bulletparent)) { depth = -520; sprite_index = spr_blue_cloud_rain; image_speed = 1; } } } if (global.hp[3] <= 0) { with (global.charinstance[2]) { with (instance_create(x + 34, y, obj_bulletparent)) { depth = -530; sprite_index = spr_blue_cloud_rain; image_speed = 1; } } } } } if (actcon == 0.4) { if (!i_ex(obj_writer)) { with (obj_bulletparent) { if (sprite_index == spr_blue_cloud_rain) instance_destroy(); } snd_stop(snd_rain_short); actcon = 0.5; if (global.hp[2] <= 0) { with (global.charinstance[1]) { var dmgwr = scr_dmgwriter_selfchar(); with (dmgwr) { delay = 1; type = 3; } dmgwr.damage = -global.hp[2] + 60; scr_heal(1, -global.hp[2] + 60, false); scr_revive(1); var _flash = scr_oflash(); _flash.depth = depth - 1; } } if (global.hp[3] <= 0) { with (global.charinstance[2]) { var dmgwr = scr_dmgwriter_selfchar(); with (dmgwr) { delay = 1; type = 3; } dmgwr.damage = -global.hp[3] + 60; scr_heal(2, -global.hp[3] + 60, false); scr_revive(2); var _flash = scr_oflash(); _flash.depth = depth - 1; } } scr_tensionheal(-global.tension * 0.5); msgsetloc(0, "* Everyone was revived!/", "obj_blue_enemy_slash_Step_0_gml_412_0"); msgsetloc(1, "* TP was halved!/%", "obj_blue_enemy_slash_Step_0_gml_413_0"); scr_battletext(); } } if (actcon == 0.5) { if (!i_ex(obj_writer)) { image_speed = 0.16666666666666666; idlesprite = spr_enemy_blue_ballet; hurtsprite = spr_enemy_blue_ballet; sparedsprite = spr_enemy_blue_ballet; talked = 0; actcon = 1; } } if (actingsus == 1 && actconsus == 1) { snd_play_x(snd_mercyadd, 0.8, 1); scr_tensionheal(60); var susiesim1 = stringsetloc("* Susie gathers red herrings!", "obj_blue_enemy_slash_Step_0_gml_436_0"); var susiesim2 = stringsetloc("* Susie objects!", "obj_blue_enemy_slash_Step_0_gml_437_0"); var simchoice; if (irandom(1)) { simchoice = susiesim1; if (global.lang == "ja") scr_battle_sprite_set("susie", spr_susie_lawyer, 0.16666666666666666, true); else scr_battle_sprite_set("susie", spr_susie_lawyer_herring, 0.16666666666666666, true); scr_battle_sprite_actflash("susie"); } else { simchoice = susiesim2; scr_battle_sprite_set("susie", spr_susie_lawyer, 0.16666666666666666, true); scr_battle_sprite_actflash("susie"); } if (simulcheck || simultotal == 1) { msgset(0, help_out_3); global.typer = 4; battlewriter = instance_create(xx + 30, yy + 376 + (simultotal * 30), obj_writer); } simulcheck = true; msgset(0, simchoice); if (simultotal == 1) { scr_battletext_default(); actconsus = 20; } else { scr_simultext("susie"); if (simulordersus == 0) actconsus = 20; else actconsus = 0; } } if (actingral == 1 && actconral == 1) { snd_play_x(snd_mercyadd, 0.8, 1); scr_tensionheal(60); var ralseisim1 = stringsetloc("* Ralsei uses clairvoyance!", "obj_blue_enemy_slash_Step_0_gml_487_0"); var ralseisim2 = stringsetloc("* Ralsei draws court sketches!", "obj_blue_enemy_slash_Step_0_gml_488_0"); var simchoice; if (irandom(1)) { simchoice = ralseisim1; scr_battle_sprite_set("ralsei", spr_ralsei_lawyer_psychic, 0.16666666666666666, true); scr_battle_sprite_actflash("ralsei"); } else { simchoice = ralseisim2; scr_battle_sprite_set("ralsei", spr_ralsei_lawyer_psychic, 0.16666666666666666, true); scr_battle_sprite_actflash("ralsei"); } if (simulcheck || simultotal == 1) { msgset(0, help_out_3); global.typer = 4; battlewriter = instance_create(xx + 30, yy + 376 + (simultotal * 30), obj_writer); } simulcheck = true; msgset(0, simchoice); if (simultotal == 1) { scr_battletext_default(); actconral = 20; } else { 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; simulcheck = false; scr_battle_sprite_reset("susie"); scr_battle_sprite_reset("ralsei"); } } 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 }