Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_PDC01C_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
if (global.plot <= 20)
4
{
5
    layer_set_visible("Compatibility_Tiles_Depth_10000", 0);
6
    chair_marker = 
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; }
(304, 165, spr_torhouse_chair_breakfast);
7
    chair_marker.depth = (global.plot < 15) ? 100000 : 97140;
8
    chair_left_marker = 
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; }
(249, 165, spr_torhouse_chair_breakfast_left);
9
    chair_left_marker.depth = (global.plot < 15) ? 100000 : 97140;
10
    table_marker = 
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; }
(185, 165, spr_torhouse_table_breakfast);
11
    table_marker.depth = 10000;
12
    plate_marker = 
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; }
(228, 87, spr_torhouse_sink_plate);
13
    plate_marker.depth = 1000000;
14
    if (global.plot < 15)
15
    {
16
        with (obj_caterpillarchara)
17
        {
18
            follow = 0;
19
            visible = 0;
20
        }
21
        susie_marker = 
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; }
(347, 170, spr_susie_breakfast_eating_loop);
22
        susie_marker.image_speed = 0.15;
23
        susie_marker.depth = table_marker.depth - 10;
24
        with (obj_doorX_musfade)
25
            instance_destroy();
26
        door_readable = instance_create(595, 150, obj_readable_room1);
27
    }
28
    else
29
    {
30
        blanket_marker = 
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; }
(525, 108, spr_torhouse_chair_blanket);
31
        blanket_marker.depth = 100000;
32
    }
33
    plate_marker = 
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; }
(347, 170, spr_susie_breakfast_plate);
34
    plate_marker.depth = table_marker.depth - 10;
35
    if (global.plot < 15)
36
        plate_marker.visible = 0;
37
    else
38
        plate_marker.x -= 10;
39
    with (obj_doorA)
40
        instance_destroy();
41
    with (obj_markerB)
42
        instance_destroy();
43
    bathroom_readable = instance_create(84, 164, obj_readable_room1);
44
    pancake_readable_kris = instance_create(310, 180, obj_readable_room1);
45
    with (pancake_readable_kris)
46
    {
47
        extflag = "pancakes_kris";
48
        image_xscale = 1;
49
    }
50
    pancake_readable_susie = instance_create(340, 190, obj_readable_room1);
51
    with (pancake_readable_susie)
52
    {
53
        extflag = "pancakes_susie";
54
        image_xscale = 1;
55
    }
56
}
57
if (global.plot < 15)
58
{
59
    con = 0;
60
    update_plot = false;
61
    toriel_marker = 
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; }
(274, 121, spr_toriel_dt);
62
    with (toriel_marker)
63
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
64
}
65
else
66
{
67
    instance_destroy();
68
}