Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_scene18_Create_0

(view raw script w/o annotations or w/e)
1
con = (global.plot >= 101) ? 99 : 0;
2
customcon = 0;
3
lancerfade = 0;
4
fadetimer = 0;
5
krisdoor = -1;
6
berdlydoor = -1;
7
krisdoor_open = false;
8
krisdoor_open_timer = 0;
9
susie_heal = false;
10
heal_timer = 0;
11
heal_beam = -1;
12
berdly_door_open = false;
13
berdly_door_close = false;
14
if (global.chapter != 2)
15
{
16
    con = -1;
17
    instance_destroy();
18
}
19
else if (global.plot >= 120)
20
{
21
    var swatchling_npc_a = instance_create(1335, 165, obj_npc_butler);
22
    with (swatchling_npc_a)
23
    {
24
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
25
        current_pal = yellow;
26
    }
27
    var swatchling_npc_b = instance_create(1055, 165, obj_npc_butler);
28
    with (swatchling_npc_b)
29
    {
30
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
31
        current_pal = orange;
32
    }
33
}
34
else if (global.plot >= 101)
35
{
36
    instance_destroy();
37
}