Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_lw_cutscenes_short_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
destroyme = 0;
3
if (global.chapter != 2)
4
{
5
    destroyme = 1;
6
}
7
else
8
{
9
    if (room == room_town_krisyard && global.plot < 2)
10
    {
11
        con = 1;
12
        global.facing = 0;
13
        with (obj_doorparent)
14
            instance_destroy();
15
        with (obj_npc_sign)
16
            instance_destroy();
17
    }
18
    if (room == room_schoollobby && global.plot == 5)
19
    {
20
        con = 1;
21
        global.facing = 0;
22
        global.interact = 1;
23
    }
24
    if (room == room_schooldoor && global.plot == 6)
25
    {
26
        con = 1;
27
        global.facing = 2;
28
        global.interact = 1;
29
        noelle_chalk = global.flag[276 talked_to_noelle] >= 2;
30
        if (!noelle_chalk && global.is_console)
31
            noelle_chalk = global.game_won;
32
    }
33
    if (room == room_schoollobby && global.plot == 9)
34
    {
35
        global.flag[20 other_text_command] = 0;
36
        con = 50;
37
        alphys = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(469, 222, spr_alphysr);
38
        toriel = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(551, 201, spr_toriel_l);
39
        with (alphys)
40
            
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
41
        with (toriel)
42
            
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
43
    }
44
}
45
if (destroyme == 1)
46
    instance_destroy();