Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_item_set_unstealable

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

function scr_item_set_unstealable() //gml_Script_scr_item_set_unstealable { var selection = argument[0] switch selection { case "Wild Revolver": case "Silver Ammo": case "Fancy Holster": case "Honeydew Pin": ds_list_add(global.steal_list, selection) return true; default: return true; } }
() //gml_Script_scr_item_set_unstealable
2
{
3
    var selection = argument[0]
4
    switch selection
5
    {
6
        case "Wild Revolver":
7
        case "Silver Ammo":
8
        case "Fancy Holster":
9
        case "Honeydew Pin":
10
            ds_list_add(global.steal_list, selection)
11
            return true;
12
        default:
13
            return true;
14
    }
15
16
}