2021-06-03 21:01:32 -07:00
|
|
|
if (dialogue_mode) {
|
2021-06-05 01:58:44 -07:00
|
|
|
if (text_advance_ready == TEXT_LOADING && !ds_queue_empty(name_test) && !ds_queue_empty(name_test) && !ds_queue_empty(active_test) && !ds_queue_empty(emote_test)) {
|
|
|
|
text_advance_ready = TEXT_TYPING;
|
2021-06-03 21:01:32 -07:00
|
|
|
actor_left = ds_queue_dequeue(name_test);
|
2021-06-04 01:09:05 -07:00
|
|
|
actor_left_emote = ds_queue_dequeue(emote_test);
|
2021-06-03 21:01:32 -07:00
|
|
|
actor_right = "";
|
2021-06-04 01:09:05 -07:00
|
|
|
if (!ds_queue_empty(name_test) && !ds_queue_empty(emote_test)) {
|
2021-06-03 21:01:32 -07:00
|
|
|
actor_right = ds_queue_dequeue(name_test);
|
2021-06-04 01:09:05 -07:00
|
|
|
actor_right_emote = ds_queue_dequeue(emote_test);
|
2021-06-03 21:01:32 -07:00
|
|
|
}
|
|
|
|
texttarget = ds_queue_dequeue(text_test);
|
|
|
|
textspew = "";
|
|
|
|
spewlength = 1;
|
|
|
|
last_active = ds_queue_dequeue(active_test);
|
|
|
|
}
|
|
|
|
|
2021-06-05 01:58:44 -07:00
|
|
|
if (text_advance_ready == TEXT_TYPING ) {
|
2021-06-03 21:01:32 -07:00
|
|
|
textspew += string_char_at(texttarget, spewlength);
|
|
|
|
spewlength++;
|
|
|
|
if (keyboard_check_pressed( ord("Z") ) ) {
|
|
|
|
textspew = texttarget;
|
|
|
|
keyboard_clear(ord("Z"));
|
|
|
|
}
|
|
|
|
if (textspew == texttarget) {
|
2021-06-05 01:58:44 -07:00
|
|
|
text_advance_ready = TEXT_READY;
|
2021-06-03 21:01:32 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-05 01:58:44 -07:00
|
|
|
if (text_advance_ready == TEXT_READY) {
|
2021-06-03 21:01:32 -07:00
|
|
|
if (keyboard_check_pressed( ord("Z") ) ) {
|
2021-06-05 01:58:44 -07:00
|
|
|
text_advance_ready = TEXT_LOADING;
|
2021-06-04 01:09:05 -07:00
|
|
|
if (ds_queue_empty(name_test) || ds_queue_empty(text_test) || ds_queue_empty(active_test) || ds_queue_empty(emote_test)) {
|
2021-06-03 21:01:32 -07:00
|
|
|
dialogue_mode = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|