Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_endbattle_Alarm_0

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