Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_know_cone_blueberries_zzz

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

function scr_enemy_attack_know_cone_blueberries_zzz() //gml_Script_scr_enemy_attack_know_cone_blueberries_zzz { global.attack_counter_max = 40 if (global.attack_counter == 0) { var distance_factor = 15 var random_generator_1 = irandom_range(0, 1) var random_generator_2 = irandom_range(0, 4) if (random_generator_1 == 0) { if (random_generator_2 > 0) instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry_white) else instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry) } else if (random_generator_1 == 1) { if (random_generator_2 > 0) instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry_white) else instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry) } instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom + 8 + distance_factor), obj_battle_enemy_attack_insomnitot_zzz_big) instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom + 8 + distance_factor * 2 + obj_battle_enemy_attack_insomnitot_zzz_big.sprite_height), obj_battle_enemy_attack_insomnitot_zzz_medium) instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom + 8 + distance_factor * 3 + obj_battle_enemy_attack_insomnitot_zzz_medium.sprite_height * 2), obj_battle_enemy_attack_insomnitot_zzz_small) } }
() //gml_Script_scr_enemy_attack_know_cone_blueberries_zzz
2
{
3
    global.attack_counter_max = 40
4
    if (global.attack_counter == 0)
5
    {
6
        var distance_factor = 15
7
        var random_generator_1 = irandom_range(0, 1)
8
        var random_generator_2 = irandom_range(0, 4)
9
        if (random_generator_1 == 0)
10
        {
11
            if (random_generator_2 > 0)
12
                instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry_white)
13
            else
14
                instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry)
15
        }
16
        else if (random_generator_1 == 1)
17
        {
18
            if (random_generator_2 > 0)
19
                instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry_white)
20
            else
21
                instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance_factor), obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_know_cone_blueberry)
22
        }
23
        instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom + 8 + distance_factor), obj_battle_enemy_attack_insomnitot_zzz_big)
24
        instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom + 8 + distance_factor * 2 + obj_battle_enemy_attack_insomnitot_zzz_big.sprite_height), obj_battle_enemy_attack_insomnitot_zzz_medium)
25
        instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom + 8 + distance_factor * 3 + obj_battle_enemy_attack_insomnitot_zzz_medium.sprite_height * 2), obj_battle_enemy_attack_insomnitot_zzz_small)
26
    }
27
}