1 |
var battle_enemy_name = global.battle_enemy_name |
2 |
var game_mode = global.game_mode |
3 |
script_execute(gml_Script_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(gml_Script_scr_text_increase) |
14 |
script_execute(gml_Script_scr_talking_text) |
15 |
} |
16 |
else |
17 |
can_talk = false |
18 |
} |
19 |
else |
20 |
{ |
21 |
can_talk = false |
22 |
if key_select_pressed |
23 |
{ |
24 |
if (message_current < message_end) |
25 |
{ |
26 |
message_current += 1 |
27 |
message_length = string_length(message[message_current]) |
28 |
characters = 0 |
29 |
message_draw = "" |
30 |
} |
31 |
else |
32 |
{ |
33 |
if (game_mode == "customs") |
34 |
global.enemy_attacking = true |
35 |
else if (game_mode == "yellow") |
36 |
{ |
37 |
var act_number = global.act_number |
38 |
switch act_number |
39 |
{ |
40 |
case 1: |
41 |
global.no_hit_count += 1 |
42 |
scr_determine_special_effect_enemy("Check 1") |
43 |
break |
44 |
case 2: |
45 |
global.no_hit_count_2 += 1 |
46 |
scr_determine_special_effect_enemy("Check 2") |
47 |
break |
48 |
case 3: |
49 |
global.no_hit_count_3 += 1 |
50 |
scr_determine_special_effect_enemy("Check 3") |
51 |
break |
52 |
} |
53 |
|
54 |
global.important_cutscene = script_execute(gml_Script_scr_determine_important_cutscene_attacking) |
55 |
global.can_attack = script_execute(gml_Script_scr_determine_can_attack_attacking) |
56 |
if (global.important_cutscene == false && global.can_attack == true) |
57 |
global.enemy_attacking = true |
58 |
if (global.can_attack == false) |
59 |
{ |
60 |
with (obj_dialogue_box_battle) |
61 |
no_loop_can_attack = false |
62 |
} |
63 |
} |
64 |
instance_destroy() |
65 |
} |
66 |
} |
67 |
} |
68 |
script_execute(gml_Script_scr_text_counter) |