Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunebud_a_Other_10

(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 instance_exists(obj_battle_enemy_attack_dunebud_chase_enemy)
6
        a = 1
7
    if instance_exists(id_dunebud_chase)
8
        a = 1
9
    if (id_dunebud_chase != -4)
10
    {
11
        image_alpha = 0
12
        time_elapsed = 0
13
        sign_modifier = 1
14
        image_alpha_immunity = true
15
    }
16
    else
17
    {
18
        if (global.image_alpha_enemy_attacking == 1)
19
            image_alpha_immunity = false
20
        if (image_alpha_immunity == true)
21
            image_alpha = 1
22
        else
23
            image_alpha = global.image_alpha_enemy_attacking
24
    }
25
}