Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_phase_2_p1_ribbon_attack_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (!instance_exists(obj_ceroba_attack_fire_mask))
4
{
5
    if (!alarm[0])
6
        alarm[0] = 45
alarm[0]

if live_call() return global.live_result; instance_create_depth((battle_box.bbox_left - 40), (battle_box.bbox_top - 80), -100, obj_ceroba_phase_2_p1_ribbon_lantern) instance_create_depth((battle_box.bbox_right + 40), (battle_box.bbox_bottom + 60), -100, obj_ceroba_phase_2_p1_ribbon_lantern) alarm[0] = lantern_offset
7
}
8
if instance_exists(obj_ceroba_phase_2_shield)
9
{
10
    var shield_perc = obj_ceroba_phase_2_shield.fill_percentage
11
    if (shield_perc >= 1)
12
    {
13
        instance_destroy()
14
        return;
15
    }
16
}