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