1 |
if (instance_exists(obj_battle_enemy_attack_tellyvis_remote_generator) && obj_battle_enemy_attack_tellyvis_remote_generator.attack_remote_destroy == false) |
2 |
exit; |
3 |
if (global.attack_end_text == false) |
4 |
{ |
5 |
global.attack_end_text = scr_battle_core_directory_enemy_attack_endscr_battle_core_directory_enemy_attack_endfunction scr_battle_core_directory_enemy_attack_end()
{
var battle_enemy_name = global.battle_enemy_name;
if (battle_enemy_name == "el bailador")
{
var new_return = script_execute(scr_end_enemy_attacking_bailador_geno);
return new_return;
}
if (battle_enemy_name == "guardener")
{
var new_return = script_execute(scr_end_enemy_attacking_guardener);
return new_return;
}
if (battle_enemy_name == "axis")
{
var new_return = script_execute(scr_end_enemy_attacking_axis);
return new_return;
}
if (battle_enemy_name == "axis genocide")
{
var new_return = script_execute(scr_end_enemy_attacking_axis_geno);
return new_return;
}
if (battle_enemy_name == "ceroba")
{
var new_return = script_execute(scr_end_enemy_attacking_ceroba);
return new_return;
}
if (battle_enemy_name == "macro froggit")
{
var new_return = script_execute(scr_end_enemy_attacking_macro);
return new_return;
}
return false;
} (); |
6 |
if (global.attack_end_text != false) |
7 |
exit; |
8 |
} |
9 |
if (instance_exists(obj_attack_cycler_parent)) |
10 |
{ |
11 |
with (obj_attack_cycler_parent) |
12 |
instance_destroy(); |
13 |
} |
14 |
if (instance_exists(obj_attack_boundary_creator)) |
15 |
{ |
16 |
with (obj_attack_boundary_creator) |
17 |
instance_destroy(); |
18 |
} |
19 |
if (instance_exists(obj_attack_boundary_box)) |
20 |
{ |
21 |
with (obj_attack_boundary_box) |
22 |
instance_destroy(); |
23 |
} |
24 |
if (instance_exists(obj_surface_drawer)) |
25 |
{ |
26 |
with (obj_surface_drawer) |
27 |
instance_destroy(); |
28 |
} |
29 |
if (instance_exists(obj_sme_yellow_rhythm_generator)) |
30 |
{ |
31 |
with (obj_sme_yellow_rhythm_generator) |
32 |
instance_destroy(); |
33 |
} |
34 |
global.turns_passed += 1; |
35 |
global.last_action_selected = "Nothing"; |
36 |
global.last_action_selected_2 = "Nothing"; |
37 |
global.last_action_selected_3 = "Nothing"; |
38 |
global.hurt_self = global.hit_self; |
39 |
global.hit_self = false; |
40 |
global.enemy_hurt = global.enemy_hit; |
41 |
global.enemy_hit = false; |
42 |
if (global.enemy_count >= 2) |
43 |
{ |
44 |
global.enemy_hurt_2 = global.enemy_hit_2; |
45 |
global.enemy_hit_2 = false; |
46 |
} |
47 |
if (global.enemy_count >= 3) |
48 |
{ |
49 |
global.enemy_hurt_3 = global.enemy_hit_3; |
50 |
global.enemy_hit_3 = false; |
51 |
} |
52 |
global.item_used = global.item_use; |
53 |
global.item_use = "Nothing"; |
54 |
global.item_gifted = global.item_gift; |
55 |
global.item_gift = "Nothing"; |
56 |
instance_create(319, 320, obj_dialogue_box_battle_transformation_any_in); |
57 |
with (obj_heart_battle_fighting_parent) |
58 |
instance_destroy(); |
59 |
instance_destroy(); |
60 |
global.attack_end_text = false; |
61 |
if (global.player_armor_modifier == "Silver Scarf" && global.current_hp_self < global.max_hp_self) |
62 |
{ |
63 |
global.current_hp_self += 2; |
64 |
global.current_hp_self = clamp(global.current_hp_self, 0, global.max_hp_self); |
65 |
audio_play_sound(snd_heal, 1, 0); |
66 |
} |