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