Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_crayon_minigame_Other_10

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
event_fade_out = true
4
scr_audio_fade_out
scr_audio_fade_out

function scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out { var snd = argument0 var fade_len = argument1 if (!audio_is_playing(snd)) return false; audio_sound_gain(snd, 0, fade_len) if instance_exists(obj_audio_fade_helper) { with (obj_audio_fade_helper) { if (audio_to_fade == snd) return false; } } with (instance_create(0, 0, obj_audio_fade_helper)) audio_to_fade = snd }
(mus, 500)
5
ds_grid_copy(global.sworks_id_grid, drawing_grid)
6
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() }
("Steamworks ID")
7
global.sworks_flag[16] = 0