scr_depth(); if (myinteract == 3) { if (global.flag[20] == 0) { if (global.chapter == 4) sprite_index = spr_npc_puzzlepiece_cringe; else sprite_index = spr_npc_puzzlepiece; image_speed = 0.2; } if (global.flag[20] == 1) { sprite_index = spr_npc_puzzlepiece_shock1; image_speed = 0.25; } if (global.flag[20] == 2) { sprite_index = spr_npc_puzzlepiece_shock2; image_speed = 0.334; } if (i_ex(mydialoguer) == false) { if (!instance_exists(obj_fusionmenu)) { global.interact = 0; with (obj_mainchara) onebuffer = 5; } myinteract = 0; } } if (con == 10) { con = 11; alarm[4] = 40; } if (con == 12 && global.fighting == 0) { con = 13; alarm[4] = 15; } if (con == 14) { scr_speaker("noone"); if (global.flag[36] == 0) { if (global.flag[dojoFlag] == 0) { if (dojoFlag == 815) { msgsetloc(0, "* An amazing battle!/", "obj_npc_dojo_slash_Step_0_gml_45_0"); msgnextloc("* As promised^1, here is your reward!/", "obj_npc_dojo_slash_Step_0_gml_46_0"); scr_itemget_anytype(dojoPrizeValue, dojoPrizeType); if (noroom != 0) { msgnextloc("* Boss!^1 Your inventory is full!!/", "obj_npc_dojo_slash_Step_0_gml_56_0"); msgnextloc("* You'll just have to try again^1, boss!/%", "obj_npc_dojo_slash_Step_0_gml_65_0"); global.flag[dojoFlag] = 0; } else { msgnextsubloc("* (You received ~1!)/%", dojoPrizeName, "obj_npc_dojo_slash_Step_0_gml_51_0"); global.flag[dojoFlag] = 2; } } } else if (dojoFlag == 815) { msgsetloc(0, "* An amazing battle!/", "obj_npc_dojo_slash_Step_0_gml_45_0"); msgnextloc("* But you already won that prize^1, so we don't have another!/%", "obj_npc_dojo_slash_Step_0_gml_99_0"); } } else if (dojoFlag == 815) { msgsetloc(0, "* You beefed it! Better luck next time^1, boss!/%", "obj_npc_dojo_slash_Step_0_gml_61_0"); } d_make(); con = 15; } if (con == 15 && !d_ex()) { scr_healall(999); global.flag[35] = 0; global.flag[36] = 0; global.flag[37] = 0; global.flag[38] = 0; global.flag[39] = 0; global.flag[60] = 0; global.flag[61] = 0; con = 0; global.interact = 0; global.facing = 0; }