Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_minigame_quit_ui_Step_0

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_round_evaluation))
2
    exit;
3
if (canceltimer == canceltime)
4
{
5
    canceltimer++;
6
    snd_play(snd_closet_impact);
7
    if (room == room_dw_rhythm)
8
    {
9
        with (obj_rhythmgame)
10
        {
11
            replayquit = 1;
12
            if (lose_con == 0)
13
                lose_con = 1;
14
        }
15
    }
16
    else
17
    {
18
        inst = instance_create_depth(x, y, -99999, obj_gameover_minigame);
19
        inst.replayversion = true;
20
        inst.quitversion = true;
21
        if (room == room_dw_chef)
22
        {
23
            scr_chefs_end();
24
            global.flag[7 disable_menu?] = 0;
25
        }
26
        if (room == room_dw_susiezilla)
27
        {
28
            with (obj_susiezilla_gamecontroller)
29
            {
30
                mode = -1;
31
                susiezilla_destroy();
32
            }
33
            with (obj_ch3_tennashouter)
34
                instance_destroy();
35
            with (obj_ch3_tennashouter_alt)
36
                instance_destroy();
37
        }
38
    }
39
    instance_destroy();
40
}