Deltarune (Chapter 4) 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_minigame_evaluation))
2
    exit;
3
if (canceltimer > canceltime)
4
    exit;
5
if (canceltimer == canceltime)
6
{
7
    canceltimer++;
8
    snd_play(snd_closet_impact);
9
    if (room == room_dw_rhythm)
10
    {
11
        with (obj_rhythmgame)
12
        {
13
            replayquit = 1;
14
            if (lose_con == 0)
15
                lose_con = 1;
16
        }
17
    }
18
    else
19
    {
20
        inst = instance_create_depth(x, y, -99999, obj_gameover_minigame);
21
        inst.replayversion = true;
22
        inst.quitversion = true;
23
        if (room == room_dw_chef)
24
            scr_chefs_end();
25
        if (room == room_dw_susiezilla)
26
        {
27
            with (obj_susiezilla_gamecontroller)
28
            {
29
                mode = -1;
30
                susiezilla_destroy();
31
            }
32
        }
33
    }
34
}