Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_phase_2_p1_lanterns_Step_0

(view raw script w/o annotations or w/e)
1
if (!instance_exists(obj_ceroba_attack_fire_mask))
2
{
3
    if (!alarm[0])
4
        alarm[0] = 45
alarm[0]

if live_call() return global.live_result; if (ds_list_size(position_list) <= 0) { if (!alarm[1]) alarm[1] = 180 return; } var ds_list_pos = irandom_range(0, (ds_list_size(position_list) - 1)) var position_current = ds_list_find_value(position_list, ds_list_pos) ds_list_delete(position_list, ds_list_pos) switch position_current { case 1: var xx = battle_box.bbox_left + 20 var yy = battle_box.bbox_top - 20 break case 2: xx = battle_box.x yy = battle_box.bbox_top - 50 break case 3: xx = battle_box.bbox_right - 20 yy = battle_box.bbox_top - 20 break } instance_create_depth(xx, yy, -100, obj_ceroba_phase_2_p1_lantern) alarm[0] = 30
5
}
6
if instance_exists(obj_ceroba_phase_2_shield)
7
{
8
    var shield_perc = obj_ceroba_phase_2_shield.fill_percentage
9
    if (shield_perc >= 1)
10
        instance_destroy()
11
}