1 |
function scr_enemy_timer_attacks_flier_trioscr_enemy_timer_attacks_flier_triofunction scr_enemy_timer_attacks_flier_trio()
{
var enemy_attack = global.enemy_attack;
if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Flies Double" && obj_heart_battle_fighting_parent.moveable == true)
{
script_execute(scr_enemy_attack_flier_flies_double);
if (global.attack_counter >= 0)
{
global.attack_counter -= 1;
if (global.attack_counter < 0)
global.attack_counter = global.attack_counter_max;
}
}
else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Swarm Double" && obj_heart_battle_fighting_parent.moveable == true)
{
script_execute(scr_enemy_attack_flier_swarm_double);
if (global.attack_counter >= 0)
{
global.attack_counter -= 1;
if (global.attack_counter < 0)
global.attack_counter = global.attack_counter_max;
}
}
else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Fire Flies" && obj_heart_battle_fighting_parent.moveable == true)
{
if (!instance_exists(obj_battle_enemy_attack_flier_fire_parent))
{
instance_create(obj_dialogue_box_battle_transformation_any.x - 38, obj_dialogue_box_battle_transformation_any.bbox_top - 20, obj_battle_enemy_attack_flier_fire_left);
instance_create(obj_dialogue_box_battle_transformation_any.x + 38, obj_dialogue_box_battle_transformation_any.bbox_top - 20, obj_battle_enemy_attack_flier_fire_right);
}
script_execute(scr_enemy_attack_flier_flies);
if (global.attack_counter >= 0)
{
global.attack_counter -= 1;
if (global.attack_counter < 0)
global.attack_counter = global.attack_counter_max;
}
}
else if (instance_exists(obj_dialogue_box_battle_transformation_any) && (enemy_attack == "Flier Flies" || enemy_attack == "Flier Fire") && obj_heart_battle_fighting_parent.moveable == true)
{
script_execute(scr_enemy_timer_attacks_flier_solo);
}
} () |
2 |
{ |
3 |
var enemy_attack = global.enemy_attack; |
4 |
if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Flies Double" && obj_heart_battle_fighting_parent.moveable == true) |
5 |
{ |
6 |
script_execute(scr_enemy_attack_flier_flies_double); |
7 |
if (global.attack_counter >= 0) |
8 |
{ |
9 |
global.attack_counter -= 1; |
10 |
if (global.attack_counter < 0) |
11 |
global.attack_counter = global.attack_counter_max; |
12 |
} |
13 |
} |
14 |
else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Swarm Double" && obj_heart_battle_fighting_parent.moveable == true) |
15 |
{ |
16 |
script_execute(scr_enemy_attack_flier_swarm_double); |
17 |
if (global.attack_counter >= 0) |
18 |
{ |
19 |
global.attack_counter -= 1; |
20 |
if (global.attack_counter < 0) |
21 |
global.attack_counter = global.attack_counter_max; |
22 |
} |
23 |
} |
24 |
else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Fire Flies" && obj_heart_battle_fighting_parent.moveable == true) |
25 |
{ |
26 |
if (!instance_exists(obj_battle_enemy_attack_flier_fire_parent)) |
27 |
{ |
28 |
instance_create(obj_dialogue_box_battle_transformation_any.x - 38, obj_dialogue_box_battle_transformation_any.bbox_top - 20, obj_battle_enemy_attack_flier_fire_left); |
29 |
instance_create(obj_dialogue_box_battle_transformation_any.x + 38, obj_dialogue_box_battle_transformation_any.bbox_top - 20, obj_battle_enemy_attack_flier_fire_right); |
30 |
} |
31 |
script_execute(scr_enemy_attack_flier_flies); |
32 |
if (global.attack_counter >= 0) |
33 |
{ |
34 |
global.attack_counter -= 1; |
35 |
if (global.attack_counter < 0) |
36 |
global.attack_counter = global.attack_counter_max; |
37 |
} |
38 |
} |
39 |
else if (instance_exists(obj_dialogue_box_battle_transformation_any) && (enemy_attack == "Flier Flies" || enemy_attack == "Flier Fire") && obj_heart_battle_fighting_parent.moveable == true) |
40 |
{ |
41 |
script_execute(scr_enemy_timer_attacks_flier_solo); |
42 |
} |
43 |
} |