|
1
|
function scr_enemy_timer_attacks_decibatscr_enemy_timer_attacks_decibat
function scr_enemy_timer_attacks_decibat()
{
var enemy_attack = global.enemy_attack;
if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Decibat Wave Blue" && obj_heart_battle_fighting_parent.moveable == true)
{
script_execute(scr_enemy_attack_decibat_wave_blue);
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 == "Decibat Wave Orange" && obj_heart_battle_fighting_parent.moveable == true)
{
script_execute(scr_enemy_attack_decibat_wave_orange);
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 == "Decibat Wave Multi" && obj_heart_battle_fighting_parent.moveable == true)
{
script_execute(scr_enemy_attack_decibat_wave_multi);
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 == "Decibat Wave Mini" && obj_heart_battle_fighting_parent.moveable == true)
{
script_execute(scr_enemy_attack_decibat_wave_mini);
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 == "Decibat Stalagmite" && obj_heart_battle_fighting_parent.moveable == true)
{
script_execute(scr_enemy_attack_decibat_stalagmite);
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) && enemy_attack == "Decibat Wave Blue" && obj_heart_battle_fighting_parent.moveable == true)
|
|
5
|
{
|
|
6
|
script_execute(scr_enemy_attack_decibat_wave_blue);
|
|
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 == "Decibat Wave Orange" && obj_heart_battle_fighting_parent.moveable == true)
|
|
15
|
{
|
|
16
|
script_execute(scr_enemy_attack_decibat_wave_orange);
|
|
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 == "Decibat Wave Multi" && obj_heart_battle_fighting_parent.moveable == true)
|
|
25
|
{
|
|
26
|
script_execute(scr_enemy_attack_decibat_wave_multi);
|
|
27
|
if (global.attack_counter >= 0)
|
|
28
|
{
|
|
29
|
global.attack_counter -= 1;
|
|
30
|
if (global.attack_counter < 0)
|
|
31
|
global.attack_counter = global.attack_counter_max;
|
|
32
|
}
|
|
33
|
}
|
|
34
|
else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Decibat Wave Mini" && obj_heart_battle_fighting_parent.moveable == true)
|
|
35
|
{
|
|
36
|
script_execute(scr_enemy_attack_decibat_wave_mini);
|
|
37
|
if (global.attack_counter >= 0)
|
|
38
|
{
|
|
39
|
global.attack_counter -= 1;
|
|
40
|
if (global.attack_counter < 0)
|
|
41
|
global.attack_counter = global.attack_counter_max;
|
|
42
|
}
|
|
43
|
}
|
|
44
|
else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Decibat Stalagmite" && obj_heart_battle_fighting_parent.moveable == true)
|
|
45
|
{
|
|
46
|
script_execute(scr_enemy_attack_decibat_stalagmite);
|
|
47
|
if (global.attack_counter >= 0)
|
|
48
|
{
|
|
49
|
global.attack_counter -= 1;
|
|
50
|
if (global.attack_counter < 0)
|
|
51
|
global.attack_counter = global.attack_counter_max;
|
|
52
|
}
|
|
53
|
}
|
|
54
|
}
|