Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_take_aim_checker_Alarm_0

(view raw script w/o annotations or w/e)
1
var soul = obj_heart_battle_fighting_red
2
if (starlo_take_aim_shots_current < starlo_take_aim_shots_max)
3
    instance_create((soul.x + (irandom_range(-10, 10))), (soul.y + (irandom_range(-10, 10))), obj_battle_enemy_attack_starlo_take_aim_one_target)
4
else
5
    instance_destroy()
6
starlo_take_aim_shots_current += 1
7
alarm[0] = starlo_take_aim_interval
alarm[0]

var soul = obj_heart_battle_fighting_red if (starlo_take_aim_shots_current < starlo_take_aim_shots_max) instance_create((soul.x + (irandom_range(-10, 10))), (soul.y + (irandom_range(-10, 10))), obj_battle_enemy_attack_starlo_take_aim_one_target) else instance_destroy() starlo_take_aim_shots_current += 1 alarm[0] = starlo_take_aim_interval