1 |
function scr_enemy_timer_attacks_crispy_scroll_penilla_duoscr_enemy_timer_attacks_crispy_scroll_penilla_duofunction scr_enemy_timer_attacks_crispy_scroll_penilla_duo() //gml_Script_scr_enemy_timer_attacks_crispy_scroll_penilla_duo
{
var enemy_attack = global.enemy_attack
if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Crispy Slash Drawing" && obj_heart_battle_fighting_parent.moveable == true)
{
if (!instance_exists(obj_battle_enemy_attack_penilla_pencil))
script_execute(gml_Script_scr_enemy_attack_penilla_drawing)
script_execute(gml_Script_scr_enemy_attack_crispy_slash_drawing_crispy_scroll)
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 == "Crispy Slash" || enemy_attack == "Crispy Laser" || enemy_attack == "Crispy Tub") && obj_heart_battle_fighting_parent.moveable == true)
script_execute(gml_Script_scr_enemy_timer_attacks_crispy_scroll_solo)
else if (instance_exists(obj_dialogue_box_battle_transformation_any) && (enemy_attack == "Penilla Drawing" || enemy_attack == "Penilla Lines") && obj_heart_battle_fighting_parent.moveable == true)
script_execute(gml_Script_scr_enemy_timer_attacks_penilla_solo)
} () //gml_Script_scr_enemy_timer_attacks_crispy_scroll_penilla_duo |
2 |
{ |
3 |
var enemy_attack = global.enemy_attack |
4 |
if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Crispy Slash Drawing" && obj_heart_battle_fighting_parent.moveable == true) |
5 |
{ |
6 |
if (!instance_exists(obj_battle_enemy_attack_penilla_pencil)) |
7 |
script_execute(gml_Script_scr_enemy_attack_penilla_drawing) |
8 |
script_execute(gml_Script_scr_enemy_attack_crispy_slash_drawing_crispy_scroll) |
9 |
if (global.attack_counter >= 0) |
10 |
{ |
11 |
global.attack_counter -= 1 |
12 |
if (global.attack_counter < 0) |
13 |
global.attack_counter = global.attack_counter_max |
14 |
} |
15 |
} |
16 |
else if (instance_exists(obj_dialogue_box_battle_transformation_any) && (enemy_attack == "Crispy Slash" || enemy_attack == "Crispy Laser" || enemy_attack == "Crispy Tub") && obj_heart_battle_fighting_parent.moveable == true) |
17 |
script_execute(gml_Script_scr_enemy_timer_attacks_crispy_scroll_solo) |
18 |
else if (instance_exists(obj_dialogue_box_battle_transformation_any) && (enemy_attack == "Penilla Drawing" || enemy_attack == "Penilla Lines") && obj_heart_battle_fighting_parent.moveable == true) |
19 |
script_execute(gml_Script_scr_enemy_timer_attacks_penilla_solo) |
20 |
} |