Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_PGS01A_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
left_couch = false;
4
run_check = false;
5
run_timer = 0;
6
run_con = -1;
7
couch = instance_create(240, 64, obj_ch3_couch);
8
with (couch)
9
    
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
10
susie_snore = true;
11
susie_snore_stop = false;
12
susie_snore_sfx = -4;
13
with (obj_border_controller)
14
    hide_border();
15
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);
16
blackall.image_xscale = 999;
17
blackall.image_yscale = 999;
18
blackall.depth = -110;
19
blackall.image_blend = c_black;
20
blackall.image_alpha = 0;
21
if (global.plot < 10)
22
{
23
    con = 0;
24
    blackall.image_alpha = 1;
25
    
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; }
();
26
    with (obj_border_controller)
27
        hide_border();
28
    snd_free_all();
29
}
30
else
31
{
32
    susie_snore = false;
33
    if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; }
(1021) == 0)
34
    {
35
        con = 99;
36
        left_couch = true;
37
        if (global.tempflag[40] == 1)
38
        {
39
            with (couch)
40
                show_sparkle();
41
        }
42
    }
43
    else
44
    {
45
        with (couch)
46
        {
47
            walkaway = true;
48
            hide_sparkle();
49
        }
50
    }
51
    if (!snd_is_playing(global.currentsong[1]))
52
    {
53
        global.currentsong[0] = snd_init("wind_highplace.ogg");
54
        global.currentsong[1] = mus_loop_ext(global.currentsong[0], 0.5, 1);
55
    }
56
    with (instance_create(210, 420, obj_circlezoom))
57
        type = 3;
58
}