if (global.monster[myself] == 1) { if (scr_isphase("enemytalk") && talked == 0) { scr_randomtarget(); 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; rr = choose(0, 1, 2, 3); if (rr == 0) msgsetloc(0, "Hoofah&doofah.", "obj_zapper_enemy_slash_Step_0_gml_41_0"); if (rr == 1) msgsetloc(0, "Yeah, yeah,&Mr. Tenna's&orders.", "obj_zapper_enemy_slash_Step_0_gml_42_0"); if (rr == 2) msgsetloc(0, "Yeah, yeah,&show your ID!", "obj_zapper_enemy_slash_Step_0_gml_43_0"); if (rr == 3) msgsetloc(0, "Deez buttons&ain't for&show, twerps.", "obj_zapper_enemy_slash_Step_0_gml_44_0"); if (ractused) { ractused = false; msgsetloc(0, "Hey, I can&see da music.!", "obj_zapper_enemy_slash_Step_0_gml_45_0"); } if (sactused) { sactused = false; msgsetloc(0, "D-don't touch&that, you's!", "obj_zapper_enemy_slash_Step_0_gml_46_0"); } if (sharpshootballoon == true) { sharpshootballoon = false; msgsetloc(0, "My buttons... pushed.", "obj_zapper_enemy_slash_Step_0_gml_51_0_b"); } if (volumeused) { volumeused = false; if (myself == 0) msgsetloc(0, "CAN SOMEONE&TURN THAT&BACK DOWN?", "obj_zapper_enemy_slash_Step_0_gml_50_0"); if (myself == 1) msgsetloc(0, "WHAT? I CAN'T&HEAR YOU!!!", "obj_zapper_enemy_slash_Step_0_gml_51_0"); if (myself == 2) msgsetloc(0, "TURN IT UP??&OKAY, YOU DA BOSS!", "obj_zapper_enemy_slash_Step_0_gml_52_0"); } if (mutedlastturn) { mutedlastturn = false; msgsetloc(0, " ", "obj_zapper_enemy_slash_Step_0_gml_54_0"); } scr_enemyblcon(x - 0, y + 36, 10); talked = 1; talktimer = 0; rtimer = 0; } if (talked == 1 && scr_isphase("enemytalk")) 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_pippins_enemy) && i_ex(obj_volumeup)) myattackchoice = 0; if (myattackchoice == 0) { global.monsterattackname[myself] = "zapper laser"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 65; } else if (myattackchoice == 1) { global.monsterattackname[myself] = "zapper cannon"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 66; } else if (myattackchoice == 2) { global.monsterattackname[myself] = "volume control"; dc = scr_bulletspawner(x, y, obj_dbulletcontroller); dc.type = 67; } scr_turntimer(200); turns += 1; global.typer = 6; global.fc = 0; rr = choose(0, 1, 2, 3); if (scr_messagepriority(random(2))) { if (rr == 0) global.battlemsg[0] = stringsetloc("* Zapper clicks and clacks, zip and zaps.", "obj_zapper_enemy_slash_Step_0_gml_124_0"); if (rr == 1) global.battlemsg[0] = stringsetloc("* Zapper quickly presses the buttons on its chest.", "obj_zapper_enemy_slash_Step_0_gml_125_0"); if (rr == 2) global.battlemsg[0] = stringsetloc("* Zapper keeps just popping all night long.", "obj_zapper_enemy_slash_Step_0_gml_126_0"); if (rr == 3) global.battlemsg[0] = stringsetloc("* Zapper checks if Tenna is watching.", "obj_zapper_enemy_slash_Step_0_gml_127_0"); } if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3)) { if (scr_messagepriority(100 + random(2))) global.battlemsg[0] = stringsetloc("* Zapper's buttons feel mushy.", "obj_zapper_enemy_slash_Step_0_gml_133_0"); } if (global.monsterstatus[myself] == 1) { if (scr_messagepriority(100 + random(2))) global.battlemsg[0] = stringsetloc("* Zapper's seeing visions of Lanino.", "obj_zapper_enemy_slash_Step_0_gml_139_0"); } if (global.mercymod[myself] >= 100) { if (scr_messagepriority(100 + random(2))) global.battlemsg[0] = stringsetloc("* Zapper blushes in infrared, too.", "obj_zapper_enemy_slash_Step_0_gml_145_0"); } attacked = 1; } } if (global.mnfight == 2 && global.turntimer < 1) { muted = false; closedcaptioncon = 0; if (volumecountdestination > 10) { volumecountdestination = 10; displayvolumetimer = 20; snd_volume(global.batmusic[1], 1, 1); } with (obj_volumeup) instance_destroy(); with (obj_volumeup2) instance_destroy(); } } 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, "* ZAPPER - When it changes channels, who knows where you'll end up?/%", "obj_zapper_enemy_slash_Step_0_gml_184_0"); scr_battletext_default(); } if (acting == 2 && actcon == 0) { volumeused = true; audio_resume_sound(global.batmusic[1]); scr_mercyadd(myself, 25); VolumeUpcount++; if (VolumeUpcount == 1) { msgsetloc(0, "* You turned up the volume!/%", "obj_zapper_enemy_slash_Step_0_gml_198_0"); scr_battletext_default(); acting = 20; instance_create(x, y, obj_volumeup); } else if (VolumeUpcount > 1) { msgsetloc(0, "* The bullets increased in volume! Try getting close to gather TP!/%", "obj_zapper_enemy_slash_Step_0_gml_207_0"); scr_battletext_default(); instance_create(x, y, obj_volumeup); actcon = 1; volumecountdestination = 15; displayvolumetimer = 60; snd_volume(global.batmusic[1], 1.4, 1); } } if (acting == 20 && actcon == 0 && !i_ex(obj_writer)) { volumecountdestination = 15; displayvolumetimer = 60; snd_volume(global.batmusic[1], 1.4, 1); msgsetloc(0, "* .../%", "obj_zapper_enemy_slash_Step_0_gml_230_0"); scr_battletext_default(); acting = 21; } if (acting == 21 && actcon == 0 && !i_ex(obj_writer)) { msgsetloc(0, "* The bullets increased in volume, too...!&(But, they'll give more TP!)/%", "obj_zapper_enemy_slash_Step_0_gml_236_0"); scr_battletext_default(); instance_create(x, y, obj_volumeup); actcon = 1; } if (acting == 3 && actcon == 0) { msgsetloc(0, "* You hit the MUTE button!/%", "obj_zapper_enemy_slash_Step_0_gml_246_0"); scr_battletext_default(); acting = 30; } if (acting == 30 && actcon == 0 && !i_ex(obj_writer)) { volumecountdestination = 0; displayvolumetimer = 60; audio_pause_sound(global.batmusic[1]); msgsetloc(0, "* .../%", "obj_zapper_enemy_slash_Step_0_gml_256_0"); scr_battletext_default(); acting = 31; muted = true; mutedlastturn = true; } if (acting == 31 && actcon == 0 && !i_ex(obj_writer)) { with (obj_monsterparent) { if (global.monsterstatus[myself] != 1) scr_monster_make_tired(myself); } scr_mercyadd(myself, 75); msgsetloc(0, "* All foes became TIRED!/%", "obj_zapper_enemy_slash_Step_0_gml_269_0"); scr_battletext_default(); actcon = 1; } if (acting == 4 && actcon == 0) { msgsetloc(0, "* You hit the OFF button!/%", "obj_zapper_enemy_slash_Step_0_gml_276_0"); scr_battletext_default(); acting = 40; } if (acting == 40 && actcon == 0 && !i_ex(obj_writer)) { instance_create(x, y, obj_tvturnoff_manager); acting = 41; } if (acting == 41 && actcon == 0 && !i_ex(obj_tvturnoff_manager)) { with (obj_monsterparent) scr_spare(myself); actcon = 1; } if (actingsus == 1 && actconsus == 1) { msgsetloc(0, "* Susie mashed random buttons!/%", "obj_zapper_enemy_slash_Step_0_gml_396_0"); scr_mercyadd(myself, 25); scr_battletext_default(); snd_play(snd_damage); shakex = 9; state = 3; hurttimer = 30; actingsus = 30; sactused = true; } if (actingsus == 30) { if (!audio_is_playing(snd_fountain_make)) snd_play(snd_fountain_make); if (changecolorcon == 0) { colortarget2 = make_color_hsv(irandom(255), 250, 255); if (changecolorcount == 5) colortarget2 = 16777215; pitchtarget2 = 1 + random(2); changecolorcon = 1; } if (changecolorcon == 1) { changecolortimer++; image_blend = merge_color(colortarget, colortarget2, changecolortimer / 3); pitch = lerp(pitchtarget, pitchtarget2, changecolortimer / 3); snd_pitch(snd_fountain_make, pitch); if (changecolortimer == 3) { colortarget = colortarget2; pitchtarget = pitchtarget2; changecolorcount++; changecolorcon = 0; changecolortimer = 0; } } if (changecolorcount == 6) { snd_stop(snd_fountain_make); image_blend = c_white; changecolorcount = 0; actcon = 1; actingsus = 0; } } if (actingral == 1 && actconral == 1) { msgsetloc(0, "* Ralsei enabled captions!/%", "obj_zapper_enemy_slash_Step_0_gml_455_0"); scr_mercyadd(myself, 25); scr_battletext_default(); actconral = 2; ractused = true; } if (actingral == 1 && actconral == 2 && !i_ex(obj_writer)) { actconral = 3; alarm[4] = 70; if (muted == false) closedcaptioncon = 1; else alarm[4] = 1; } if (actconral == 3 && con == 1) { con = 0; actcon = 1; actconral = 0; closedcaptioncon = 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 }