1 |
if live_call() |
2 |
return global.live_result; |
3 |
script_execute(gml_Script_scr_controls_text) |
4 |
if instance_exists(obj_quote_bubble_battle) |
5 |
{ |
6 |
if (draw_enabled == false) |
7 |
obj_quote_bubble_battle.visible = 0 |
8 |
else |
9 |
obj_quote_bubble_battle.visible = 1 |
10 |
} |
11 |
script_execute(gml_Script_scr_cutscene_battle_martlet_final_2_outro) |
12 |
if (save_message_alpha > 0) |
13 |
save_message_alpha -= 0.1 |
14 |
else |
15 |
save_message_alpha = 0 |
16 |
if (draw_enabled == false) |
17 |
return; |
18 |
if key_revert_pressed |
19 |
{ |
20 |
characters = message_length |
21 |
message_draw = string_copy(message[message_current], 0, characters) |
22 |
} |
23 |
if (characters < message_length) |
24 |
{ |
25 |
if (counter == 0) |
26 |
{ |
27 |
script_execute(gml_Script_scr_text_increase) |
28 |
if (message_current < 15) |
29 |
script_execute(gml_Script_scr_talking_martlet) |
30 |
else if (message_current < 42) |
31 |
script_execute(gml_Script_scr_talking_flowey_1) |
32 |
else |
33 |
{ |
34 |
text_effect = "circle" |
35 |
script_execute(gml_Script_scr_talking_flowey_2) |
36 |
} |
37 |
} |
38 |
else |
39 |
can_talk = false |
40 |
} |
41 |
else |
42 |
{ |
43 |
can_talk = false |
44 |
if (key_select_pressed && skippable == true) |
45 |
{ |
46 |
if (message_current < message_end) |
47 |
message_adv = true |
48 |
else |
49 |
{ |
50 |
with (obj_heart_battle_fighting_parent) |
51 |
moveable = true |
52 |
with (obj_quote_bubble_battle) |
53 |
instance_destroy() |
54 |
instance_destroy() |
55 |
} |
56 |
} |
57 |
} |
58 |
if (message_adv == true) |
59 |
{ |
60 |
message_current += 1 |
61 |
message_length = string_length(message[message_current]) |
62 |
characters = 0 |
63 |
message_draw = "" |
64 |
draw_enabled = true |
65 |
message_adv = false |
66 |
} |
67 |
script_execute(gml_Script_scr_text_counter) |