| 1 |
var battle_enemy_name = global.battle_enemy_name; |
| 2 |
var game_mode = global.game_mode; |
| 3 |
script_execute(scr_controls_text); |
| 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_text); |
| 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 |
| 34 |
{ |
| 35 |
if (game_mode == "customs") |
| 36 |
{ |
| 37 |
global.enemy_attacking = true; |
| 38 |
} |
| 39 |
else if (game_mode == "yellow") |
| 40 |
{ |
| 41 |
var act_number = global.act_number; |
| 42 |
switch (act_number) |
| 43 |
{ |
| 44 |
case 1: |
| 45 |
global.no_hit_count += 1; |
| 46 |
scr_determine_special_effect_enemy("Check 1"); |
| 47 |
break; |
| 48 |
case 2: |
| 49 |
global.no_hit_count_2 += 1; |
| 50 |
scr_determine_special_effect_enemy("Check 2"); |
| 51 |
break; |
| 52 |
case 3: |
| 53 |
global.no_hit_count_3 += 1; |
| 54 |
scr_determine_special_effect_enemy("Check 3"); |
| 55 |
break; |
| 56 |
} |
| 57 |
global.important_cutscene = script_execute(scr_determine_important_cutscene_attacking); |
| 58 |
global.can_attack = script_execute(scr_determine_can_attack_attacking); |
| 59 |
if (global.important_cutscene == false && global.can_attack == true) |
| 60 |
global.enemy_attacking = true; |
| 61 |
if (global.can_attack == false) |
| 62 |
{ |
| 63 |
with (obj_dialogue_box_battle) |
| 64 |
no_loop_can_attack = false; |
| 65 |
} |
| 66 |
} |
| 67 |
instance_destroy(); |
| 68 |
} |
| 69 |
} |
| 70 |
} |
| 71 |
script_execute(scr_text_counter); |