| 1 |
script_execute(scr_controls_text); |
| 2 |
if (transforming == false) |
| 3 |
{ |
| 4 |
if (key_revert_pressed) |
| 5 |
{ |
| 6 |
characters = message_length; |
| 7 |
message_draw = string_copy(message[message_current], 0, characters); |
| 8 |
} |
| 9 |
if (characters < message_length) |
| 10 |
{ |
| 11 |
if (counter == 0) |
| 12 |
{ |
| 13 |
script_execute(scr_text_increase); |
| 14 |
script_execute(scr_talking_martlet); |
| 15 |
} |
| 16 |
else |
| 17 |
{ |
| 18 |
can_talk = false; |
| 19 |
} |
| 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 if (transform == true) |
| 34 |
{ |
| 35 |
instance_create(obj_martlet_g_body.x, obj_martlet_g_body.y, obj_martlet_g_fight_mode); |
| 36 |
with (obj_quote_bubble_battle) |
| 37 |
instance_destroy(); |
| 38 |
transforming = true; |
| 39 |
} |
| 40 |
else |
| 41 |
{ |
| 42 |
if (attack == true) |
| 43 |
{ |
| 44 |
with (obj_heart_battle_fighting_parent) |
| 45 |
moveable = true; |
| 46 |
} |
| 47 |
else |
| 48 |
{ |
| 49 |
script_execute(scr_martlet_genocide_no_attack); |
| 50 |
} |
| 51 |
with (obj_quote_bubble_battle) |
| 52 |
instance_destroy(); |
| 53 |
instance_destroy(); |
| 54 |
} |
| 55 |
} |
| 56 |
} |
| 57 |
script_execute(scr_text_counter); |
| 58 |
} |
| 59 |
if (transforming == true && !instance_exists(obj_martlet_g_fight_mode)) |
| 60 |
{ |
| 61 |
if (attack == true) |
| 62 |
{ |
| 63 |
with (obj_heart_battle_fighting_parent) |
| 64 |
moveable = true; |
| 65 |
} |
| 66 |
else |
| 67 |
{ |
| 68 |
script_execute(scr_martlet_genocide_no_attack); |
| 69 |
} |
| 70 |
instance_destroy(); |
| 71 |
} |