Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_flier_penilla_duo

(view raw script w/o annotations or w/e)
1
function scr_enemy_timer_attacks_flier_penilla_duo
scr_enemy_timer_attacks_flier_penilla_duo

function scr_enemy_timer_attacks_flier_penilla_duo() //gml_Script_scr_enemy_timer_attacks_flier_penilla_duo { var enemy_attack = global.enemy_attack if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Flies 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_flier_flies_drawing) 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 == "Flier Flies" || enemy_attack == "Flier Fire") && obj_heart_battle_fighting_parent.moveable == true) script_execute(gml_Script_scr_enemy_timer_attacks_flier_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_flier_penilla_duo
2
{
3
    var enemy_attack = global.enemy_attack
4
    if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Flies 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_flier_flies_drawing)
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 == "Flier Flies" || enemy_attack == "Flier Fire") && obj_heart_battle_fighting_parent.moveable == true)
17
        script_execute(gml_Script_scr_enemy_timer_attacks_flier_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
}