Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_flier_solo

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

function scr_enemy_timer_attacks_flier_solo() //gml_Script_scr_enemy_timer_attacks_flier_solo { var enemy_attack = global.enemy_attack if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Flies" && obj_heart_battle_fighting_parent.moveable == true) { script_execute(gml_Script_scr_enemy_attack_flier_flies) if (global.attack_counter >= 0) { global.attack_counter -= 1 if (global.attack_counter < 0) global.attack_counter = global.attack_counter_max } } if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Swarm" && obj_heart_battle_fighting_parent.moveable == true) { script_execute(gml_Script_scr_enemy_attack_flier_swarm) 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 Fire" && obj_heart_battle_fighting_parent.moveable == true && (!instance_exists(obj_battle_enemy_attack_flier_fire_parent))) { instance_create(obj_dialogue_box_battle_transformation_any.x, (obj_dialogue_box_battle_transformation_any.bbox_top - 20), obj_battle_enemy_attack_flier_fire_middle) instance_create((obj_battle_enemy_attack_flier_fire_middle.x - 38), obj_battle_enemy_attack_flier_fire_middle.y, obj_battle_enemy_attack_flier_fire_left) instance_create((obj_battle_enemy_attack_flier_fire_middle.x + 38), obj_battle_enemy_attack_flier_fire_middle.y, obj_battle_enemy_attack_flier_fire_right) } }
() //gml_Script_scr_enemy_timer_attacks_flier_solo
2
{
3
    var enemy_attack = global.enemy_attack
4
    if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Flies" && obj_heart_battle_fighting_parent.moveable == true)
5
    {
6
        script_execute(gml_Script_scr_enemy_attack_flier_flies)
7
        if (global.attack_counter >= 0)
8
        {
9
            global.attack_counter -= 1
10
            if (global.attack_counter < 0)
11
                global.attack_counter = global.attack_counter_max
12
        }
13
    }
14
    if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Swarm" && obj_heart_battle_fighting_parent.moveable == true)
15
    {
16
        script_execute(gml_Script_scr_enemy_attack_flier_swarm)
17
        if (global.attack_counter >= 0)
18
        {
19
            global.attack_counter -= 1
20
            if (global.attack_counter < 0)
21
                global.attack_counter = global.attack_counter_max
22
        }
23
    }
24
    else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Flier Fire" && obj_heart_battle_fighting_parent.moveable == true && (!instance_exists(obj_battle_enemy_attack_flier_fire_parent)))
25
    {
26
        instance_create(obj_dialogue_box_battle_transformation_any.x, (obj_dialogue_box_battle_transformation_any.bbox_top - 20), obj_battle_enemy_attack_flier_fire_middle)
27
        instance_create((obj_battle_enemy_attack_flier_fire_middle.x - 38), obj_battle_enemy_attack_flier_fire_middle.y, obj_battle_enemy_attack_flier_fire_left)
28
        instance_create((obj_battle_enemy_attack_flier_fire_middle.x + 38), obj_battle_enemy_attack_flier_fire_middle.y, obj_battle_enemy_attack_flier_fire_right)
29
    }
30
}