1 |
if (obj_dialogue_box_battle.image_alpha > 0) |
2 |
{ |
3 |
var battle_enemy_name = global.battle_enemy_name; |
4 |
var game_mode = global.game_mode; |
5 |
script_execute(scr_controls_text); |
6 |
if (key_revert_pressed) |
7 |
{ |
8 |
characters = message_length; |
9 |
message_draw = string_copy(message[message_current], 0, characters); |
10 |
} |
11 |
if (characters < message_length) |
12 |
{ |
13 |
if (counter == 0) |
14 |
{ |
15 |
script_execute(scr_text_increase); |
16 |
script_execute(scr_talking_text); |
17 |
} |
18 |
else |
19 |
{ |
20 |
can_talk = false; |
21 |
} |
22 |
} |
23 |
else |
24 |
{ |
25 |
can_talk = false; |
26 |
if (key_select_pressed) |
27 |
{ |
28 |
if (message_current < message_end) |
29 |
{ |
30 |
message_current += 1; |
31 |
message_length = string_length(message[message_current]); |
32 |
characters = 0; |
33 |
message_draw = ""; |
34 |
} |
35 |
else |
36 |
{ |
37 |
if (game_mode == "customs") |
38 |
{ |
39 |
} |
40 |
else if (game_mode == "yellow") |
41 |
{ |
42 |
if (battle_enemy_name == "micro froggit") |
43 |
global.important_cutscene = false; |
44 |
} |
45 |
instance_create(0, 0, obj_dialogue_battle_win_genocide); |
46 |
instance_destroy(); |
47 |
} |
48 |
} |
49 |
} |
50 |
script_execute(scr_text_counter); |
51 |
} |