1 |
function scr_enemy_timer_attacks_insomnitot_soloscr_enemy_timer_attacks_insomnitot_solofunction scr_enemy_timer_attacks_insomnitot_solo()
{
var enemy_attack = global.enemy_attack;
if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true)
{
if (enemy_attack == "Insomnitot Sheep" && !instance_exists(obj_battle_enemy_attack_insomnitot_fence))
{
script_execute(scr_enemy_attack_insomnitot_sheep);
}
else if (enemy_attack == "Insomnitot ZZZ")
{
script_execute(scr_enemy_attack_insomnitot_zzz);
if (global.attack_counter >= 0)
{
global.attack_counter -= 1;
if (global.attack_counter < 0)
global.attack_counter = global.attack_counter_max;
}
}
else if (enemy_attack == "Insomnitot Stars")
{
script_execute(scr_enemy_attack_insomnitot_stars);
if (global.attack_counter >= 0)
{
global.attack_counter -= 1;
if (global.attack_counter < 0)
global.attack_counter = global.attack_counter_max;
}
}
}
} () |
2 |
{ |
3 |
var enemy_attack = global.enemy_attack; |
4 |
if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true) |
5 |
{ |
6 |
if (enemy_attack == "Insomnitot Sheep" && !instance_exists(obj_battle_enemy_attack_insomnitot_fence)) |
7 |
{ |
8 |
script_execute(scr_enemy_attack_insomnitot_sheep); |
9 |
} |
10 |
else if (enemy_attack == "Insomnitot ZZZ") |
11 |
{ |
12 |
script_execute(scr_enemy_attack_insomnitot_zzz); |
13 |
if (global.attack_counter >= 0) |
14 |
{ |
15 |
global.attack_counter -= 1; |
16 |
if (global.attack_counter < 0) |
17 |
global.attack_counter = global.attack_counter_max; |
18 |
} |
19 |
} |
20 |
else if (enemy_attack == "Insomnitot Stars") |
21 |
{ |
22 |
script_execute(scr_enemy_attack_insomnitot_stars); |
23 |
if (global.attack_counter >= 0) |
24 |
{ |
25 |
global.attack_counter -= 1; |
26 |
if (global.attack_counter < 0) |
27 |
global.attack_counter = global.attack_counter_max; |
28 |
} |
29 |
} |
30 |
} |
31 |
} |