if snd_is_playing(global.currentsong[1]) siner++ for (i = 0; i < 3; i++) { spritetalkingbuffer[i]-- if (spritetalkingbuffer[i] <= 0) spritetalking[i] = 0 } if instance_exists(obj_writer) { if (obj_writer.pos < obj_writer.length && obj_writer.miniface_drawn >= 0) { if (obj_writer.miniface_drawn == 1) spritetalkingframe[1]++ if (obj_writer.miniface_drawn == 2) spritetalkingframe[0]++ if (obj_writer.miniface_drawn == 3) spritetalkingframe[2]++ for (i = 0; i < 3; i++) { if (spritetalkingframe[i] >= 2) { spritetalking[i] = 1 spritetalkingbuffer[i] = 8 } } } else { spritetalkingframe[0] = 0 spritetalkingframe[1] = 0 spritetalkingframe[2] = 0 } } else { spritetalkingframe[0] = 0 spritetalkingframe[1] = 0 spritetalkingframe[2] = 0 } draw_sprite_ext(spr_shop_m_bg, (siner / 3), 0, 0, 2, 2, 0, c_white, 1) if (everyonedance == 0) { draw_sprite_ext(spr_shop_m_capn_body, (siner / 4), 0, 0, 2, 2, 0, c_white, 1) if (spritetalking[2] == 0) draw_sprite_ext(spr_shop_m_capn_head, (siner / 4), 0, 0, 2, 2, 0, c_white, 1) if (spritetalking[2] == 1) draw_sprite_ext(spr_shop_m_capn_head_talk, (siner / 4), 0, 8, 2, 2, 0, c_white, 1) if (spritetalking[1] == 0) draw_sprite_ext(spr_shop_m_sweet, (siner / 6), 0, 0, 2, 2, 0, c_white, 1) if (spritetalking[1] == 1) draw_sprite_ext(spr_shop_m_sweet_talk, (siner / 6), 0, 0, 2, 2, 0, c_white, 1) draw_sprite_ext(spr_shop_m_kk_body, (siner / 6), 0, 0, 2, 2, 0, c_white, 1) if (spritetalking[0] == 0) draw_sprite_ext(spr_shop_m_kk_head, (siner / 6), 0, 0, 2, 2, 0, c_white, 1) if (spritetalking[0] == 1) draw_sprite_ext(spr_shop_m_kk_head_talk, (siner / 6), 0, 0, 2, 2, 0, c_white, 1) } else { fliptimer++ draw_sprite_ext(spr_shop_m_capn_body, min(fliptimer, 7), capnoffset, 0, (2 * capnflip), 2, 0, c_white, 1) draw_sprite_ext(spr_shop_m_capn_head, min(fliptimer, 7), capnoffset, 0, (2 * capnflip), 2, 0, c_white, 1) draw_sprite_ext(spr_shop_m_kk_body, (fliptimer / 3), (kkoffset + (sin(fliptimer / 2)) * 4 * capnflip), 0, (2 * capnflip), 2, 0, c_white, 1) draw_sprite_ext(spr_shop_m_kk_head_talk, (fliptimer / 3), (kkoffset - (sin(fliptimer / 2)) * 4 * capnflip), 0, (2 * capnflip), 2, 0, c_white, 1) draw_sprite_ext(spr_shop_m_sweet_happy, (fliptimer / 3), (kkoffset / 1.53 - (cos(siner / 4)) * 8), ((sin(siner / 2)) * 8 + 8), (2 * capnflip), 2, 0, c_white, 1) if (fliptimer >= 8) { if (capnflip == 1) { capnflip = -1 capnoffset = 200 kkoffset = 920 } else { kkoffset = 0 capnflip = 1 capnoffset = 0 } fliptimer = 0 } if (everyonedance == 2) { for (i = 0; i < 3; i++) { shopcharx[i] = 0 shopchary[i] = 0 spritetalking[i] = 0 spritetalkingframe[i] = 0 spritetalkingbuffer[i] = 0 } siner = 0 startdancing = 0 everyonedance = 0 } } draw_set_color(c_black) draw_rectangle(-10, 240, 700, 600, false) if (startdancing == 1) { everyonedance = 1 dancetimer = 0 fliptimer = 0 capnflip = 1 kkoffset = 0 startdancing = 0 capnoffset = 0 } scr_shopmenu(0) if (menu <= 3 || menu >= 10) { scr_darkbox_black(0, 240, 415, 480) scr_darkbox_black(400, 240, 640, 480) } if (menu == 4) scr_darkbox_black(0, 240, 640, 480) if (menu == 0) { sell = 0 selling = 0 sidemessage = 0 menuc[1] = 0 menuc[2] = 0 menuc[3] = 0 menuc[4] = 0 if (instance_exists(obj_writer) == false) { global.typer = 6 msgsetloc(0, "\\m3 *Don't forget to& buy something!&\\m1 If you want!&\\m2 Can I buy& something too?", "obj_shop_ch2_music_slash_Draw_0_gml_168_0") if (mainmessage == 0) msgsetloc(0, "\\m1 *Yo!&\\m3 What's up?&\\m2 Hey!", "obj_shop_ch2_music_slash_Draw_0_gml_170_0") if (canUseJukebox == 1) { if (mainmessage == 0) msgsetloc(0, "\\m1 *Welcome to...&\\m3 The Music Room!&\\m2 We don't sell& anything!", "obj_shop_ch2_music_slash_Draw_0_gml_174_0") else msgsetloc(0, "\\m1 *Crash!&\\m3 Bang!&\\m2 Boom!", "obj_shop_ch2_music_slash_Draw_0_gml_175_0") if (mainmessage == 2) msgsetloc(0, "\\m2 *Good song.", "obj_shop_ch2_music_slash_Draw_0_gml_176_0") } global.typer = 78 instance_create(30, 270, obj_writer) } menumax = 3 draw_set_color(c_white) scr_84_set_draw_font("mainbig") if (canUseJukebox == 0) { draw_text(480, 260, string_hash_to_newline(stringsetloc("Buy", "obj_shop1_slash_Draw_0_gml_106_0"))) draw_text(480, 300, string_hash_to_newline(stringsetloc("Sell", "obj_shop1_slash_Draw_0_gml_107_0"))) } else { draw_text(480, 260, stringsetloc("Play Music", "obj_shop_ch2_music_slash_Draw_0_gml_194_0")) draw_text(480, 300, stringsetloc("Lancer", "obj_shop_ch2_music_slash_Draw_0_gml_195_0")) } draw_text(480, 340, string_hash_to_newline(stringsetloc("Talk", "obj_shop1_slash_Draw_0_gml_108_0"))) draw_text(480, 380, string_hash_to_newline(stringsetloc("Exit", "obj_shop1_slash_Draw_0_gml_109_0"))) draw_sprite(spr_heart, 0, 450, ((135 + menuc[0] * 20) * 2)) if button1_p() { onebuffer = 2 mainmessage = 1 with (obj_writer) instance_destroy() if (canUseJukebox == 0) { if (menuc[0] == 0) menu = 1 if (menuc[0] == 1) { menu = 10 sidemessage = 0 } } else { if (menuc[0] == 0) { custommenu = instance_create(0, 0, obj_fusionmenu) custommenu.type = 5 if (menuc[0] == 0) snd_free_all() if (menuc[0] == 1) custommenu.subtype = 1 menu = 99 } if (menuc[0] == 1) { snd_play(snd_splat) mainmessage = 2 } } if (menuc[0] == 2) { if (canUseJukebox == 0) menu = 3 else { menu = 4 sell = 1 } } if (menuc[0] == 3) { sell = 2 menu = 4 } } } if (menu == 1 || menu == 2) { draw_set_color(c_white) scr_84_set_draw_font("mainbig") for (i = 0; i < itemtotal; i += 1) { draw_text(60, (260 + i * 40), string_hash_to_newline(shopitemname[i])) draw_text(300, (260 + i * 40), string_hash_to_newline(stringsetsubloc("$~1", string(buyvalue[i]), "obj_shop_ch2_music_slash_Draw_0_gml_250_0"))) } draw_text(60, (260 + itemtotal * 40), string_hash_to_newline(stringsetloc("Exit", "obj_shop1_slash_Draw_0_gml_139_0"))) if (menu == 1) { menumax = 4 if (instance_exists(obj_writer) == false) { if (sidemessage == 0) msgsetloc(0, "\\m3 *Take& your& pick!", "obj_shop_ch2_music_slash_Draw_0_gml_262_0") if (sidemessage == 1) { _rr = floor(random(10)) msgsetloc(0, "\\m1 *Thanks,& guys!", "obj_shop_ch2_music_slash_Draw_0_gml_266_0") if (_rr == 0) msgsetloc(0, "\\m2 *I can't& see.", "obj_shop_ch2_music_slash_Draw_0_gml_267_0") } if (sidemessage == 2) msgsetloc(0, "\\m3 *Don't& chicken& out!", "obj_shop_ch2_music_slash_Draw_0_gml_270_0") if (sidemessage == 3) msgsetloc(0, "\\m3 *Not& enough& cash!", "obj_shop_ch2_music_slash_Draw_0_gml_271_0") if (sidemessage == 4) msgsetloc(0, "\\m3 *Your& pockets& are& full.", "obj_shop_ch2_music_slash_Draw_0_gml_272_0") if (sidemessage == 5) msgsetloc(0, "\\m3 *Cool!& It's in& your& STORAGE.", "obj_shop_ch2_music_slash_Draw_0_gml_273_0") if (murder == 1) global.msg[0] = stringsetloc("/*", "obj_shop1_slash_Draw_0_gml_153_0") global.typer = 78 instance_create(450, 260, obj_writer) } draw_sprite(spr_heart, 0, 30, (270 + menuc[1] * 40)) if (button1_p() && onebuffer < 0) { menu = 2 onebuffer = 2 with (obj_writer) instance_destroy() if (menuc[1] == menumax) menu = 0 } if (button2_p() && twobuffer < 0 && onebuffer < 2) { menu = 0 twobuffer = 2 minimenuy = 220 with (obj_writer) instance_destroy() } menuc[2] = 0 } if (menu == 2) { menumax = 1 draw_set_color(c_white) scr_84_set_draw_font("mainbig") var y1_off = langopt(260, 290) var y2_off = langopt(290, 260) draw_text(460, y1_off, string_hash_to_newline(stringsetloc("Buy it for", "obj_shop1_slash_Draw_0_gml_167_0"))) draw_text(460, y2_off, string_hash_to_newline(stringsetsubloc("$~1 ?", string(buyvalue[menuc[1]]), "obj_shop_ch2_music_slash_Draw_0_gml_291_0"))) draw_text(480, 340, string_hash_to_newline(stringsetloc("Yes", "obj_shop1_slash_Draw_0_gml_169_0"))) draw_text(480, 370, string_hash_to_newline(stringsetloc("No", "obj_shop1_slash_Draw_0_gml_170_0"))) draw_sprite(spr_heart, 0, 450, (350 + menuc[2] * 30)) if (button2_p() && twobuffer < 0) { menu = 1 sidemessage = 2 twobuffer = 2 onebuffer = 2 } if (button1_p() && onebuffer < 0 && twobuffer < 0) { if (menuc[2] == 0) { afford = 0 if (global.gold >= buyvalue[menuc[1]]) afford = 1 if (afford == 1) { _pocketed = 0 if (itemtype[menuc[1]] == "item") scr_itemget(item[menuc[1]]) if (itemtype[menuc[1]] == "weapon") scr_weaponget(item[menuc[1]]) if (itemtype[menuc[1]] == "armor") scr_armorget(item[menuc[1]]) if (noroom == 0) { global.gold -= buyvalue[menuc[1]] snd_play(snd_locker) if (_pocketed == 1) sidemessage = 5 else sidemessage = 1 } if (noroom == 1) sidemessage = 4 } else sidemessage = 3 } if (menuc[2] == 1) sidemessage = 2 menu = 1 } } if (menuc[1] != 4) { if (minimenuy <= 20) minimenuy = 20 if (minimenuy > 20) minimenuy -= 5 if (minimenuy > 50) minimenuy -= 5 if (minimenuy > 100) minimenuy -= 8 if (minimenuy > 150) minimenuy -= 10 } else if (minimenuy < 200) minimenuy += 40 if (minimenuy >= 200) minimenuy = 200 } if (menu == 3) { menumax = 4 draw_set_color(c_white) scr_84_set_draw_font("mainbig") draw_text(80, 260, string_hash_to_newline(stringsetloc("About yourselves", "obj_shop_ch2_music_slash_Draw_0_gml_343_0"))) draw_text(80, 300, stringsetloc("Performance", "obj_shop_ch2_music_slash_Draw_0_gml_344_0")) draw_text(80, 340, stringsetloc("About Queen", "obj_shop_ch2_music_slash_Draw_0_gml_345_0")) draw_text(80, 380, stringsetloc("Junk Work", "obj_shop_ch2_music_slash_Draw_0_gml_346_0")) draw_set_color(c_white) draw_text(80, 420, string_hash_to_newline(stringsetloc("Exit", "obj_shop1_slash_Draw_0_gml_240_0"))) if (instance_exists(obj_writer) == false) { global.msg[0] = stringsetloc("\\m1 *Let's& trade& info!", "obj_shop_ch2_music_slash_Draw_0_gml_357_0") global.typer = 78 instance_create(440, 260, obj_writer) } draw_sprite(spr_heart, 0, 50, (270 + menuc[3] * 40)) if (button1_p() && onebuffer < 0) { onebuffer = 2 with (obj_writer) instance_destroy() if (menuc[3] < menumax) { sell = menuc[3] + 3 menu = 4 } else menu = 0 } else if (button2_p() && twobuffer < 0 && onebuffer < 0) { twobuffer = 2 menu = 0 with (obj_writer) instance_destroy() } } if (menu == 10) { menuc[11] = 0 menuc[12] = 0 menuc[13] = 0 menumax = 4 draw_set_color(c_white) scr_84_set_draw_font("mainbig") draw_text(80, 260, string_hash_to_newline(stringsetloc("Sell Items", "obj_shop1_slash_Draw_0_gml_278_0"))) draw_text(80, 300, string_hash_to_newline(stringsetloc("Sell Weapons", "obj_shop1_slash_Draw_0_gml_279_0"))) draw_text(80, 340, string_hash_to_newline(stringsetloc("Sell Armor", "obj_shop1_slash_Draw_0_gml_280_0"))) draw_text(80, 380, string_hash_to_newline(stringsetloc("Sell Pocket Items", "obj_shop_ch2_music_slash_Draw_0_gml_394_0"))) draw_text(80, 420, string_hash_to_newline(stringsetloc("Return", "obj_shop_ch2_music_slash_Draw_0_gml_395_0"))) if (instance_exists(obj_writer) == false) { if (sidemessage == 0) msgsetloc(0, "\\m1 *We'll& take& it for& you!", "obj_shop_ch2_music_slash_Draw_0_gml_399_0") if (sidemessage == 1) msgsetloc(0, "\\m2 *That's& all you& had?", "obj_shop_ch2_music_slash_Draw_0_gml_400_0") if (sidemessage == 2) msgsetloc(0, "\\m2 *You& got& nothin!", "obj_shop_ch2_music_slash_Draw_0_gml_401_0") global.typer = 78 instance_create(460, 260, obj_writer) } draw_sprite(spr_heart, 0, 50, (270 + menuc[10] * 40)) if (button1_p() && onebuffer < 0) { pagemax = 0 sidemessage2 = 0 onebuffer = 2 with (obj_writer) instance_destroy() can = 1 idealmenu = menuc[10] + 11 if (idealmenu == 11) { scr_itemcheck(0) if (itemcount == 12) { sidemessage = 2 can = 0 } nothingcount = itemcount scr_iteminfo_all() selltype = "item" selltotal = 12 for (i = 0; i < selltotal; i++) { itemsellvalue[i] = global.itemvalue[i] itemsellname[i] = global.itemnameb[i] } } if (idealmenu == 12) { scr_weaponcheck_inventory(0) if (itemcount == 48) { sidemessage = 2 can = 0 } scr_weaponinfo_all() } if (idealmenu == 13) { scr_armorcheck_inventory(0) if (itemcount == 48) { sidemessage = 2 can = 0 } scr_armorinfo_all() } if (idealmenu == 14) { scr_itemcheck_pocket(0) if (itemcount == global.flag[64]) { sidemessage = 2 can = 0 } selltype = "pocket" nothingcount = 0 selltotal = global.flag[64] for (i = 0; i < global.flag[64]; i++) { scr_iteminfo(global.pocketitem[i]) itemsellvalue[i] = value itemsellname[i] = itemnameb } idealmenu = 11 } if (menuc[10] < menumax) { if (can == 1) menu = idealmenu sidemessage1 = 0 } else menu = 0 submenu = 0 submenuc[1] = 0 } if (button2_p() && twobuffer < 0 && onebuffer < 0) { twobuffer = 2 menu = 0 with (obj_writer) instance_destroy() } } if (menu == 11 || menu == 12 || menu == 13) { if (instance_exists(obj_writer) == false) { if (sidemessage2 == 0 && menu == 11) msgsetloc(0, "\\m1 *OK,& hit us& with an& ITEM!", "obj_shop_ch2_music_slash_Draw_0_gml_487_0") if (sidemessage2 == 0 && menu == 12) msgsetloc(0, "\\m1 *OK,& show us& your& WEAPON!", "obj_shop_ch2_music_slash_Draw_0_gml_488_0") if (sidemessage2 == 0 && menu == 13) msgsetloc(0, "\\m1 *OK,& hit us& with an& ARMOR!", "obj_shop_ch2_music_slash_Draw_0_gml_489_0") if (sidemessage2 == 1) msgsetloc(0, "\\m1 *Sweet!& This'll& be great& scrap!", "obj_shop_ch2_music_slash_Draw_0_gml_490_0") if (sidemessage2 == 2) msgsetloc(0, "\\m1 *OK,& hold& onto& that.", "obj_shop_ch2_music_slash_Draw_0_gml_491_0") if (sidemessage2 == 3) msgsetloc(0, "\\m1 *Maybe& better& keep& that.", "obj_shop_ch2_music_slash_Draw_0_gml_492_0") if (sidemessage2 == 4) msgsetloc(0, "\\m3 *That's& nothin!", "obj_shop_ch2_music_slash_Draw_0_gml_493_0") global.typer = 78 instance_create(450, 260, obj_writer) } } scr_shopmenu(4) if (menu == 15 || menu == 16 || menu == 17) { menumax = 1 draw_set_color(c_white) scr_84_set_draw_font("mainbig") y1_off = langopt(260, 290) y2_off = langopt(290, 260) draw_text(460, y1_off, string_hash_to_newline(stringsetloc("Sell it for", "obj_shop1_slash_Draw_0_gml_365_0"))) draw_text(460, y2_off, string_hash_to_newline(stringsetsubloc("$~1 ?", string(sellvalue), "obj_shop_ch2_music_slash_Draw_0_gml_508_0"))) draw_text(480, 340, string_hash_to_newline(stringsetloc("Yes", "obj_shop1_slash_Draw_0_gml_367_0"))) draw_text(480, 370, string_hash_to_newline(stringsetloc("No", "obj_shop1_slash_Draw_0_gml_368_0"))) draw_sprite(spr_heart, 0, 450, (350 + menuc[menu] * 30)) } scr_shopmenu(5) if (menu == 4) { if (sell == 0) menu = 0 if (instance_exists(obj_writer) == false && selling == 0) { selling = 1 if (sell == 1) { msgsetloc(0, "\\m3 *Nice town^1, chief.&\\m1 I think we're gonna like it& here!&\\m2 Cool city./", "obj_shop_ch2_music_slash_Draw_0_gml_532_0") msgnextloc("\\m1 *As thanks^1, you can listen to& all sorts of songs here./", "obj_shop_ch2_music_slash_Draw_0_gml_533_0") msgnextloc("\\m3 *Don't think it'll be cheap^1,& though!&\\m2 It's free.&\\m3 What!?/%", "obj_shop_ch2_music_slash_Draw_0_gml_534_0") } if (sell == 2) msgsetloc(0, "\\m1 *See ya!&\\m3 Smell ya!&\\m2 Hear ya!/%", "obj_shop_ch2_music_slash_Draw_0_gml_540_0") if (sell == 3) { msgsetloc(0, "\\m1 *I'm Sweet.&\\m3 The ladies call me Cap'n!&\\m2 K_K!/", "obj_shop_ch2_music_slash_Draw_0_gml_546_0") msgnextloc("\\m1 *We used to work the sound in& this town.&\\m3 ... until Queen came around.&\\m2 (K_K is short for Cakes.)/", "obj_shop_ch2_music_slash_Draw_0_gml_547_0") msgnextloc("\\m1 *She made music against the law.&\\m2 Unless you make a song she likes.&\\m3 But the only JUNK she enjoys.../", "obj_shop_ch2_music_slash_Draw_0_gml_548_0") msgnextloc("\\m1 *Are reverse diss-tracks, where& the vocalist puts themselves& down, and praises Queen...&\\m3 Or noise music./", "obj_shop_ch2_music_slash_Draw_0_gml_549_0") msgnextloc("\\m1 *But even if Queenie tries to put& a limiter on us.../", "obj_shop_ch2_music_slash_Draw_0_gml_550_0") msgnextloc("\\m1 *You can't STOP ! THE ! MUSIC!&\\m3 Hear that!? We'll just go& underground!!&\\m2 Crash! Boom! Bang!/", "obj_shop_ch2_music_slash_Draw_0_gml_551_0") msgnextloc("\\m1 *That's why we made this junk& shop!&\\m3 We'll fund our musical rebellion!&\\m2 Can we make noise music, too?/%", "obj_shop_ch2_music_slash_Draw_0_gml_552_0") } if (sell == 4) { selling = 3 dancetimerb = 0 msgsetloc(0, "\\m1 *What, wanna see what we got!?&\\m3 Yo, yo, can you handle this!?&\\m2 Hold onto your antennas!!/%", "obj_shop_ch2_music_slash_Draw_0_gml_565_0") } if (sell == 5) { msgsetloc(0, "\\m1 *Queen wasn't always so... harsh.&\\m3 No, she WAS! She just got WORSE& somehow!/", "obj_shop_ch2_music_slash_Draw_0_gml_571_0") msgnextloc("\\m1 *It wasn't 'til that DARK FOUNTAIN& showed up,&\\m3 That she started going into& overdrive./", "obj_shop_ch2_music_slash_Draw_0_gml_572_0") msgnextloc("\\m1 *\"Knight\" this^1, \"Knight\" that^1,& \"Fountain\" that...&\\m3 Like, what does that Knight& even have going for it that I& don't!? C'mon!!/", "obj_shop_ch2_music_slash_Draw_0_gml_573_0") msgnextloc("\\m1 *But like I said. She wasn't& ALWAYS so bad. She used to& give me sweets. For being so& sweet!&\\m3 H... huh!? I never got candy!!/", "obj_shop_ch2_music_slash_Draw_0_gml_574_0") msgnextloc("\\m1 *You kept calling her a& \"hot mama^1,\" Cap.&\\m3 Yeah!? Is that wrong!? She& looks like a mom and tends to& overheat!!/", "obj_shop_ch2_music_slash_Draw_0_gml_575_0") msgnextloc("\\m3 *K_K! Help me out here!!&\\m1 K_K! What do you think?&\\m2 Huh? Me?/", "obj_shop_ch2_music_slash_Draw_0_gml_576_0") msgnextloc("\\m2 *... I like candy./", "obj_shop_ch2_music_slash_Draw_0_gml_577_0") msgnextloc("\\m1 *Yeah, you're right, K_K! We gotta& focus on what's important!&\\m3 If the band fights, we'll get& outta tune!&\\m2 Anyone have any lemon drops?/%", "obj_shop_ch2_music_slash_Draw_0_gml_578_0") } if (sell == 6) { msgsetloc(0, "\\m1 *Our main gig is making scrap& into machines.&\\m3 Our clients are sometimes a& bit off-key though.&\\m2 They smell off-key too!!/", "obj_shop_ch2_music_slash_Draw_0_gml_584_0") msgnextloc("\\m1 *Like some... little weird guy.&\\m3 He wanted us to sneak into& Queen's mansion...&\\m2 We're just rebels, we don't& wanna get in trouble!/", "obj_shop_ch2_music_slash_Draw_0_gml_585_0") msgnextloc("\\m1 *But recently we got a& real-high-class-client.&\\m3 A man of TASTE! He had a way& with words!!&\\m2 I couldn't even understand him!/", "obj_shop_ch2_music_slash_Draw_0_gml_586_0") msgnextloc("\\m1 *Now, all we gotta do is follow& the blueprints, right?&\\m3 It'll be our big time break!!&\\m2 Yeah!! Haha!! It's gonna break& apart!! Big time!!/%", "obj_shop_ch2_music_slash_Draw_0_gml_587_0") } global.typer = 78 instance_create(30, 270, obj_writer) } if (selling == 3 && (!i_ex(obj_writer))) { snd_pause(global.currentsong[1]) coolbeat = snd_init("coolbeat.ogg") snd_loop(coolbeat) dancetimerb = 0 startdancing = 1 selling = 4 } if (selling == 4) { dancetimerb++ if (dancetimerb == 88) { snd_free(coolbeat) everyonedance = 2 } if (dancetimerb == 90) { snd_resume(global.currentsong[1]) msgsetloc(0, "\\m3 *Yo, how was that!?&\\m1 Did you get rocked?!&\\m2 All our songs are only 4 seconds& long!!/%", "obj_shop_ch2_music_slash_Draw_0_gml_616_0") global.typer = 78 instance_create(30, 270, obj_writer) selling = 1 } } if (selling == 1 && instance_exists(obj_writer) == false) { if (sell == 2) { selling = 2 event_user(1) } else { if (sell == 1 || sell == 7) menu = 0 else menu = 3 sell = 0 selling = 0 } } } if down_p() { if (menu != 11 && menu != 12 && menu != 13 && menu != 99) { menuc[menu] += 1 if (menuc[menu] > menumax) menuc[menu] = 0 } } if up_p() { if (menu != 11 && menu != 12 && menu != 13 && menu != 99) { menuc[menu] -= 1 if (menuc[menu] < 0) menuc[menu] = menumax } } if (menu < 4 || menu >= 10) { if (menu != 99) { draw_text(440, 420, ("$" + string_hash_to_newline(string(global.gold)))) if (menu == 1 || menu == 2) { if (menuc[1] < 4) { if (itemtype[menuc[1]] == "item") scr_itemcheck_inventory_and_pocket(0) if (itemtype[menuc[1]] == "armor") scr_armorcheck_inventory(0) if (itemtype[menuc[1]] == "weapon") scr_weaponcheck_inventory(0) scr_84_set_draw_font("dotumche") if (itemcount < 10) roomstring = "0" + string(itemcount) else roomstring = string(itemcount) if (itemcount > 0) draw_text(520, 430, string_hash_to_newline(stringsetsubloc("Space:~1", roomstring, "obj_shop_ch2_music_slash_Draw_0_gml_677_0"))) if (itemcount == 0) draw_text(520, 430, string_hash_to_newline(stringsetloc("NO SPACE", "obj_shop1_slash_Draw_0_gml_571_0"))) } } } } if (menu == 99) { if i_ex(obj_fusionmenu) { is_playing = obj_fusionmenu.songPlaying != " " if is_playing previous_song = string(obj_fusionmenu.songPlaying) } else if (audio_timer == 1) { if (!is_playing) { global.currentsong[0] = snd_init(previous_song) global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1) } audio_timer = 0 menu = 0 } else audio_timer++ } onebuffer -= 1 twobuffer -= 1