1 |
var attack_index; |
2 |
if live_call() |
3 |
return global.live_result; |
4 |
if (created_spawner != obj_quote_battle_ceroba_outro_4) |
5 |
created_spawner.attack_stop = true |
6 |
var list_pos = irandom_range(0, (ds_list_size(attack_list) - 1)) |
7 |
var attack_choice = ds_list_find_value(attack_list, list_pos) |
8 |
switch attack_choice |
9 |
{ |
10 |
case 0: |
11 |
created_spawner = instance_create_depth(0, 0, 0, obj_battle_enemy_attack_ceroba_phase_2_p2_spawner_mask) |
12 |
attack_duration = 100 |
13 |
break |
14 |
case 1: |
15 |
created_spawner = instance_create_depth(0, 0, 0, obj_ceroba_attack_bullet_spawner_spawner) |
16 |
attack_duration = 100 |
17 |
break |
18 |
case 2: |
19 |
created_spawner = instance_create_depth(0, 0, -100, obj_battle_enemy_attack_ceroba_phase_2_bell_spawner) |
20 |
attack_duration = 100 |
21 |
break |
22 |
case 3: |
23 |
created_spawner = instance_create_depth(0, 0, 0, obj_ceroba_attack_fire_pillar_spawner) |
24 |
attack_duration = 40 |
25 |
break |
26 |
case 4: |
27 |
created_spawner = instance_create_depth(0, 0, 0, obj_battle_enemy_attack_ceroba_flower_circle_full_checker) |
28 |
attack_duration = 80 |
29 |
break |
30 |
case 5: |
31 |
created_spawner = instance_create_depth(0, 0, 0, obj_battle_enemy_attack_ceroba_diamond_attack_phase2_spawner) |
32 |
created_spawner.alarm[0] = 10 |
33 |
attack_duration = 20 |
34 |
break |
35 |
case 6: |
36 |
created_spawner = instance_create_depth(battle_box.x, battle_box.y, -100, obj_battle_enemy_attack_ceroba_phase_2_p2_rope_circle) |
37 |
attack_duration = 60 |
38 |
break |
39 |
case 7: |
40 |
created_spawner = instance_create_depth(0, 0, -100, obj_battle_enemy_attack_ceroba_phase_2_mask) |
41 |
attack_duration = 140 |
42 |
break |
43 |
case 8: |
44 |
created_spawner = instance_create_depth(0, 0, 0, obj_battle_enemy_attack_ceroba_phase_2_p2_circling_lanterns) |
45 |
attack_duration = 100 |
46 |
break |
47 |
case 9: |
48 |
created_spawner = instance_create_depth(0, 0, 0, obj_battle_enemy_attack_ceroba_phase_2_p2_obstacle_spawner) |
49 |
attack_duration = 120 |
50 |
break |
51 |
} |
52 |
|
53 |
if (modifier_enabled == 1 && modifier_noloop == false) |
54 |
{ |
55 |
modifier_noloop = true |
56 |
if (modifier_attack == 1) |
57 |
instance_create_depth(0, 0, 0, obj_battle_enemy_attack_ceroba_phase_2_black_hole_checker) |
58 |
if (modifier_attack == 2) |
59 |
instance_create_depth(battle_box.x, battle_box.y, -100, obj_battle_enemy_attack_ceroba_phase_2_p2_rope_circle) |
60 |
} |
61 |
show_debug_message("Spawning" + string(attack_choice)) |
62 |
alarm[0] = attack_durationalarm[0]if live_call()
return global.live_result;
event_user(1) |