Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_flier_flies

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

function scr_enemy_attack_flier_flies() //gml_Script_scr_enemy_attack_flier_flies { global.attack_counter_max = 60 if (global.attack_counter == 0) { random_generator = irandom_range(1, 4) if (random_generator == 1) instance_create((obj_dialogue_box_battle_transformation_any.bbox_left + 13), (obj_dialogue_box_battle_transformation_any.bbox_top + 11), obj_battle_enemy_attack_flier_fly_top_left) else if (random_generator == 2) instance_create((obj_dialogue_box_battle_transformation_any.bbox_right - 13), (obj_dialogue_box_battle_transformation_any.bbox_top + 11), obj_battle_enemy_attack_flier_fly_top_right) else if (random_generator == 3) instance_create((obj_dialogue_box_battle_transformation_any.bbox_left + 13), (obj_dialogue_box_battle_transformation_any.bbox_bottom - 11), obj_battle_enemy_attack_flier_fly_bottom_left) else if (random_generator == 4) instance_create((obj_dialogue_box_battle_transformation_any.bbox_right - 13), (obj_dialogue_box_battle_transformation_any.bbox_bottom - 11), obj_battle_enemy_attack_flier_fly_bottom_right) } }
() //gml_Script_scr_enemy_attack_flier_flies
2
{
3
    global.attack_counter_max = 60
4
    if (global.attack_counter == 0)
5
    {
6
        random_generator = irandom_range(1, 4)
7
        if (random_generator == 1)
8
            instance_create((obj_dialogue_box_battle_transformation_any.bbox_left + 13), (obj_dialogue_box_battle_transformation_any.bbox_top + 11), obj_battle_enemy_attack_flier_fly_top_left)
9
        else if (random_generator == 2)
10
            instance_create((obj_dialogue_box_battle_transformation_any.bbox_right - 13), (obj_dialogue_box_battle_transformation_any.bbox_top + 11), obj_battle_enemy_attack_flier_fly_top_right)
11
        else if (random_generator == 3)
12
            instance_create((obj_dialogue_box_battle_transformation_any.bbox_left + 13), (obj_dialogue_box_battle_transformation_any.bbox_bottom - 11), obj_battle_enemy_attack_flier_fly_bottom_left)
13
        else if (random_generator == 4)
14
            instance_create((obj_dialogue_box_battle_transformation_any.bbox_right - 13), (obj_dialogue_box_battle_transformation_any.bbox_bottom - 11), obj_battle_enemy_attack_flier_fly_bottom_right)
15
    }
16
}