Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_g_body_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 (id_martlet_wing_gust != -4 || id_martlet_fight_mode != -4)
6
    {
7
        image_alpha = 0
8
        time_elapsed = 0
9
        sign_modifier = 1
10
        time_elapsed_g = 0
11
        sign_modifier_g = 1
12
    }
13
    else if instance_exists(obj_quote_battle_martlet_pacifist_during_attack_parent)
14
    {
15
        during_dialogue = true
16
        if (global.image_alpha_enemy_attacking_immunity == true)
17
            image_alpha = 1
18
        if (image_alpha < 1)
19
        {
20
            image_alpha += 0.05
21
            if (image_alpha >= 1)
22
                image_alpha = 1
23
        }
24
        image_alpha_temp = image_alpha
25
    }
26
    else if (during_dialogue == true)
27
    {
28
        image_alpha = image_alpha_temp + global.image_alpha_enemy_attacking * (1 - image_alpha_temp)
29
        if (global.image_alpha_enemy_attacking == 1)
30
            during_dialogue = false
31
    }
32
    else
33
        image_alpha = global.image_alpha_enemy_attacking
34
}