4 |
scr_audio_fade_outscr_audio_fade_outfunction 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) |
6 |
scr_mail_addscr_mail_addfunction 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") |