Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_sceneex2_mus_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
if (global.chapter != 2 || global.flag[309 spamton_plot] >= 8 || scr_keyitemcheck
scr_keyitemcheck

function scr_keyitemcheck(arg0) { haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(11) == 0)
4
{
5
    instance_destroy();
6
}
7
else if (!snd_is_playing(global.currentsong[1]))
8
{
9
    global.currentsong[0] = snd_init("spamton_neo_meeting.ogg");
10
    global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
11
    audio_sound_gain(global.currentsong[0], 0.5, 0);
12
}