|
1
|
function scr_enemy_timer_attacks_starloscr_enemy_timer_attacks_starlo
function scr_enemy_timer_attacks_starlo()
{
var enemy_attack = global.enemy_attack;
if (!instance_exists(obj_attack_cycler_starlo))
instance_create(0, 0, obj_attack_cycler_starlo);
if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true)
{
if (enemy_attack == "Starlo Intro" && !instance_exists(obj_battle_enemy_attack_starlo_intro_attack_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_intro_attack_checker);
}
else if (enemy_attack == "Starlo Bullet Rain" && !instance_exists(obj_battle_enemy_attack_starlo_bullet_rain_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_bullet_rain_checker);
}
else if (enemy_attack == "Starlo Guns Horizontal" && !instance_exists(obj_battle_enemy_attack_starlo_guns_horizontal_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_guns_horizontal_checker);
}
else if (enemy_attack == "Starlo Dynamite" && !instance_exists(obj_battle_enemy_attack_starlo_dynamite_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_dynamite_checker);
}
else if (enemy_attack == "Starlo Guns n Dynamite" && !instance_exists(obj_battle_enemy_attack_starlo_guns_n_dynamite_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_guns_n_dynamite_checker);
}
else if (enemy_attack == "Starlo Take Aim One" && !instance_exists(obj_battle_enemy_attack_starlo_take_aim_one_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_take_aim_one_checker);
}
else if (enemy_attack == "Starlo Take Aim" && !instance_exists(obj_battle_enemy_attack_starlo_take_aim_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_take_aim_checker);
}
else if (enemy_attack == "Starlo Bell" && !instance_exists(obj_battle_enemy_attack_starlo_bell_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_bell_checker);
}
else if (enemy_attack == "Starlo Bell and Guns" && !instance_exists(obj_battle_enemy_attack_starlo_bell_guns_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_bell_guns_checker);
}
else if (enemy_attack == "Starlo Guns Surround" && !instance_exists(obj_battle_enemy_attack_starlo_guns_surround_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_guns_surround_checker);
}
else if (enemy_attack == "Starlo Horseshoe" && !instance_exists(obj_battle_enemy_attack_starlo_horseshoe_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_horseshoe_checker);
}
else if (enemy_attack == "Starlo Take Aim Slow" && !instance_exists(obj_battle_enemy_attack_starlo_take_aim_slow_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_take_aim_slow_checker);
}
else if (enemy_attack == "Starlo Shooting Dynamite" && !instance_exists(obj_battle_enemy_attack_starlo_shooting_dynamite_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_shooting_dynamite_checker);
}
else if (enemy_attack == "Starlo Surround Slow" && !instance_exists(obj_battle_enemy_attack_starlo_slow_surround_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_slow_surround_checker);
}
else if (enemy_attack == "Starlo Bottles" && !instance_exists(obj_battle_enemy_attack_starlo_bottles_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_bottles_checker);
}
else if (enemy_attack == "Starlo Train" && !instance_exists(obj_battle_enemy_attack_starlo_train_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_train_checker);
}
else if (enemy_attack == "Starlo Finale" && !instance_exists(obj_battle_enemy_attack_starlo_finale_checker))
{
instance_create(0, 0, obj_battle_enemy_attack_starlo_finale_checker);
}
else if (enemy_attack == "Starlo No Attack")
{
with (obj_dialogue_box_battle_transformation_any)
event_user(0);
}
}
} ()
|
|
2
|
{
|
|
3
|
var enemy_attack = global.enemy_attack;
|
|
4
|
if (!instance_exists(obj_attack_cycler_starlo))
|
|
5
|
instance_create(0, 0, obj_attack_cycler_starlo);
|
|
6
|
if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true)
|
|
7
|
{
|
|
8
|
if (enemy_attack == "Starlo Intro" && !instance_exists(obj_battle_enemy_attack_starlo_intro_attack_checker))
|
|
9
|
{
|
|
10
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_intro_attack_checker);
|
|
11
|
}
|
|
12
|
else if (enemy_attack == "Starlo Bullet Rain" && !instance_exists(obj_battle_enemy_attack_starlo_bullet_rain_checker))
|
|
13
|
{
|
|
14
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_bullet_rain_checker);
|
|
15
|
}
|
|
16
|
else if (enemy_attack == "Starlo Guns Horizontal" && !instance_exists(obj_battle_enemy_attack_starlo_guns_horizontal_checker))
|
|
17
|
{
|
|
18
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_guns_horizontal_checker);
|
|
19
|
}
|
|
20
|
else if (enemy_attack == "Starlo Dynamite" && !instance_exists(obj_battle_enemy_attack_starlo_dynamite_checker))
|
|
21
|
{
|
|
22
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_dynamite_checker);
|
|
23
|
}
|
|
24
|
else if (enemy_attack == "Starlo Guns n Dynamite" && !instance_exists(obj_battle_enemy_attack_starlo_guns_n_dynamite_checker))
|
|
25
|
{
|
|
26
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_guns_n_dynamite_checker);
|
|
27
|
}
|
|
28
|
else if (enemy_attack == "Starlo Take Aim One" && !instance_exists(obj_battle_enemy_attack_starlo_take_aim_one_checker))
|
|
29
|
{
|
|
30
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_take_aim_one_checker);
|
|
31
|
}
|
|
32
|
else if (enemy_attack == "Starlo Take Aim" && !instance_exists(obj_battle_enemy_attack_starlo_take_aim_checker))
|
|
33
|
{
|
|
34
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_take_aim_checker);
|
|
35
|
}
|
|
36
|
else if (enemy_attack == "Starlo Bell" && !instance_exists(obj_battle_enemy_attack_starlo_bell_checker))
|
|
37
|
{
|
|
38
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_bell_checker);
|
|
39
|
}
|
|
40
|
else if (enemy_attack == "Starlo Bell and Guns" && !instance_exists(obj_battle_enemy_attack_starlo_bell_guns_checker))
|
|
41
|
{
|
|
42
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_bell_guns_checker);
|
|
43
|
}
|
|
44
|
else if (enemy_attack == "Starlo Guns Surround" && !instance_exists(obj_battle_enemy_attack_starlo_guns_surround_checker))
|
|
45
|
{
|
|
46
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_guns_surround_checker);
|
|
47
|
}
|
|
48
|
else if (enemy_attack == "Starlo Horseshoe" && !instance_exists(obj_battle_enemy_attack_starlo_horseshoe_checker))
|
|
49
|
{
|
|
50
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_horseshoe_checker);
|
|
51
|
}
|
|
52
|
else if (enemy_attack == "Starlo Take Aim Slow" && !instance_exists(obj_battle_enemy_attack_starlo_take_aim_slow_checker))
|
|
53
|
{
|
|
54
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_take_aim_slow_checker);
|
|
55
|
}
|
|
56
|
else if (enemy_attack == "Starlo Shooting Dynamite" && !instance_exists(obj_battle_enemy_attack_starlo_shooting_dynamite_checker))
|
|
57
|
{
|
|
58
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_shooting_dynamite_checker);
|
|
59
|
}
|
|
60
|
else if (enemy_attack == "Starlo Surround Slow" && !instance_exists(obj_battle_enemy_attack_starlo_slow_surround_checker))
|
|
61
|
{
|
|
62
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_slow_surround_checker);
|
|
63
|
}
|
|
64
|
else if (enemy_attack == "Starlo Bottles" && !instance_exists(obj_battle_enemy_attack_starlo_bottles_checker))
|
|
65
|
{
|
|
66
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_bottles_checker);
|
|
67
|
}
|
|
68
|
else if (enemy_attack == "Starlo Train" && !instance_exists(obj_battle_enemy_attack_starlo_train_checker))
|
|
69
|
{
|
|
70
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_train_checker);
|
|
71
|
}
|
|
72
|
else if (enemy_attack == "Starlo Finale" && !instance_exists(obj_battle_enemy_attack_starlo_finale_checker))
|
|
73
|
{
|
|
74
|
instance_create(0, 0, obj_battle_enemy_attack_starlo_finale_checker);
|
|
75
|
}
|
|
76
|
else if (enemy_attack == "Starlo No Attack")
|
|
77
|
{
|
|
78
|
with (obj_dialogue_box_battle_transformation_any)
|
|
79
|
event_user(0);
|
|
80
|
}
|
|
81
|
}
|
|
82
|
}
|