Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_room_town_church_Create_0

(view raw script w/o annotations or w/e)
1
if (global.chapter == 4)
2
{
3
    var deco_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; }
(619, 100, spr_townhall_decorations);
4
    with (deco_marker)
5
        depth = 989990;
6
    if (global.plot >= 100)
7
    {
8
        with (obj_doorparent)
9
        {
10
            if (y > 80 && y < 290)
11
            {
12
                var readable = instance_create(x, y, obj_readable_room1);
13
                if (global.plot >= 290)
14
                {
15
                    if (x <= 290)
16
                        readable.extflag = "church_door_night";
17
                }
18
                instance_destroy();
19
            }
20
        }
21
    }
22
    else
23
    {
24
        var wolf_npc = instance_create(590, 108, obj_npc_room_animated);
25
        wolf_npc.depth = deco_marker.depth - 10;
26
        with (wolf_npc)
27
        {
28
            extflag = "wolf_ribbon";
29
            image_speed = 0.1;
30
            sprite_index = spr_npc_ice_wolf_ribbon;
31
        }
32
        var trashcan_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; }
(478, 165, spr_trashcan_flowers);
33
        with (trashcan_marker)
34
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
35
        var trashcan_collider = instance_create(478, 165, obj_solidblockLight);
36
        var trashcan_readable = instance_create(trashcan_marker.x, trashcan_marker.y, obj_readable_room1);
37
    }
38
}