Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_feather_flow_checker_Other_10

(view raw script w/o annotations or w/e)
1
var distance = 60
2
var distance_offset = 45
3
var distance_side = irandom_range(0, 1)
4
var boundary_left = obj_dialogue_box_battle_transformation_any.bbox_left
5
var boundary_right = obj_dialogue_box_battle_transformation_any.bbox_right
6
var boundary_top = obj_dialogue_box_battle_transformation_any.bbox_top
7
var boundary_bottom = obj_dialogue_box_battle_transformation_any.bbox_bottom
8
if (distance_side == 0)
9
    instance_create(irandom_range((boundary_left + distance_offset), (boundary_right - distance_offset)), choose((boundary_top - distance), (boundary_bottom + distance)), obj_battle_enemy_attack_martlet_feather_flow_vertical)
10
else if (distance_side == 1)
11
    instance_create(choose((boundary_left - distance), (boundary_right + distance)), irandom_range((boundary_top + distance_offset), (boundary_bottom - distance_offset)), obj_battle_enemy_attack_martlet_feather_flow_horizontal)
12
counter_current += 1
13
if (counter_current < counter_max)
14
    alarm[0] = alarm_count
alarm[0]

event_user(0)