1 |
function scr_enemy_timer_attacks_macroscr_enemy_timer_attacks_macrofunction scr_enemy_timer_attacks_macro() //gml_Script_scr_enemy_timer_attacks_macro
{
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 == "Macro Transform" && (!instance_exists(obj_battle_enemy_attack_macro_transform_creator)))
instance_create(0, 0, obj_battle_enemy_attack_macro_transform_creator)
else if (enemy_attack == "Big Frogs" && (!instance_exists(obj_battle_enemy_attack_macro_big_frogs_creator)))
instance_create(0, 0, obj_battle_enemy_attack_macro_big_frogs_creator)
else if (enemy_attack == "Frogger" && (!instance_exists(obj_battle_enemy_attack_macro_frogger_creator)))
instance_create(0, 0, obj_battle_enemy_attack_macro_frogger_creator)
else if (enemy_attack == "Sword Frog" && (!instance_exists(obj_battle_enemy_attack_macro_sword_frog_creator)))
instance_create(0, 0, obj_battle_enemy_attack_macro_sword_frog_creator)
else if (enemy_attack == "Log Frogs" && (!instance_exists(obj_battle_enemy_attack_macro_log_frog_creator)))
instance_create(0, 0, obj_battle_enemy_attack_macro_log_frog_creator)
else if (enemy_attack == "Gun Flies" && (!instance_exists(obj_battle_enemy_attack_macro_gun_flies_creator)))
instance_create(0, 0, obj_battle_enemy_attack_macro_gun_flies_creator)
else if (enemy_attack == "Space Frog" && (!instance_exists(obj_battle_enemy_attack_macro_space_frog_creator)))
instance_create(0, 0, obj_battle_enemy_attack_macro_space_frog_creator)
else if (enemy_attack == "Tongue Attack" && (!instance_exists(obj_battle_enemy_attack_macro_tongue_attack_creator)))
instance_create(0, 0, obj_battle_enemy_attack_macro_tongue_attack_creator)
else if (enemy_attack == "Frog Choir" && (!instance_exists(obj_battle_enemy_attack_macro_frog_choir_creator)))
instance_create(0, 0, obj_battle_enemy_attack_macro_frog_choir_creator)
else if (enemy_attack == "Flies Bullet Hell" && (!instance_exists(obj_battle_enemy_attack_macro_flies_bullet_hell_creator)))
instance_create(0, 0, obj_battle_enemy_attack_macro_flies_bullet_hell_creator)
else if (enemy_attack == "Mecha Frog" && (!instance_exists(obj_battle_enemy_attack_mecha_frog_creator)))
instance_create(0, 0, obj_battle_enemy_attack_mecha_frog_creator)
}
} () //gml_Script_scr_enemy_timer_attacks_macro |
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 == "Macro Transform" && (!instance_exists(obj_battle_enemy_attack_macro_transform_creator))) |
7 |
instance_create(0, 0, obj_battle_enemy_attack_macro_transform_creator) |
8 |
else if (enemy_attack == "Big Frogs" && (!instance_exists(obj_battle_enemy_attack_macro_big_frogs_creator))) |
9 |
instance_create(0, 0, obj_battle_enemy_attack_macro_big_frogs_creator) |
10 |
else if (enemy_attack == "Frogger" && (!instance_exists(obj_battle_enemy_attack_macro_frogger_creator))) |
11 |
instance_create(0, 0, obj_battle_enemy_attack_macro_frogger_creator) |
12 |
else if (enemy_attack == "Sword Frog" && (!instance_exists(obj_battle_enemy_attack_macro_sword_frog_creator))) |
13 |
instance_create(0, 0, obj_battle_enemy_attack_macro_sword_frog_creator) |
14 |
else if (enemy_attack == "Log Frogs" && (!instance_exists(obj_battle_enemy_attack_macro_log_frog_creator))) |
15 |
instance_create(0, 0, obj_battle_enemy_attack_macro_log_frog_creator) |
16 |
else if (enemy_attack == "Gun Flies" && (!instance_exists(obj_battle_enemy_attack_macro_gun_flies_creator))) |
17 |
instance_create(0, 0, obj_battle_enemy_attack_macro_gun_flies_creator) |
18 |
else if (enemy_attack == "Space Frog" && (!instance_exists(obj_battle_enemy_attack_macro_space_frog_creator))) |
19 |
instance_create(0, 0, obj_battle_enemy_attack_macro_space_frog_creator) |
20 |
else if (enemy_attack == "Tongue Attack" && (!instance_exists(obj_battle_enemy_attack_macro_tongue_attack_creator))) |
21 |
instance_create(0, 0, obj_battle_enemy_attack_macro_tongue_attack_creator) |
22 |
else if (enemy_attack == "Frog Choir" && (!instance_exists(obj_battle_enemy_attack_macro_frog_choir_creator))) |
23 |
instance_create(0, 0, obj_battle_enemy_attack_macro_frog_choir_creator) |
24 |
else if (enemy_attack == "Flies Bullet Hell" && (!instance_exists(obj_battle_enemy_attack_macro_flies_bullet_hell_creator))) |
25 |
instance_create(0, 0, obj_battle_enemy_attack_macro_flies_bullet_hell_creator) |
26 |
else if (enemy_attack == "Mecha Frog" && (!instance_exists(obj_battle_enemy_attack_mecha_frog_creator))) |
27 |
instance_create(0, 0, obj_battle_enemy_attack_mecha_frog_creator) |
28 |
} |
29 |
} |