Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_know_cone_cherries

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

function scr_enemy_attack_know_cone_cherries() //gml_Script_scr_enemy_attack_know_cone_cherries { var distance_factor = 15 var random_generator = irandom_range(0, 1) if (random_generator == 0) instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), (obj_dialogue_box_battle_transformation_any.bbox_top - distance_factor - 34), obj_battle_enemy_attack_know_cone_cherry) else if (random_generator == 1) instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), (obj_dialogue_box_battle_transformation_any.bbox_bottom + distance_factor), obj_battle_enemy_attack_know_cone_cherry) }
() //gml_Script_scr_enemy_attack_know_cone_cherries
2
{
3
    var distance_factor = 15
4
    var random_generator = irandom_range(0, 1)
5
    if (random_generator == 0)
6
        instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), (obj_dialogue_box_battle_transformation_any.bbox_top - distance_factor - 34), obj_battle_enemy_attack_know_cone_cherry)
7
    else if (random_generator == 1)
8
        instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), (obj_dialogue_box_battle_transformation_any.bbox_bottom + distance_factor), obj_battle_enemy_attack_know_cone_cherry)
9
}