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(gml_Script_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(gml_Script_scr_text_increase) |
16 |
script_execute(gml_Script_scr_talking_text) |
17 |
} |
18 |
else |
19 |
can_talk = false |
20 |
} |
21 |
else |
22 |
{ |
23 |
can_talk = false |
24 |
if key_select_pressed |
25 |
{ |
26 |
if (message_current < message_end) |
27 |
{ |
28 |
message_current += 1 |
29 |
message_length = string_length(message[message_current]) |
30 |
characters = 0 |
31 |
message_draw = "" |
32 |
} |
33 |
else |
34 |
{ |
35 |
if (game_mode == "customs") |
36 |
{ |
37 |
} |
38 |
else if (game_mode == "yellow") |
39 |
{ |
40 |
if (battle_enemy_name == "micro froggit") |
41 |
global.important_cutscene = false |
42 |
} |
43 |
instance_create(0, 0, obj_dialogue_battle_win_genocide) |
44 |
instance_destroy() |
45 |
} |
46 |
} |
47 |
} |
48 |
script_execute(gml_Script_scr_text_counter) |
49 |
} |