Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_PDC02_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
leave_con = 0;
4
door_marker = -4;
5
toriel_hide = false;
6
toriel_shadow = 0;
7
if (global.plot < 190)
8
{
9
    office_door_blocker = instance_create(420, 100, obj_solidblockLight);
10
    with (office_door_blocker)
11
        image_xscale = 2;
12
    office_door_readable = instance_create(420, 100, obj_readable_room1);
13
    with (office_door_readable)
14
    {
15
        extflag = "office_room_door";
16
        image_xscale = 2;
17
    }
18
    choir_door_blocker = instance_create(180, 100, obj_solidblockLight);
19
    with (choir_door_blocker)
20
        image_xscale = 2;
21
    choir_door_readable = instance_create(180, 100, obj_readable_room1);
22
    with (choir_door_readable)
23
    {
24
        extflag = "choir_room_door";
25
        image_xscale = 2;
26
    }
27
}
28
if (global.plot >= 15 && global.plot < 20)
29
{
30
    door_cover = 
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; }
(183, 64, spr_pixel_white);
31
    with (door_cover)
32
    {
33
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
34
        image_blend = c_black;
35
        image_xscale = 8.5;
36
        image_yscale = 13.8;
37
        visible = 0;
38
    }
39
    blackall = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(-10, -10, spr_pixel_white);
40
    blackall.image_xscale = 999;
41
    blackall.image_yscale = 999;
42
    blackall.depth = 6000;
43
    blackall.image_blend = c_black;
44
    actor_talker = instance_create(0, 0, obj_actor_talk);
45
    with (obj_mainchara)
46
    {
47
        cutscene = 1;
48
        visible = 0;
49
    }
50
    with (obj_caterpillarchara)
51
        visible = 0;
52
    camerax_set(161);
53
    con = 0;
54
}
55
if (global.plot >= 30)
56
    instance_destroy();