Deltarune script viewer

← back to main script listing

gml_Object_obj_endbattle_Alarm_0

(view raw script w/o annotations or w/e)
1
with (obj_mainchara)
2
{
3
    if (global.specialbattle != 3)
4
        cutscene = 0;
5
    visible = 1;
6
}
7
with (obj_caterpillarchara)
8
    visible = 1;
9
if (global.specialbattle == 0 || global.specialbattle == 3)
10
{
11
    for (i = 0; i < (count + 1); i += 1)
12
    {
13
        with (c[i])
14
            instance_destroy();
15
    }
16
}
17
if (global.specialbattle == 0 || global.specialbattle == 2)
18
    global.interact = 0;
19
if (global.flag[9 battle_music] == 1)
20
{
21
    snd_free(global.batmusic[0]);
22
    snd_volume(global.currentsong[1], 0, 0);
23
    snd_resume(global.currentsong[1]);
24
    snd_volume(global.currentsong[1], 1, 20);
25
}
26
instance_destroy();