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