Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_bottles_checker_Alarm_0

(view raw script w/o annotations or w/e)
1
if (!instance_exists(obj_battle_enemy_attack_starlo_bottle))
2
{
3
    alarm[1] = 30
alarm[1]

instance_destroy()
4
    return;
5
}
6
var current_bottle = irandom_range(0, 2)
7
while (!instance_exists(bottle[current_bottle]))
8
    current_bottle = irandom_range(0, 2)
9
instance_create(bottle[current_bottle].x, (bottle[current_bottle].y - 25), obj_battle_enemy_attack_starlo_take_aim_target)
10
alarm[0] = attack_interval
alarm[0]

if (!instance_exists(obj_battle_enemy_attack_starlo_bottle)) { alarm[1] = 30 return; } var current_bottle = irandom_range(0, 2) while (!instance_exists(bottle[current_bottle])) current_bottle = irandom_range(0, 2) instance_create(bottle[current_bottle].x, (bottle[current_bottle].y - 25), obj_battle_enemy_attack_starlo_take_aim_target) alarm[0] = attack_interval