if (global.monster[myself] == 1) { if (global.mnfight == 1 && talked == 0) { scr_randomtarget(); if (!instance_exists(obj_darkener)) instance_create(0, 0, obj_darkener); global.typer = 50; rr = choose(0, 1, 2, 3); if (rr == 0) global.msg[0] = ""; if (rr == 1) global.msg[0] = ""; if (rr == 2) global.msg[0] = ""; if (rr == 3) global.msg[0] = ""; global.msg[0] = ""; scr_enemyblcon(x - 160, y, 3); talked = 1; talktimer = 0; } if (talked == 1 && global.mnfight == 1) { rtimer = 0; scr_blconskip(15); if (global.mnfight == 2) { 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 (global.mnfight == 2 && attacked == 0) { rtimer += 1; if (rtimer == 12) { rr = choose(0, 1); if (rr == 0) { dc = instance_create(x, y, obj_dbulletcontroller); dc.type = 0; dc.damage = global.monsterat[myself] * 5; dc.target = mytarget; } else { dc = instance_create(x, y, obj_dbulletcontroller); dc.type = 1; dc.damage = global.monsterat[myself] * 5; dc.target = mytarget; } turns += 1; global.turntimer = 140; attacked = 1; global.typer = 6; global.fc = 0; rr = choose(0, 1, 2, 3); if (rr == 0) global.battlemsg[0] = ""; if (rr == 1) global.battlemsg[0] = ""; if (rr == 2) global.battlemsg[0] = ""; if (rr == 3) global.battlemsg[0] = ""; } else { global.turntimer = 120; } } if (global.mnfight == 2) { if (global.turntimer <= 1) { if (battlecancel == 1) global.mercymod[myself] = 999; if (battlecancel == 2) { with (obj_battlecontroller) noreturn = 1; con = 1; battlecancel = 3; } } } } if (con == 1) { con = 2; alarm[4] = 10; } if (con == 3) { global.typer = 50; global.msg[0] = ""; scr_enemyblcon(x - 160, y, 3); con = 4; } if (con == 4 && !instance_exists(obj_writer)) { hspeed = 15; con = 5; alarm[4] = 15; with (obj_battlecontroller) alarm[2] = 17; } if (con == 6) { with (obj_battlecontroller) noreturn = 0; scr_monsterdefeat(); instance_destroy(); con = 7; } 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; global.msg[0] = ""; scr_battletext_default(); } if (acting == 2 && actcon == 0) { actcon = 1; if (global.automiss[myself] == 0) { global.msg[0] = ""; global.monstercomment[myself] = ""; global.automiss[myself] = 1; } scr_battletext_default(); } if (acting == 3 && actcon == 0) { global.msg[0] = ""; global.mercymod[myself] += 200; scr_battletext_default(); actcon = 1; } if (acting == 4 && actcon == 0) { global.msg[0] = ""; battlecancel = 1; scr_battletext_default(); actcon = 1; } if (acting == 5 && actcon == 0) { global.msg[0] = ""; battlecancel = 2; scr_battletext_default(); actcon = 1; } if (acting == 6 && actcon == 0) { global.msg[0] = ""; global.monstercomment[myself] = ""; global.monsterstatus[myself] = 1; scr_battletext_default(); actcon = 1; } if (actcon == 1 && !instance_exists(obj_writer)) { actcon = 0; scr_attackphase(); } } if (global.myfight == 7) hspeed = 15; enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }