Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_battle_core_directory_action_4_name

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

function scr_battle_core_directory_action_4_name() //gml_Script_scr_battle_core_directory_action_4_name { if (global.battling_boss == true) { var battle_enemy_name = global.battle_enemy_name if (global.action_4_important == true) draw_set_color(global.action_4_color) else draw_set_color(c_white) } else { var act_number = global.act_number switch act_number { case 1: battle_enemy_name = global.battle_enemy_name_1 if (global.action_4_important == true) draw_set_color(global.action_4_color) else draw_set_color(c_white) break case 2: battle_enemy_name = global.battle_enemy_name_2 if (global.action_4_important_2 == true) draw_set_color(global.action_4_color_2) else draw_set_color(c_white) break case 3: battle_enemy_name = global.battle_enemy_name_3 if (global.action_4_important_3 == true) draw_set_color(global.action_4_color_3) else draw_set_color(c_white) break default: battle_enemy_name = global.battle_enemy_name_1 if (global.action_4_important == true) { draw_set_color(global.action_4_color) break } else draw_set_color(c_white) } } var game_mode = global.game_mode if (game_mode == "customs") { } else if (game_mode == "yellow") { } }
() //gml_Script_scr_battle_core_directory_action_4_name
2
{
3
    if (global.battling_boss == true)
4
    {
5
        var battle_enemy_name = global.battle_enemy_name
6
        if (global.action_4_important == true)
7
            draw_set_color(global.action_4_color)
8
        else
9
            draw_set_color(c_white)
10
    }
11
    else
12
    {
13
        var act_number = global.act_number
14
        switch act_number
15
        {
16
            case 1:
17
                battle_enemy_name = global.battle_enemy_name_1
18
                if (global.action_4_important == true)
19
                    draw_set_color(global.action_4_color)
20
                else
21
                    draw_set_color(c_white)
22
                break
23
            case 2:
24
                battle_enemy_name = global.battle_enemy_name_2
25
                if (global.action_4_important_2 == true)
26
                    draw_set_color(global.action_4_color_2)
27
                else
28
                    draw_set_color(c_white)
29
                break
30
            case 3:
31
                battle_enemy_name = global.battle_enemy_name_3
32
                if (global.action_4_important_3 == true)
33
                    draw_set_color(global.action_4_color_3)
34
                else
35
                    draw_set_color(c_white)
36
                break
37
            default:
38
                battle_enemy_name = global.battle_enemy_name_1
39
                if (global.action_4_important == true)
40
                {
41
                    draw_set_color(global.action_4_color)
42
                    break
43
                }
44
                else
45
                    draw_set_color(c_white)
46
        }
47
48
    }
49
    var game_mode = global.game_mode
50
    if (game_mode == "customs")
51
    {
52
    }
53
    else if (game_mode == "yellow")
54
    {
55
    }
56
}