Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_PDC14C_Create_0

(view raw script w/o annotations or w/e)
1
snd_stop(mus_undynescary);
2
con = 1;
3
customcon = 0;
4
scr_losechar
scr_losechar

function
scr_losechar()
{ global.char[2] = 0; global.char[1] = 0; with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } global.submenu = 0; global.charselect = -1; for (i = 0; i < 36; i += 1) global.submenucoord[i] = 0; }
();
5
door_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; }
(423, 295, spr_noellehouse_door_dess);
6
with (door_marker)
7
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
8
kitchen_door_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; }
(540, 435, spr_noellehouse_door);
9
with (kitchen_door_marker)
10
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
11
couch_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; }
(405, 512, spr_noellehouse_main_couch_big);
12
with (couch_marker)
13
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
14
carol_bgm = false;
15
carol_bgm_file = -4;
16
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);
17
blackall.image_xscale = 999;
18
blackall.image_yscale = 999;
19
blackall.depth = 100;
20
blackall.image_blend = c_black;
21
snacktray_marker = instance_create(460, 590, obj_marker_palette);
22
snacktray_marker.sprite_index = spr_noellehouse_platter;
23
snacktray_marker.depth = 93530;
24
susie_play_tracks = [85, 552, 590, 49];
25
susie_play_index = 0;
26
susie_play_loop = false;
27
susie_play_loop_stop = false;
28
susie_play_timer = 0;
29
30
block_doors = function()
31
{
32
    with (obj_doorAny)
33
    {
34
        var _door_readable = instance_create(x, y, obj_readable_room1);
35
        with (_door_readable)
36
        {
37
            image_xscale = 2;
38
            extflag = "door_blocked";
39
        }
40
        var _door_block = instance_create(x, y, obj_solidblockLight);
41
        with (_door_block)
42
            image_xscale = 2;
43
        instance_destroy();
44
    }
45
};