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_flowey_1); |
13 |
} |
14 |
else |
15 |
{ |
16 |
can_talk = false; |
17 |
} |
18 |
} |
19 |
else |
20 |
{ |
21 |
can_talk = false; |
22 |
if (key_select_pressed) |
23 |
{ |
24 |
if (message_current < message_end) |
25 |
{ |
26 |
if (message_current == 3) |
27 |
{ |
28 |
while (instance_number(obj_battle_enemy_attack_friendliness_pellets_yellow) < 5) |
29 |
instance_create(obj_flowey_intro_yellow.x, obj_flowey_intro_yellow.y, obj_battle_enemy_attack_friendliness_pellets_yellow); |
30 |
} |
31 |
message_current += 1; |
32 |
message_length = string_length(message[message_current]); |
33 |
characters = 0; |
34 |
message_draw = ""; |
35 |
} |
36 |
else |
37 |
{ |
38 |
with (obj_battle_enemy_attack_friendliness_pellets_yellow) |
39 |
{ |
40 |
while (distance_counter < distance_counter_max) |
41 |
{ |
42 |
x += lengthdir_x(move_speed_create, angle); |
43 |
y += lengthdir_y(move_speed_create, angle); |
44 |
distance_counter += 1; |
45 |
} |
46 |
move = true; |
47 |
} |
48 |
with (obj_quote_bubble_battle) |
49 |
instance_destroy(); |
50 |
instance_destroy(); |
51 |
} |
52 |
} |
53 |
} |
54 |
script_execute(scr_text_counter); |