Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_mail_remove

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

function scr_mail_remove(argument0) //gml_Script_scr_mail_remove { var old_pos = ds_list_find_index(global.mail_list, argument0) ds_list_delete(global.mail_list, old_pos) scr_mail_sort() }
(argument0) //gml_Script_scr_mail_remove
2
{
3
    var old_pos = ds_list_find_index(global.mail_list, argument0)
4
    ds_list_delete(global.mail_list, old_pos)
5
    scr_mail_sort
scr_mail_sort

function scr_mail_sort() //gml_Script_scr_mail_sort { var old_pinned = "" if (global.mail_pinned == true) { old_pinned = ds_list_find_value(global.mail_list, 0) ds_list_delete(global.mail_list, 0) } ds_list_sort(global.mail_list, false) if (old_pinned != "") ds_list_insert(global.mail_list, 0, old_pinned) }
()
6
}