Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_bottles_checker_Create_0

(view raw script w/o annotations or w/e)
1
var box = obj_dialogue_box_battle_transformation_any
2
bottle[0] = instance_create(box.x, (box.bbox_top - 2), obj_battle_enemy_attack_starlo_bottle)
3
bottle[1] = instance_create((box.bbox_left + 20), (box.bbox_top - 2), obj_battle_enemy_attack_starlo_bottle)
4
bottle[2] = instance_create((box.bbox_right - 20), (box.bbox_top - 2), obj_battle_enemy_attack_starlo_bottle)
5
attack_interval = 30
6
alarm[0] = 30
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