Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_PDC01B_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
if (global.plot <= 15)
4
{
5
    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; }
(427, 182, bg_torhouse_couch);
6
    couch_marker.depth = 10000;
7
    if (global.plot < 15)
8
    {
9
        bottom_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; }
(0, 200, spr_whitepx_10);
10
        bottom_marker.image_xscale = 60;
11
        bottom_marker.image_blend = c_black;
12
        bottom_marker.depth = 60000;
13
    }
14
}
15
if (global.plot >= 5 && global.plot < 10)
16
{
17
    con = 0;
18
    
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; }
();
19
    global.darkzone = 0;
20
    snd_free_all();
21
    blanket_fly = false;
22
    blanket_fly_timer = 0;
23
    slow_writer = false;
24
    susie_sfx = false;
25
    with (obj_mainchara)
26
    {
27
        visible = 0;
28
        x = 550;
29
    }
30
    can_sleep = global.tempflag[41] == 1 && !scr_sideb_active();
31
    skip_intro = false;
32
    skip_intro_con = 0;
33
    sparkle_marker = -4;
34
    sparkle_readable = -4;
35
    blackall = -4;
36
}
37
else
38
{
39
    instance_destroy();
40
}