1 |
script_execute(scr_controls_text); |
2 |
if (key_revert_pressed) |
3 |
{ |
4 |
characters = message_length; |
5 |
message_draw = string_copy(message[message_current], 0, characters); |
6 |
} |
7 |
if (characters < message_length) |
8 |
{ |
9 |
if (counter == 0) |
10 |
{ |
11 |
script_execute(scr_text_increase); |
12 |
script_execute(scr_talking_axis); |
13 |
} |
14 |
else |
15 |
{ |
16 |
can_talk = false; |
17 |
} |
18 |
} |
19 |
else |
20 |
{ |
21 |
can_talk = false; |
22 |
if (key_select_pressed && skippable == true) |
23 |
{ |
24 |
if (message_current < message_end) |
25 |
{ |
26 |
message_adv = true; |
27 |
} |
28 |
else |
29 |
{ |
30 |
with (obj_dialogue_box_battle_transformation_any) |
31 |
event_user(0); |
32 |
with (obj_quote_bubble_battle) |
33 |
instance_destroy(); |
34 |
instance_destroy(); |
35 |
} |
36 |
} |
37 |
if (skippable == false) |
38 |
{ |
39 |
if (current_turn == 3 && message_current == 0) |
40 |
{ |
41 |
if (scene == 0) |
42 |
scene = 1; |
43 |
} |
44 |
} |
45 |
} |
46 |
switch (scene) |
47 |
{ |
48 |
case 1: |
49 |
if (scr_battle_box_resize_midfightscr_battle_box_resize_midfightfunction scr_battle_box_resize_midfight()
{
if (instance_exists(obj_dialogue_box_battle_transformation_any))
{
with (obj_dialogue_box_battle_transformation_any)
{
battle_box_resize_midfight = true;
battle_box_target_xscale = argument[0] / sprite_get_width(sprite_index);
battle_box_target_yscale = argument[1] / sprite_get_height(sprite_index);
if (argument_count > 2)
{
battle_box_target_x = argument[2];
battle_box_target_y = argument[3];
}
if (abs(image_xscale - battle_box_target_xscale) < 0.01 && abs(image_yscale - battle_box_target_yscale) < 0.01 && abs(x - battle_box_target_x) < 0.1 && abs(y - battle_box_target_y) < 0.1)
{
var box = 3154;
global.attack_surface_width = box.sprite_width - 8;
global.attack_surface_height = box.sprite_height - 8;
global.attack_surface_x = box.x - (global.attack_surface_width * 0.5);
global.attack_surface_y = box.y - (global.attack_surface_height * 0.5);
if (surface_exists(global.attack_surface))
global.attack_surface = surface_create(global.attack_surface_width, global.attack_surface_height);
return true;
}
}
}
else
{
return false;
}
} (575, 140)) |
50 |
{ |
51 |
scr_text_battle(); |
52 |
with (msg) |
53 |
{ |
54 |
sndfnt = 391; |
55 |
message[0] = "* (You do.)"; |
56 |
} |
57 |
if (!global.dialogue_open) |
58 |
cutscene_advance(); |
59 |
} |
60 |
break; |
61 |
case 2: |
62 |
message_adv = true; |
63 |
cutscene_advance(); |
64 |
break; |
65 |
case 3: |
66 |
if (cutscene_wait(0.5)) |
67 |
audio_play_sound(318, 1, 0, 1, 0, 0.7); |
68 |
break; |
69 |
case 4: |
70 |
obj_axis_body.x = obj_axis_body.xstart; |
71 |
obj_axis_body.y = obj_axis_body.ystart; |
72 |
obj_axis_body.x += random_range(-1, 1); |
73 |
obj_axis_body.y += random_range(-1, 1); |
74 |
white_fade_alpha += 0.05; |
75 |
if (white_fade_alpha >= 1) |
76 |
cutscene_advance(); |
77 |
break; |
78 |
case 5: |
79 |
cutscene_wait(1); |
80 |
break; |
81 |
case 6: |
82 |
message_adv = true; |
83 |
cutscene_advance(); |
84 |
obj_axis_heart.image_index = 3; |
85 |
obj_axis_heart.image_speed = 0; |
86 |
obj_axis_body.sprite_index = spr_axis_body; |
87 |
audio_play_sound(381, 1, 0, 0.75, 0, 1.2); |
88 |
audio_play_sound(413, 1, 0, 1, 0, 1.2); |
89 |
break; |
90 |
case 7: |
91 |
white_fade_alpha -= 0.1; |
92 |
if (white_fade_alpha <= 0) |
93 |
cutscene_advance(); |
94 |
break; |
95 |
case 8: |
96 |
skippable = true; |
97 |
scene = 0; |
98 |
global.enemy_sparing = true; |
99 |
break; |
100 |
} |
101 |
if (message_adv == true) |
102 |
{ |
103 |
message_current += 1; |
104 |
message_length = string_length(message[message_current]); |
105 |
characters = 0; |
106 |
message_draw = ""; |
107 |
draw_enabled = true; |
108 |
message_adv = false; |
109 |
} |
110 |
script_execute(scr_text_counter); |
111 |
if (scene > 0) |
112 |
{ |
113 |
with (obj_heart_battle_fighting_axis) |
114 |
{ |
115 |
if (image_alpha > 0) |
116 |
image_alpha -= 0.1; |
117 |
} |
118 |
with (obj_battle_enemy_attack_axis_shield) |
119 |
{ |
120 |
if (image_alpha > 0) |
121 |
image_alpha -= 0.1; |
122 |
} |
123 |
} |