| 1 |
if (!instance_exists(obj_quote_bubble_battle)) |
| 2 |
{ |
| 3 |
instance_destroy(); |
| 4 |
exit; |
| 5 |
} |
| 6 |
script_execute(scr_controls_text); |
| 7 |
if (key_revert_pressed) |
| 8 |
{ |
| 9 |
characters = message_length; |
| 10 |
message_draw = string_copy(message[message_current], 0, characters); |
| 11 |
if (color_count >= 1) |
| 12 |
message_draw_2 = string_copy(message_2[message_current], 0, characters); |
| 13 |
} |
| 14 |
if (characters < message_length) |
| 15 |
{ |
| 16 |
if (counter == 0) |
| 17 |
{ |
| 18 |
if (color_count >= 1) |
| 19 |
{ |
| 20 |
script_execute(scr_text_increase_color); |
| 21 |
script_execute(scr_talking_enemy_color); |
| 22 |
} |
| 23 |
else |
| 24 |
{ |
| 25 |
script_execute(scr_text_increase); |
| 26 |
script_execute(scr_talking_enemy); |
| 27 |
} |
| 28 |
} |
| 29 |
else |
| 30 |
{ |
| 31 |
can_talk = false; |
| 32 |
} |
| 33 |
} |
| 34 |
else |
| 35 |
{ |
| 36 |
can_talk = false; |
| 37 |
if (key_select_pressed) |
| 38 |
{ |
| 39 |
if (message_current < message_end) |
| 40 |
{ |
| 41 |
message_current += 1; |
| 42 |
message_length = string_length(message[message_current]); |
| 43 |
characters = 0; |
| 44 |
message_draw = ""; |
| 45 |
if (color_count >= 1) |
| 46 |
message_draw_2 = ""; |
| 47 |
} |
| 48 |
else |
| 49 |
{ |
| 50 |
with (obj_heart_battle_fighting_parent) |
| 51 |
moveable = true; |
| 52 |
var target_bubble = 2141; |
| 53 |
if (spawner != -4) |
| 54 |
target_bubble = spawner; |
| 55 |
with (target_bubble) |
| 56 |
instance_destroy(); |
| 57 |
instance_destroy(); |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
if (color_count >= 1) |
| 62 |
script_execute(scr_text_counter_color); |
| 63 |
else |
| 64 |
script_execute(scr_text_counter); |