if (global.flag[9] == 1) { var battlemusicvolume = 0.7; if (i_ex(obj_astream)) { if (obj_astream.mystream == global.batmusic[0]) { if (obj_astream.songname != "mus/battle.ogg") battlemusicvolume = 1; } scr_debug_print(obj_astream.songname); } scr_debug_print(string(battlemusicvolume)); global.batmusic[1] = mus_loop_ext(global.batmusic[0], battlemusicvolume, 1); } victory = 0; victoried = 0; skipvictory = 0; global.battleend = 0; battlewriter = 19212912; myface = 1913918291; lbuffer = 0; rbuffer = 0; onebuffer = 0; twobuffer = 0; myfightreturntimer = 1; messagepriority = -1; attackpriority = -1; hidemercy = 0; cantspare[2] = 0; global.darkzone = 1; global.fighting = 1; if (global.encounterno == 50) { if (global.chapter == 2) { if (room == room_dw_city_postbaseball_1) { global.fc = 1; global.fe = 2; global.flag[62] = 1; } } } if (global.encounterno == 73) { global.fc = 3; global.fe = 4; global.flag[62] = 1; } if (global.flag[62] == 0) { global.fe = 0; global.fc = 0; global.typer = 4; global.battletyper = 4; } global.flag[62] = 0; global.myfight = 0; global.mnfight = 0; global.bmenuno = 0; global.attacking = 0; global.acting = 0; global.tension = 0; global.spelldelay = 10; global.turntimer = 120; scr_spellinfo_all(); global.tensionselect = 0; for (j = 0; j < 3; j += 1) { global.temptension[j] = global.tension; for (i = 0; i < 13; i += 1) tempitem[i][j] = global.item[i]; } for (i = 0; i < 3; i += 1) { global.charcond[i] = 0; global.automiss[i] = 0; if (global.char[i] != 0) { global.charmove[i] = 1; global.charcantarget[i] = 1; global.chardead[i] = 0; } else { global.charmove[i] = 0; global.charcantarget[i] = 0; } } itempage = 0; spellpage = 0; global.flag[50] = 0; global.flag[51] = 0; global.flag[52] = 0; global.flag[53] = 0; global.flag[63] = 0; for (i = 0; i < 3; i += 1) scr_monster_statreset(i); for (i = 0; i < 3; i += 1) { if (global.monstertype[i] > 0) scr_monster_makeinstance(i); } global.monstergold[3] = 0; global.monsterexp[3] = 0; global.charturn = 0; global.currentactingchar = 0; for (i = 0; i < 3; i += 1) { global.acting[i] = 0; global.actingsingle[i] = 0; global.actingsimul[i] = 0; global.actingtarget[i] = 0; global.actingchoice[i] = 0; global.charaction[i] = 0; global.charspecial[i] = 0; global.chartarget[i] = 0; global.faceaction[i] = 0; global.rembmenuno[i] = 0; global.targeted[i] = 0; global.battleat[i] = global.at[global.char[i]] + global.itemat[global.char[i]][0] + global.itemat[global.char[i]][1] + global.itemat[global.char[i]][2]; global.battledf[i] = global.df[global.char[i]] + global.itemdf[global.char[i]][0] + global.itemdf[global.char[i]][1] + global.itemdf[global.char[i]][2]; global.battlemag[i] = global.mag[global.char[i]] + global.itemmag[global.char[i]][0] + global.itemmag[global.char[i]][1] + global.itemmag[global.char[i]][2]; global.battleactcount[i] = 0; global.monsterattackname[i] = " "; for (j = 0; j < 18; j++) { global.battlespell[i][j] = 0; global.battlespellname[i][j] = " "; global.battlespelldesc[i][j] = " "; global.battlespellcost[i][j] = 0; global.battlespelltarget[i][j] = 2; global.battlespellspecial[i][j] = 0; } } scr_spellmenu_setup(); for (i = 0; i < 20; i += 1) { for (j = 0; j < 20; j += 1) global.bmenucoord[i][j] = 0; } movenoise = 0; selnoise = 0; laznoise = 0; damagenoise = 0; grazenoise = 0; bcolor = merge_color(c_purple, c_black, 0.7); bcolor = merge_color(bcolor, c_dkgray, 0.5); tp = 0; tpy = 50; bp = 0; bpy = 152; intro = 1; chartotal = 0; charpos[0] = -1; charpos[1] = -1; charpos[2] = -1; charpos[3] = -1; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; global.charinstance[0] = 12129292; global.charinstance[1] = 12129292; global.charinstance[2] = 12129292; with (global.charinstance[0]) myself = 0; with (global.charinstance[1]) myself = 1; with (global.charinstance[2]) myself = 2; mmy[0] = 0; mmy[1] = 0; mmy[2] = 0; mmy[3] = 0; for (i = 0; i < 3; i += 1) { if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; global.charinstance[i] = instance_create(global.heromakex[i], global.heromakey[i], obj_herokris); global.charinstance[i].myself = i; global.charinstance[i].char = 1; global.charinstance[i].depth = 200 - (i * 20); } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; global.charinstance[i] = instance_create(global.heromakex[i], global.heromakey[i], obj_herosusie); global.charinstance[i].myself = i; global.charinstance[i].char = 2; global.charinstance[i].depth = 200 - (i * 20); } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; global.charinstance[i] = instance_create(global.heromakex[i], global.heromakey[i], obj_heroralsei); global.charinstance[i].myself = i; global.charinstance[i].char = 3; global.charinstance[i].depth = 200 - (i * 20); } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; global.charinstance[i] = instance_create(global.heromakex[i], global.heromakey[i], obj_heronoelle); global.charinstance[i].myself = i; global.charinstance[i].char = 4; global.charinstance[i].depth = 200 - (i * 20); } } slmxx = 0; slmyy = 0; s_siner = 0; t_siner = 0; instance_create(0, 0, obj_tensionbar); reset = 0; timeron = 1; noreturn = 0; hpcolor[0] = c_aqua; hpcolor[1] = c_fuchsia; hpcolor[2] = c_lime; hpcolor[3] = c_yellow; for (i = 0; i < 4; i++) hpcolorsoft[i] = merge_color(hpcolor[i], c_white, 0.5); global.flag[36] = 0; global.flag[39] = 0; if (global.ambush == 1) { scr_ambush(); global.ambush = 0; } if (global.ambush == 2) { with (obj_monsterparent) firststrike = 1; global.tension = round(global.maxtension / 4); global.ambush = 0; } if (global.chapter == 2) { gigaqueeny = 0; gigaqueentimer = 0; gigaqueencon = 0; if (instance_exists(obj_gigaqueen_enemy)) gigaqueencon = 3; }