if (global.dialogue_open == false) { image_alpha -= 0.1 if (image_alpha <= 0) instance_destroy() } var MSG_ADVANCE = false var message_length = string_length(message[message_current]) if (message_reset == true) { message_reset = false message = 0 event_perform(ev_create, 0) return; } if (keyboard_multicheck_pressed(1) && skippable == true) cutoff = message_length if (cutoff < message_length) { if (counter == 0) { cutoff += 1 script_execute(gml_Script_scr_text_talk) } } else if (keyboard_multicheck_pressed(0) && skippable == true) { if (choice == false) MSG_ADVANCE = true } if (message_timer > -1 && cutoff == message_length) { if (mT == -1) mT = message_timer if (mT > 0) mT -= 1 else if (mT == 0) { mT = -1 MSG_ADVANCE = true } } script_execute(gml_Script_scr_text_counter_overworld) script_execute(gml_Script_scr_text_choices) if (MSG_ADVANCE || force_skip) { if ((message_current + 1) < array_length_1d(message)) { message_current += 1 cutoff = 0 } else global.dialogue_open = false force_skip = false }