1 |
message_length = string_length(message[message_current]) |
2 |
script_execute(gml_Script_scr_controls_text) |
3 |
if key_revert_pressed |
4 |
{ |
5 |
characters = message_length |
6 |
message_draw = string_copy(message[message_current], 0, characters) |
7 |
} |
8 |
if (characters < message_length) |
9 |
{ |
10 |
if (counter == 0) |
11 |
{ |
12 |
script_execute(gml_Script_scr_text_increase) |
13 |
script_execute(gml_Script_scr_talking_axis) |
14 |
} |
15 |
else |
16 |
can_talk = false |
17 |
} |
18 |
else |
19 |
{ |
20 |
can_talk = false |
21 |
if (key_select_pressed && skippable == true) |
22 |
{ |
23 |
if (message_current < message_end) |
24 |
message_adv = true |
25 |
else |
26 |
{ |
27 |
with (obj_quote_bubble_battle) |
28 |
instance_destroy() |
29 |
instance_destroy() |
30 |
} |
31 |
} |
32 |
} |
33 |
if (message_adv == true) |
34 |
{ |
35 |
message_current += 1 |
36 |
message_length = string_length(message[message_current]) |
37 |
characters = 0 |
38 |
message_draw = "" |
39 |
draw_enabled = true |
40 |
message_adv = false |
41 |
} |
42 |
script_execute(gml_Script_scr_text_counter) |