1 |
if (!instance_exists(obj_quote_bubble_battle)) |
2 |
instance_destroy() |
3 |
script_execute(gml_Script_scr_controls_text) |
4 |
if key_revert_pressed |
5 |
{ |
6 |
characters = message_length |
7 |
message_draw = string_copy(message[message_current], 0, characters) |
8 |
if (color_count >= 1) |
9 |
message_draw_2 = string_copy(message_2[message_current], 0, characters) |
10 |
} |
11 |
if (characters < message_length) |
12 |
{ |
13 |
if (counter == 0) |
14 |
{ |
15 |
if (color_count >= 1) |
16 |
{ |
17 |
script_execute(gml_Script_scr_text_increase_color) |
18 |
script_execute(gml_Script_scr_talking_enemy_color) |
19 |
} |
20 |
else |
21 |
{ |
22 |
script_execute(gml_Script_scr_text_increase) |
23 |
script_execute(gml_Script_scr_talking_enemy) |
24 |
} |
25 |
} |
26 |
else |
27 |
can_talk = false |
28 |
} |
29 |
else |
30 |
{ |
31 |
can_talk = false |
32 |
if key_select_pressed |
33 |
{ |
34 |
if (message_current < message_end) |
35 |
{ |
36 |
message_current += 1 |
37 |
message_length = string_length(message[message_current]) |
38 |
characters = 0 |
39 |
message_draw = "" |
40 |
if (color_count >= 1) |
41 |
message_draw_2 = "" |
42 |
} |
43 |
else |
44 |
{ |
45 |
with (obj_heart_battle_fighting_parent) |
46 |
moveable = true |
47 |
var target_bubble = obj_quote_bubble_battle |
48 |
if (spawner != -4) |
49 |
target_bubble = spawner |
50 |
with (target_bubble) |
51 |
instance_destroy() |
52 |
instance_destroy() |
53 |
} |
54 |
} |
55 |
} |
56 |
if (color_count >= 1) |
57 |
script_execute(gml_Script_scr_text_counter_color) |
58 |
else |
59 |
script_execute(gml_Script_scr_text_counter) |