Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_body_Other_11

(view raw script w/o annotations or w/e)
1
var enemy_dead = global.enemy_dead
2
var enemy_spared = global.enemy_spared
3
if (enemy_dead == false && enemy_spared == false)
4
{
5
    if (damage_disjoint_count == 0)
6
    {
7
        if instance_exists(obj_martlet_head)
8
        {
9
            with (obj_martlet_head)
10
                image_alpha = obj_martlet_body.image_alpha
11
        }
12
        if instance_exists(obj_martlet_hand_right)
13
        {
14
            with (obj_martlet_hand_right)
15
                image_alpha = obj_martlet_body.image_alpha
16
        }
17
        if instance_exists(obj_martlet_hand_left)
18
        {
19
            with (obj_martlet_hand_left)
20
                image_alpha = obj_martlet_body.image_alpha
21
        }
22
    }
23
}