Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_bullet_rain_checker_Alarm_0

(view raw script w/o annotations or w/e)
1
var box = obj_dialogue_box_battle_transformation_any
2
if (irandom(1) == 0)
3
    var new_gun = instance_create(choose((box.bbox_left - 25), (box.bbox_right + 25)), irandom_range((box.bbox_top + 25), (box.bbox_bottom - 25)), obj_battle_enemy_attack_starlo_bullet_rain_gun)
4
else
5
    new_gun = instance_create(irandom_range((box.bbox_left + 25), (box.bbox_right - 25)), choose((box.bbox_top - 25), (box.bbox_bottom + 25)), obj_battle_enemy_attack_starlo_bullet_rain_gun)
6
attack_counter -= 1
7
if (attack_counter <= 0)
8
{
9
    alarm[1] = 30
alarm[1]

instance_destroy()
10
    return;
11
}
12
alarm[0] = 30
alarm[0]

var box = obj_dialogue_box_battle_transformation_any if (irandom(1) == 0) var new_gun = instance_create(choose((box.bbox_left - 25), (box.bbox_right + 25)), irandom_range((box.bbox_top + 25), (box.bbox_bottom - 25)), obj_battle_enemy_attack_starlo_bullet_rain_gun) else new_gun = instance_create(irandom_range((box.bbox_left + 25), (box.bbox_right - 25)), choose((box.bbox_top - 25), (box.bbox_bottom + 25)), obj_battle_enemy_attack_starlo_bullet_rain_gun) attack_counter -= 1 if (attack_counter <= 0) { alarm[1] = 30 return; } alarm[0] = 30