Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_frostermit_snowflakes

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

function scr_enemy_attack_frostermit_snowflakes() { global.attack_counter_max = 20; if (global.attack_counter == 0) { var distance_x = -15; var distance_y = 20; var max_variations = 6; instance_create(round((obj_dialogue_box_battle_transformation_any.bbox_left - distance_x) + ((((obj_dialogue_box_battle_transformation_any.bbox_right + (distance_x * 2)) - obj_dialogue_box_battle_transformation_any.bbox_left) / max_variations) * irandom_range(0, max_variations))), obj_dialogue_box_battle_transformation_any.bbox_top - distance_y, obj_battle_enemy_attack_frostermit_snowflakes); } }
()
2
{
3
    global.attack_counter_max = 20;
4
    if (global.attack_counter == 0)
5
    {
6
        var distance_x = -15;
7
        var distance_y = 20;
8
        var max_variations = 6;
9
        instance_create(round((obj_dialogue_box_battle_transformation_any.bbox_left - distance_x) + ((((obj_dialogue_box_battle_transformation_any.bbox_right + (distance_x * 2)) - obj_dialogue_box_battle_transformation_any.bbox_left) / max_variations) * irandom_range(0, max_variations))), obj_dialogue_box_battle_transformation_any.bbox_top - distance_y, obj_battle_enemy_attack_frostermit_snowflakes);
10
    }
11
}