Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_enemy_status_flags_yellow

(view raw script w/o annotations or w/e)
1
function scr_determine_enemy_status_flags_yellow
scr_determine_enemy_status_flags_yellow

function scr_determine_enemy_status_flags_yellow() //gml_Script_scr_determine_enemy_status_flags_yellow { if (global.battling_boss == true) var battle_enemy_name = global.battle_enemy_name else { var act_number = global.act_number switch act_number { case 1: battle_enemy_name = global.battle_enemy_name_1 break case 2: battle_enemy_name = global.battle_enemy_name_2 break case 3: battle_enemy_name = global.battle_enemy_name_3 break default: battle_enemy_name = global.battle_enemy_name_1 } } if (battle_enemy_name == "froggit intro") { } else if (battle_enemy_name == "flowey intro") { } else if (battle_enemy_name == "flier a") { } else if (battle_enemy_name == "penilla a") { } else if (battle_enemy_name == "sweet corn a") { } else if (battle_enemy_name == "crispy scroll a") { } else if (battle_enemy_name == "rorrim a") { } else if (battle_enemy_name == "decibat") { if (global.enemy_dead == true) global.dark_ruins_boss_status[1] = 2 else global.dark_ruins_boss_status[1] = 1 } else if (battle_enemy_name == "dalv") { if (global.enemy_dead == true) global.dark_ruins_boss_status[2] = 2 else global.dark_ruins_boss_status[2] = 1 } else if (battle_enemy_name == "micro froggit") { if (global.enemy_dead == true) global.dark_ruins_boss_status[3] = 2 else global.dark_ruins_boss_status[3] = 1 } else if (battle_enemy_name == "frostermit a") { } else if (battle_enemy_name == "insomnitot a") { } else if (battle_enemy_name == "know cone a") { } else if (battle_enemy_name == "trihecta" || battle_enemy_name == "tri") { } else if (battle_enemy_name == "martlet pacifist") { } else if (battle_enemy_name == "martlet genocide") { } else if (battle_enemy_name == "shufflers") { } }
() //gml_Script_scr_determine_enemy_status_flags_yellow
2
{
3
    if (global.battling_boss == true)
4
        var battle_enemy_name = global.battle_enemy_name
5
    else
6
    {
7
        var act_number = global.act_number
8
        switch act_number
9
        {
10
            case 1:
11
                battle_enemy_name = global.battle_enemy_name_1
12
                break
13
            case 2:
14
                battle_enemy_name = global.battle_enemy_name_2
15
                break
16
            case 3:
17
                battle_enemy_name = global.battle_enemy_name_3
18
                break
19
            default:
20
                battle_enemy_name = global.battle_enemy_name_1
21
        }
22
23
    }
24
    if (battle_enemy_name == "froggit intro")
25
    {
26
    }
27
    else if (battle_enemy_name == "flowey intro")
28
    {
29
    }
30
    else if (battle_enemy_name == "flier a")
31
    {
32
    }
33
    else if (battle_enemy_name == "penilla a")
34
    {
35
    }
36
    else if (battle_enemy_name == "sweet corn a")
37
    {
38
    }
39
    else if (battle_enemy_name == "crispy scroll a")
40
    {
41
    }
42
    else if (battle_enemy_name == "rorrim a")
43
    {
44
    }
45
    else if (battle_enemy_name == "decibat")
46
    {
47
        if (global.enemy_dead == true)
48
            global.dark_ruins_boss_status[1] = 2
49
        else
50
            global.dark_ruins_boss_status[1] = 1
51
    }
52
    else if (battle_enemy_name == "dalv")
53
    {
54
        if (global.enemy_dead == true)
55
            global.dark_ruins_boss_status[2] = 2
56
        else
57
            global.dark_ruins_boss_status[2] = 1
58
    }
59
    else if (battle_enemy_name == "micro froggit")
60
    {
61
        if (global.enemy_dead == true)
62
            global.dark_ruins_boss_status[3] = 2
63
        else
64
            global.dark_ruins_boss_status[3] = 1
65
    }
66
    else if (battle_enemy_name == "frostermit a")
67
    {
68
    }
69
    else if (battle_enemy_name == "insomnitot a")
70
    {
71
    }
72
    else if (battle_enemy_name == "know cone a")
73
    {
74
    }
75
    else if (battle_enemy_name == "trihecta" || battle_enemy_name == "tri")
76
    {
77
    }
78
    else if (battle_enemy_name == "martlet pacifist")
79
    {
80
    }
81
    else if (battle_enemy_name == "martlet genocide")
82
    {
83
    }
84
    else if (battle_enemy_name == "shufflers")
85
    {
86
    }
87
}