if (global.monster[myself] == 1) { if (scr_isphase("enemytalk") && talked == 0) { scr_randomtarget(); if (!instance_exists(obj_darkener)) instance_create(0, 0, obj_darkener); global.typer = 50; msgsetloc(0, "Graze!", "obj_dojograzeenemy_slash_Step_0_gml_15_0"); scr_enemyblcon(x - 160, y, 3); talked = 1; talktimer = 0; } if (talked == 1 && scr_isphase("enemytalk")) { rtimer = 0; scr_blconskip(15); if (scr_isphase("bullets")) { if (!instance_exists(obj_moveheart)) scr_moveheart(); if (!instance_exists(obj_growtangle)) instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle); } } if (scr_isphase("bullets") && attacked == 0) { rtimer += 1; if (rtimer == 12) { rr = 0; if (rr == 0) { global.inv = 0; global.monsterattackname[myself] = "HomingDiamonds"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 48; dc.btimer = 135; dc.damage = global.monsterat[myself] * 5; dc.timermax = 20; dc.grazepoints = 7; fighttimer = 0; speedtimer = 0; bulletgrazecon = 1; global.flag[39] = 1; } scr_turntimer(999999); turns += 1; global.typer = 6; global.fc = 0; rr = 0; if (rr == 0) global.battlemsg[0] = stringsetloc("* How'd you get past!?", "obj_dojograzeenemy_slash_Step_0_gml_71_0"); attacked = 1; } else { scr_turntimer(120); } } } 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, "* GRAZECHALLENGE - Graze the bullets!/%", "obj_dojograzeenemy_slash_Step_0_gml_91_0"); scr_battletext_default(); } if (actingsus == 1 && actconsus == 1) { msgsetloc(0, "* Susie acted!/%", "obj_dojograzeenemy_slash_Step_0_gml_97_0"); scr_battletext_default(); actcon = 1; actconsus = 0; } if (actingral == 1 && actconral == 1) { msgsetloc(0, "* Ralsei acted!/%", "obj_dojograzeenemy_slash_Step_0_gml_106_0"); scr_battletext_default(); actcon = 1; actconral = 0; } if (actcon == 1 && !instance_exists(obj_writer)) scr_nextact(); } if (bulletgrazecon == 1) { global.turntimer = 999; fighttimer++; speedtimer++; if (speedtimer >= 30 && i_ex(dc)) { if (dc.timermax > 8) dc.timermax--; speedtimer = 0; } if (global.tension == global.maxtension) { global.flag[39] = 1; hspeed = 10; global.turntimer = -1; bulletgrazecon = 2; } else if (global.inv > 0) { global.flag[36] = 1; global.flag[39] = 1; global.turntimer = -1; hspeed = 10; bulletgrazecon = 1; } } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }