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
var _temp_local_var_2, _temp_local_var_3, _temp_local_var_4, _temp_local_var_5, _temp_local_var_6;
2
function scr_determine_can_display_damage_ui
scr_determine_can_display_damage_ui

var _temp_local_var_2, _temp_local_var_3, _temp_local_var_4, _temp_local_var_5, _temp_local_var_6; function scr_determine_can_display_damage_ui(argument0) //gml_Script_scr_determine_can_display_damage_ui { hp_ui_alpha = 1 damage_ui_alpha = 1 miss_ui_alpha = 1 if (argument0 == 1) { var game_mode = global.game_mode var battle_enemy_name = global.battle_enemy_name if (global.game_mode == "customs") var _temp_local_var_2 = battle_enemy_name 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 (argument0 == 2) { game_mode = global.game_mode battle_enemy_name = global.battle_enemy_name_2 if (global.game_mode == "customs") var _temp_local_var_3 = battle_enemy_name else if (global.game_mode == "yellow") var _temp_local_var_6 = battle_enemy_name } if (argument0 == 3) { game_mode = global.game_mode battle_enemy_name = global.battle_enemy_name_3 if (global.game_mode == "customs") var _temp_local_var_4 = battle_enemy_name else if (global.game_mode == "yellow") var _temp_local_var_5 = battle_enemy_name } 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 } }
(argument0) //gml_Script_scr_determine_can_display_damage_ui
3
{
4
    hp_ui_alpha = 1
5
    damage_ui_alpha = 1
6
    miss_ui_alpha = 1
7
    if (argument0 == 1)
8
    {
9
        var game_mode = global.game_mode
10
        var battle_enemy_name = global.battle_enemy_name
11
        if (global.game_mode == "customs")
12
            var _temp_local_var_2 = battle_enemy_name
13
        else if (global.game_mode == "yellow")
14
        {
15
            switch battle_enemy_name
16
            {
17
                case "dummy training pacifist":
18
                    hp_ui_alpha = 0
19
                    damage_ui_alpha = 0
20
                    break
21
                default:
22
23
            }
24
25
        }
26
    }
27
    if (argument0 == 2)
28
    {
29
        game_mode = global.game_mode
30
        battle_enemy_name = global.battle_enemy_name_2
31
        if (global.game_mode == "customs")
32
            var _temp_local_var_3 = battle_enemy_name
33
        else if (global.game_mode == "yellow")
34
            var _temp_local_var_6 = battle_enemy_name
35
    }
36
    if (argument0 == 3)
37
    {
38
        game_mode = global.game_mode
39
        battle_enemy_name = global.battle_enemy_name_3
40
        if (global.game_mode == "customs")
41
            var _temp_local_var_4 = battle_enemy_name
42
        else if (global.game_mode == "yellow")
43
            var _temp_local_var_5 = battle_enemy_name
44
    }
45
    if instance_exists(obj_battle_hp_enemy_attacking_parent)
46
    {
47
        with (obj_battle_hp_enemy_attacking_parent)
48
            image_alpha = obj_target_bar_battle.hp_ui_alpha
49
    }
50
    if instance_exists(obj_text_damage_count)
51
    {
52
        with (obj_text_damage_count)
53
            image_alpha = obj_target_bar_battle.damage_ui_alpha
54
    }
55
    if instance_exists(obj_text_miss)
56
    {
57
        with (obj_text_miss)
58
            image_alpha = obj_target_bar_battle.miss_ui_alpha
59
    }
60
}