Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_can_display_damage_ui

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

function scr_determine_can_display_damage_ui(arg0) { hp_ui_alpha = 1; damage_ui_alpha = 1; miss_ui_alpha = 1; if (arg0 == 1) { var game_mode = global.game_mode; var battle_enemy_name = global.battle_enemy_name; if (global.game_mode == "customs") { switch (battle_enemy_name) { default: } } else if (global.game_mode == "yellow") { switch (battle_enemy_name) { case "dummy training pacifist": hp_ui_alpha = 0; damage_ui_alpha = 0; break; default: } } } if (arg0 == 2) { var game_mode = global.game_mode; var battle_enemy_name = global.battle_enemy_name_2; if (global.game_mode == "customs") { switch (battle_enemy_name) { default: } } else if (global.game_mode == "yellow") { switch (battle_enemy_name) { default: } } } if (arg0 == 3) { var game_mode = global.game_mode; var battle_enemy_name = global.battle_enemy_name_3; if (global.game_mode == "customs") { switch (battle_enemy_name) { default: } } else if (global.game_mode == "yellow") { switch (battle_enemy_name) { default: } } } if (instance_exists(obj_battle_hp_enemy_attacking_parent)) { with (obj_battle_hp_enemy_attacking_parent) image_alpha = obj_target_bar_battle.hp_ui_alpha; } if (instance_exists(obj_text_damage_count)) { with (obj_text_damage_count) image_alpha = obj_target_bar_battle.damage_ui_alpha; } if (instance_exists(obj_text_miss)) { with (obj_text_miss) image_alpha = obj_target_bar_battle.miss_ui_alpha; } }
(arg0)
2
{
3
    hp_ui_alpha = 1;
4
    damage_ui_alpha = 1;
5
    miss_ui_alpha = 1;
6
    if (arg0 == 1)
7
    {
8
        var game_mode = global.game_mode;
9
        var battle_enemy_name = global.battle_enemy_name;
10
        if (global.game_mode == "customs")
11
        {
12
            switch (battle_enemy_name)
13
            {
14
                default:
15
            }
16
        }
17
        else if (global.game_mode == "yellow")
18
        {
19
            switch (battle_enemy_name)
20
            {
21
                case "dummy training pacifist":
22
                    hp_ui_alpha = 0;
23
                    damage_ui_alpha = 0;
24
                    break;
25
                default:
26
            }
27
        }
28
    }
29
    if (arg0 == 2)
30
    {
31
        var game_mode = global.game_mode;
32
        var battle_enemy_name = global.battle_enemy_name_2;
33
        if (global.game_mode == "customs")
34
        {
35
            switch (battle_enemy_name)
36
            {
37
                default:
38
            }
39
        }
40
        else if (global.game_mode == "yellow")
41
        {
42
            switch (battle_enemy_name)
43
            {
44
                default:
45
            }
46
        }
47
    }
48
    if (arg0 == 3)
49
    {
50
        var game_mode = global.game_mode;
51
        var battle_enemy_name = global.battle_enemy_name_3;
52
        if (global.game_mode == "customs")
53
        {
54
            switch (battle_enemy_name)
55
            {
56
                default:
57
            }
58
        }
59
        else if (global.game_mode == "yellow")
60
        {
61
            switch (battle_enemy_name)
62
            {
63
                default:
64
            }
65
        }
66
    }
67
    if (instance_exists(obj_battle_hp_enemy_attacking_parent))
68
    {
69
        with (obj_battle_hp_enemy_attacking_parent)
70
            image_alpha = obj_target_bar_battle.hp_ui_alpha;
71
    }
72
    if (instance_exists(obj_text_damage_count))
73
    {
74
        with (obj_text_damage_count)
75
            image_alpha = obj_target_bar_battle.damage_ui_alpha;
76
    }
77
    if (instance_exists(obj_text_miss))
78
    {
79
        with (obj_text_miss)
80
            image_alpha = obj_target_bar_battle.miss_ui_alpha;
81
    }
82
}