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_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 (global.enemy_sparing && message_current >= 2) |
18 |
{ |
19 |
if (message_current == 2 && (!alarm[0])) |
20 |
{ |
21 |
alarm[0] = 60 |
22 |
obj_guardener_body.guardener_stop_animating = true |
23 |
} |
24 |
voice_pitch = 0.5 |
25 |
} |
26 |
if (characters < message_length) |
27 |
{ |
28 |
if (counter == 0) |
29 |
{ |
30 |
script_execute(gml_Script_scr_text_increase) |
31 |
script_execute(gml_Script_scr_talking_martlet) |
32 |
} |
33 |
else |
34 |
can_talk = false |
35 |
} |
36 |
else |
37 |
{ |
38 |
can_talk = false |
39 |
if (key_select_pressed && skippable == true) |
40 |
{ |
41 |
if (message_current < message_end) |
42 |
message_adv = true |
43 |
else |
44 |
{ |
45 |
with (obj_heart_battle_fighting_parent) |
46 |
moveable = true |
47 |
with (obj_quote_bubble_battle) |
48 |
instance_destroy() |
49 |
instance_destroy() |
50 |
} |
51 |
} |
52 |
} |
53 |
if (message_adv == true) |
54 |
{ |
55 |
message_current += 1 |
56 |
message_length = string_length(message[message_current]) |
57 |
characters = 0 |
58 |
message_draw = "" |
59 |
draw_enabled = true |
60 |
message_adv = false |
61 |
} |
62 |
script_execute(gml_Script_scr_text_counter) |