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