Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_item_exists_check

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

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