| 1 |
if (action[message_current] != "Override") |
| 2 |
{ |
| 3 |
script_execute(scr_controls_text); |
| 4 |
if (key_revert_pressed) |
| 5 |
{ |
| 6 |
characters = message_length; |
| 7 |
message_draw = string_copy(message[message_current], 0, characters); |
| 8 |
} |
| 9 |
if (characters < message_length) |
| 10 |
{ |
| 11 |
if (counter == 0) |
| 12 |
{ |
| 13 |
script_execute(scr_text_increase); |
| 14 |
script_execute(talk_script[message_current]); |
| 15 |
} |
| 16 |
else |
| 17 |
{ |
| 18 |
can_talk = false; |
| 19 |
} |
| 20 |
} |
| 21 |
else |
| 22 |
{ |
| 23 |
can_talk = false; |
| 24 |
if (key_select_pressed) |
| 25 |
{ |
| 26 |
if (message_current < message_end) |
| 27 |
{ |
| 28 |
message_current += 1; |
| 29 |
message_length = string_length(message[message_current]); |
| 30 |
characters = 0; |
| 31 |
message_draw = ""; |
| 32 |
} |
| 33 |
else |
| 34 |
{ |
| 35 |
event_user(0); |
| 36 |
exit; |
| 37 |
} |
| 38 |
} |
| 39 |
} |
| 40 |
script_execute(scr_text_counter); |
| 41 |
} |