Deltarune script viewer

← back to main script listing

gml_Object_obj_ch2_city05_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
shortened = false;
4
if (global.chapter != 2 || global.plot >= 85)
5
{
6
    dumpster = instance_create(560, 106, obj_npc_sign);
7
    dumpster.sprite_index = spr_cutscene_14_dumpster_open;
8
    with (dumpster)
9
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
10
    instance_destroy();
11
}
12
else
13
{
14
    if (global.flag[417 trash_tempsave] == 0)
15
    {
16
        global.flag[417 trash_tempsave] = 1;
17
        scr_tempsave
scr_tempsave

function scr_tempsave() { filechoicebk2 = global.filechoice; global.filechoice = 9; var is_valid = scr_saveprocess(global.filechoice); global.filechoice = filechoicebk2; if (!is_valid) { var error_message = instance_create(0, 0, obj_savedata_error); error_message.error_type = "temp_save_failed"; if (room != PLACE_MENU) error_message.type = "auto"; } return is_valid; }
();
18
    }
19
    if (global.tempflag[29] == 1)
20
        shortened = true;
21
    snd_volume(global.currentsong[1], 0, 50);
22
    dumpster = 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; }
(560, 106, spr_cutscene_14_dumpster_closed);
23
    dumpster.depth = 900000;
24
    with (dumpster)
25
        scr_depth_alt
scr_depth_alt

function scr_depth_alt() { depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); }
();
26
    dumpster_nakami = 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; }
(560, 106, spr_cutscene_14_dumpster_nakami);
27
    dumpster_nakami.depth = dumpster.depth - 100;
28
    dumpster_nakami.visible = 0;
29
    play_intro = false;
30
    stop_intro = false;
31
    stop_timer = 0;
32
    open_dumpster = false;
33
}