Deltarune (Chapter 3) script viewer

← back to main script listing

gml_GlobalScript_scr_gameover

(view raw script w/o annotations or w/e)
1
function 
scr_gameover
scr_gameover

function
scr_gameover()
{ if (global.flag[35 gameover_mode] == 0) { audio_stop_all(); snd_play(snd_hurt1); global.screenshot = sprite_create_from_surface(application_surface, 0, 0, __view_get(e__VW.WView, 0), __view_get(e__VW.HView, 0), 0, 0, 0, 0); snd_free_all(); room_goto(room_gameover ); } if (global.flag[35 gameover_mode] == 1) { global.turntimer = -1; global.flag[36 dojo_failure] = 1; global.flag[39 dojo_abort?] = 1; } if (global.flag[35 gameover_mode] == 2) { audio_stop_all(); snd_play(snd_hurt1); snd_free_all(); global.entrance = 0; global.tempflag[9] = 1; global.fighting = 0; global.interact = 0; global.hp[0] = 1; global.hp[1] = 1; global.hp[2] = 1; global.hp[3] = 1; __room = room; if (global.chapter == 2) { with (instance_create(0, 0, obj_persistentfadein)) image_alpha = 1.2; } room_goto(__room); } } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
()
2
{
3
    if (global.flag[35 gameover_mode] == 0)
4
    {
5
        audio_stop_all();
6
        snd_play(snd_hurt1);
7
        global.screenshot = sprite_create_from_surface(application_surface, 0, 0, __view_get(e__VW.WView, 0), __view_get(e__VW.HView, 0), 0, 0, 0, 0);
8
        snd_free_all();
9
        room_goto(room_gameover );
10
    }
11
    if (global.flag[35 gameover_mode] == 1)
12
    {
13
        global.turntimer = -1;
14
        global.flag[36 dojo_failure] = 1;
15
        global.flag[39 dojo_abort?] = 1;
16
    }
17
    if (global.flag[35 gameover_mode] == 2)
18
    {
19
        audio_stop_all();
20
        snd_play(snd_hurt1);
21
        snd_free_all();
22
        global.entrance = 0;
23
        global.tempflag[9] = 1;
24
        global.fighting = 0;
25
        global.interact = 0;
26
        global.hp[0] = 1;
27
        global.hp[1] = 1;
28
        global.hp[2] = 1;
29
        global.hp[3] = 1;
30
        __room = room;
31
        if (global.chapter == 2)
32
        {
33
            with (instance_create(0, 0, obj_persistentfadein))
34
                image_alpha = 1.2;
35
        }
36
        room_goto(__room);
37
    }
38
}
39
40
enum e__VW
41
{
42
    XView,
43
    YView,
44
    WView,
45
    HView,
46
    Angle,
47
    HBorder,
48
    VBorder,
49
    HSpeed,
50
    VSpeed,
51
    Object,
52
    Visible,
53
    XPort,
54
    YPort,
55
    WPort,
56
    HPort,
57
    Camera,
58
    SurfaceID
59
}