1 |
if (instance_exists(obj_dialogue_box_battle)) |
2 |
{ |
3 |
if (obj_dialogue_box_battle.image_alpha == 0) |
4 |
exit; |
5 |
} |
6 |
else |
7 |
{ |
8 |
exit; |
9 |
} |
10 |
script_execute(scr_controls_text); |
11 |
if (key_revert_pressed) |
12 |
{ |
13 |
characters = message_length; |
14 |
message_draw = string_copy(message[message_current], 0, characters); |
15 |
} |
16 |
if (characters < message_length) |
17 |
{ |
18 |
if (counter == 0) |
19 |
{ |
20 |
script_execute(scr_text_increase); |
21 |
script_execute(scr_talking_starlo); |
22 |
} |
23 |
else |
24 |
{ |
25 |
can_talk = false; |
26 |
} |
27 |
} |
28 |
else |
29 |
{ |
30 |
can_talk = false; |
31 |
if (key_select_pressed) |
32 |
{ |
33 |
if (message_current < message_end) |
34 |
{ |
35 |
message_current += 1; |
36 |
message_length = string_length(message[message_current]); |
37 |
characters = 0; |
38 |
message_draw = ""; |
39 |
} |
40 |
else |
41 |
{ |
42 |
if (end_fight == true) |
43 |
{ |
44 |
instance_create(0, 0, obj_battle_fade_out_screen); |
45 |
} |
46 |
else if (last_text_move_select < 0) |
47 |
{ |
48 |
with (obj_dummy_training_hat) |
49 |
{ |
50 |
state = 1; |
51 |
audio_play_sound(snd_decibatfall, 20, false); |
52 |
} |
53 |
} |
54 |
else |
55 |
{ |
56 |
script_execute(scr_dummy_training_pacifist_no_attack); |
57 |
} |
58 |
instance_destroy(); |
59 |
} |
60 |
} |
61 |
} |
62 |
script_execute(scr_text_counter); |
63 |
script_execute(scr_portrait_counter); |