Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_34_flowey_disappear_Create_0

(view raw script w/o annotations or w/e)
1
audio_play_sound(snd_paperfall, 1, 0)
2
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() }
("Martlet's Letter")
3
scr_mail_add
scr_mail_add

function scr_mail_add(argument0) //gml_Script_scr_mail_add { ds_list_add(global.mail_list, argument0) if (irandom(global.spam_mail_chance) == 1) { show_debug_message("success") ds_list_add(global.mail_list, choose("Spam Letter 1", "Spam Letter 2", "Spam Letter 3", "Spam Letter 4", "Spam Letter 5", "Spam Letter 6", "Spam Letter 7", "Spam Letter 8", "Spam Letter 9")) global.spam_mail_chance = 30 } else global.spam_mail_chance = clamp((global.spam_mail_chance - 1), 1, 999) scr_mail_sort() }
("Missing Poster")