Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_route_check_darkruins_yellow

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

function scr_route_check_darkruins_yellow() //gml_Script_scr_route_check_darkruins_yellow { if (global.route != 0) { if (global.route == 2) { if (global.dark_ruins_genocide_counter_total > 0 || global.dark_ruins_boss_status[1] == 2 || global.dark_ruins_boss_status[2] == 2 || global.dark_ruins_boss_status[3] == 2) global.route = 1 } else if (global.route == 3) { if (global.dark_ruins_boss_status[1] == 1 || global.dark_ruins_boss_status[2] == 1 || global.dark_ruins_boss_status[3] == 1) global.route = 1 } } }
() //gml_Script_scr_route_check_darkruins_yellow
2
{
3
    if (global.route != 0)
4
    {
5
        if (global.route == 2)
6
        {
7
            if (global.dark_ruins_genocide_counter_total > 0 || global.dark_ruins_boss_status[1] == 2 || global.dark_ruins_boss_status[2] == 2 || global.dark_ruins_boss_status[3] == 2)
8
                global.route = 1
9
        }
10
        else if (global.route == 3)
11
        {
12
            if (global.dark_ruins_boss_status[1] == 1 || global.dark_ruins_boss_status[2] == 1 || global.dark_ruins_boss_status[3] == 1)
13
                global.route = 1
14
        }
15
    }
16
}