Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_fasttravel_add

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

function scr_fasttravel_add(argument0) //gml_Script_scr_fasttravel_add { for (var i = 0; i < ds_list_size(global.fast_travel_list); i++) { if (ds_list_find_value(global.fast_travel_list, i) == argument0) return false; } ds_list_add(global.fast_travel_list, argument0) ds_list_sort(global.fast_travel_list, false) }
(argument0) //gml_Script_scr_fasttravel_add
2
{
3
    for (var i = 0; i < ds_list_size(global.fast_travel_list); i++)
4
    {
5
        if (ds_list_find_value(global.fast_travel_list, i) == argument0)
6
            return false;
7
    }
8
    ds_list_add(global.fast_travel_list, argument0)
9
    ds_list_sort(global.fast_travel_list, false)
10
}