1 |
script_execute(gml_Script_scr_controls_text) |
2 |
var current_turn = global.special_action_count |
3 |
if key_revert_pressed |
4 |
{ |
5 |
characters = message_length |
6 |
message_draw = string_copy(message[message_current], 0, characters) |
7 |
} |
8 |
if (characters < message_length) |
9 |
{ |
10 |
if (counter == 0) |
11 |
{ |
12 |
script_execute(gml_Script_scr_text_increase) |
13 |
script_execute(gml_Script_scr_talking_axis) |
14 |
} |
15 |
else |
16 |
can_talk = false |
17 |
} |
18 |
else |
19 |
{ |
20 |
can_talk = false |
21 |
if (key_select_pressed && skippable == true) |
22 |
{ |
23 |
if (message_current < message_end) |
24 |
message_adv = true |
25 |
else if (global.route == 2 && (current_turn == 4 || current_turn == 7 || current_turn == 8)) |
26 |
{ |
27 |
if (current_turn == 4) |
28 |
instance_create(0, 0, obj_steamworks_35_in_battle_cutscene_1) |
29 |
if (current_turn == 7) |
30 |
instance_create(0, 0, obj_steamworks_35_in_battle_cutscene_2) |
31 |
if (current_turn == 8) |
32 |
instance_create(0, 0, obj_steamworks_35_in_battle_cutscene_3) |
33 |
with (obj_quote_bubble_battle) |
34 |
instance_destroy() |
35 |
instance_destroy() |
36 |
} |
37 |
else |
38 |
{ |
39 |
with (obj_dialogue_box_battle_transformation_any) |
40 |
event_user(0) |
41 |
with (obj_quote_bubble_battle) |
42 |
instance_destroy() |
43 |
instance_destroy() |
44 |
} |
45 |
} |
46 |
} |
47 |
if (current_turn == 4 && message_current == 3) |
48 |
{ |
49 |
if (!instance_exists(obj_battle_enemy_axis_generator)) |
50 |
{ |
51 |
instance_create(-40, obj_axis_body.y, obj_battle_enemy_axis_generator) |
52 |
instance_create((room_width + 40), obj_axis_body.y, obj_battle_enemy_axis_generator) |
53 |
} |
54 |
} |
55 |
if (message_adv == true) |
56 |
{ |
57 |
message_current += 1 |
58 |
message_length = string_length(message[message_current]) |
59 |
characters = 0 |
60 |
message_draw = "" |
61 |
draw_enabled = true |
62 |
message_adv = false |
63 |
} |
64 |
script_execute(gml_Script_scr_text_counter) |