Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_item_droppable_yellow

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

function scr_determine_item_droppable_yellow(argument0) //gml_Script_scr_determine_item_droppable_yellow { var item_slot = argument0 switch item_slot { case "Missing Poster": case "Snowdin Map": case "Matches": case "Lukewarm Coffee": case "Soggy Mitten": case "H. Acid": return false; case "Pickaxe": case "Flint": case "Steel Buckle": if (global.dunes_flag[4] >= 2) return true; else return false; break default: return true; } }
(argument0) //gml_Script_scr_determine_item_droppable_yellow
2
{
3
    var item_slot = argument0
4
    switch item_slot
5
    {
6
        case "Missing Poster":
7
        case "Snowdin Map":
8
        case "Matches":
9
        case "Lukewarm Coffee":
10
        case "Soggy Mitten":
11
        case "H. Acid":
12
            return false;
13
        case "Pickaxe":
14
        case "Flint":
15
        case "Steel Buckle":
16
            if (global.dunes_flag[4] >= 2)
17
                return true;
18
            else
19
                return false;
20
            break
21
        default:
22
            return true;
23
    }
24
25
}