Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_inventory_check_space

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

function scr_inventory_check_space() //gml_Script_scr_inventory_check_space { var i = 1 while (i <= 8) { if (global.item_slot[i] == "Nothing") return true; else { if (i == 8) return false; i++ continue } } }
() //gml_Script_scr_inventory_check_space
2
{
3
    var i = 1
4
    while (i <= 8)
5
    {
6
        if (global.item_slot[i] == "Nothing")
7
            return true;
8
        else
9
        {
10
            if (i == 8)
11
                return false;
12
            i++
13
            continue
14
        }
15
    }
16
}