Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_feather_fall_checker_Other_10

(view raw script w/o annotations or w/e)
1
var distance_x = 60
2
var distance_y = 20
3
var distance_amount = irandom_range(0, 45)
4
var distance_side = irandom_range(0, 1)
5
if (distance_side == 0)
6
    instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance_x - distance_amount), (obj_dialogue_box_battle_transformation_any.bbox_top - distance_y), obj_battle_enemy_attack_martlet_feather_fall_feather)
7
else
8
    instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance_x + distance_amount), (obj_dialogue_box_battle_transformation_any.bbox_top - distance_y), obj_battle_enemy_attack_martlet_feather_fall_feather)
9
counter_current += 1
10
if (counter_current < counter_max)
11
    alarm[0] = alarm_count
alarm[0]

event_user(0)