Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_scene4_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
ra_npc = pointer_null;
3
su_npc = pointer_null;
4
customcon = 0;
5
talked = 0;
6
if (global.chapter != 2)
7
{
8
    con = -1;
9
    instance_destroy();
10
}
11
else
12
{
13
    if (global.plot == 8 || global.plot == 9)
14
    {
15
        con = 10;
16
        susie = instance_create(377, 541, obj_npc_room);
17
        with (susie)
18
            
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
19
        ralsei = instance_create(279, 590, obj_npc_facing);
20
        with (ralsei)
21
            
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
22
    }
23
    if (global.plot == 9)
24
    {
25
        con = 50;
26
        with (obj_mainchara)
27
            cutscene = 1;
28
    }
29
}