Deltarune script viewer

← back to main script listing

gml_Object_obj_ch2_scene28b_Create_0

(view raw script w/o annotations or w/e)
1
if (scr_sideb_get_phase
scr_sideb_get_phase

function scr_sideb_get_phase() { var phase = 0; if (global.flag[916 snowgrave_fail] == 0) { if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4) phase = 1; if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7) phase = 2; if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20) phase = 3; if (global.flag[915 snowgrave_plot] >= 20) phase = 4; } return phase; }
() >= 2)
2
{
3
    berdly_npc = instance_create(166, 68, obj_npc_sign);
4
    berdly_npc.sprite_index = spr_cutscene_28b_berdly_desk_sleep;
5
    with (obj_caterpillarchara)
6
        visible = false;
7
}
8
con = -1;
9
customcon = 0;
10
su_actor = -1;
11
show_border = false;
12
if (global.chapter != 2 || global.plot > 200)
13
{
14
    instance_destroy();
15
}
16
else
17
{
18
    con = 1;
19
    if (instance_exists(obj_bg_givedepth))
20
    {
21
        with (obj_bg_givedepth)
22
            instance_destroy();
23
    }
24
    layer_set_visible("GIVE_DEPTH", false);
25
    whiteall = 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; }
(-10, -10, spr_pixel_white);
26
    whiteall.image_xscale = 999;
27
    whiteall.image_yscale = 999;
28
    whiteall.depth = 100;
29
    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);
30
    blackall.image_xscale = 999;
31
    blackall.image_yscale = 999;
32
    blackall.depth = 100;
33
    blackall.image_blend = c_black;
34
    blackall.image_alpha = 0;
35
    desk_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; }
(152, 96, spr_lw_computer_lab_desk_right);
36
    desk_marker.depthcancel = 1;
37
    desk_marker.depth = whiteall.depth + 100;
38
    standing = 0;
39
    kris_leave = false;
40
    susie_mad = false;
41
    susie_mad_timer = 0;
42
}