Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_body_pacifist_phase_2_Other_7

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
switch sprite_index
4
{
5
    case spr_ceroba_p2_1:
6
        break
7
    case 3485:
8
        obj_ceroba_transformation_mask.image_alpha = 1
9
        sprite_index = -4
10
        break
11
    case 986:
12
        image_speed = 1
13
        sprite_index = spr_ceroba_p2_knocked_down_loop
14
        obj_ceroba_transformation_mask.mask_is_vulnerable = true
15
        break
16
    case 2823:
17
        instance_create_depth(obj_ceroba_phase_2_shield.x, obj_ceroba_phase_2_shield.y, -9999, obj_ceroba_phase_2_shield_reappear)
18
        break
19
    case 3106:
20
    case 1799:
21
    case 2784:
22
        image_speed = 0
23
        image_index = image_number - 1
24
        break
25
    case 2288:
26
        sprite_index = spr_ceroba_p2_block_3
27
        image_index = 0
28
        image_speed = 1
29
        break
30
    case 3115:
31
        image_index = 0
32
        sprite_index = spr_ceroba_p2_get_up_3
33
        break
34
    case 2917:
35
        instance_create_depth(obj_ceroba_phase_2_shield.x, obj_ceroba_phase_2_shield.y, -9999, obj_ceroba_phase_2_shield_reappear)
36
        break
37
    case 1280:
38
        image_index = 0
39
        sprite_index = spr_ceroba_p2_special_attack_2
40
        break
41
    case 2606:
42
        image_index = 1
43
        image_xscale *= -1
44
        with (obj_battle_enemy_attack_ceroba_phase_2_special_attack_spawner)
45
        {
46
            bullet_attack_count -= 1
47
            if (bullet_attack_count <= 0 && image_xscale == 1)
48
            {
49
                sequence_layer_enabled = true
50
                other.sprite_index = spr_ceroba_p2_special_attack
51
                other.image_index = 0
52
                event_user(0)
53
            }
54
        }
55
        break
56
    case 2774:
57
    case 2798:
58
    case 3390:
59
    case 3560:
60
    case 399:
61
    case 3514:
62
        break
63
    default:
64
        sprite_index = -4
65
        break
66
}