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