function scr_itemuse_flowery(arg0 = 0) { var ralpos = -1; for (i = 0; i < 3; i += 1) { if (global.char[i] == 3) ralpos = i; } with (obj_menuwriter) { if (who == ralpos) instance_destroy(); } var soundtype = 0; if (arg0 == 16) soundtype = 1; if (soundtype == 0) { var soundbank = [scr_84_get_sound("snd_flowery_voiceclip_flowery2"), scr_84_get_sound("snd_flowery_voiceclip_heyguys")]; if (flvoice()) snd_play_random(undefined, undefined, undefined, soundbank); } if (soundtype == 1) { with (instance_create_depth(0, 0, 0, obj_object)) { flinit = snd_init("flowery.ogg"); flsound = snd_play(flinit, 0.7); timer = 0; step_func = function() { timer++; if (timer == 55) snd_volume(flsound, 0, 12); if (timer >= 67) { snd_stop(flsound); snd_free(flinit); show_debug_message_concat("freed"); instance_destroy(); } }; } } var comment = []; comment[0] = stringsetloc("Mmm-mmm-good!", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_51_0"); comment[1] = stringsetloc("Petalicious!", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_52_0"); comment[2] = stringsetloc("Floweriffic!", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_53_0"); var thiscomment = comment[choose(0, 1, 2)]; if (irandom(100) == 72) thiscomment = stringsetloc("Do you love your father, Kris?", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_56_0"); show_debug_message_concat("global.flag[1405]=", global.flag[1405]); global.flag[1405]++; scr_itemcomment(ralpos, thiscomment); if (global.flag[1405] == 3) scr_itemcomment(suspos, stringsetloc("STOP GIVING HIM ITEMS!", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_63_0")); }