Undertale script viewer

← back to main script listing

gml_Script_scr_itemcheck

(view raw script w/o annotations or w/e)
1
haveit = 0;
2
itemcount = 0;
3
for (i = 0; i < 8; i += 1)
4
{
5
    if (global.item[i] == argument0)
6
        haveit = 1;
7
    if (global.item[i] == argument0)
8
        itemcount += 1;
9
}