Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_GSB05_Create_0

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

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
2
{
3
    if (keyboard_check(ord("P")))
4
        global.flag[1228 entered_coldplace] = 0;
5
}
6
repeat (array_length(global.keyitem))
7
    
scr_keyitemremove
scr_keyitemremove

function
scr_keyitemremove(arg0)
{ removed = 0;
scr_keyitemcheck(arg0);
if (haveit == 1) { loc = 0; skip = 0; if (global.keyitem[0] == arg0 && skip == 0) { loc = 0; skip = 1; } if (global.keyitem[1] == arg0 && skip == 0) { loc = 1; skip = 1; } if (global.keyitem[2] == arg0 && skip == 0) { loc = 2; skip = 1; } if (global.keyitem[3] == arg0 && skip == 0) { loc = 3; skip = 1; } if (global.keyitem[4] == arg0 && skip == 0) { loc = 4; skip = 1; } if (global.keyitem[5] == arg0 && skip == 0) { loc = 5; skip = 1; } if (global.keyitem[6] == arg0 && skip == 0) { loc = 6; skip = 1; } if (global.keyitem[7] == arg0 && skip == 0) { loc = 7; skip = 1; } if (global.keyitem[8] == arg0 && skip == 0) { loc = 8; skip = 1; } if (global.keyitem[9] == arg0 && skip == 0) { loc = 9; skip = 1; } if (global.keyitem[10] == arg0 && skip == 0) { loc = 10; skip = 1; } if (global.keyitem[11] == arg0 && skip == 0) { loc = 11; skip = 1; }
scr_keyitemshift(loc, 0);
removed = 1; } }
(8);
8
con = -1;
9
customcon = 0;
10
make_text = false;
11
if (global.plot >= 160 && global.plot < 170)
12
{
13
    con = 0;
14
    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);
15
    blackall.image_xscale = 999;
16
    blackall.image_yscale = 999;
17
    blackall.depth = -110;
18
    blackall.image_blend = c_black;
19
    if (global.flag[1228 entered_coldplace] == 1)
20
    {
21
        con = 20;
22
        safe_delete(blackall);
23
        global.currentsong[0] = snd_init("wind_highplace.ogg");
24
        global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
25
        snd_volume(global.currentsong[1], 0, 0);
26
        snd_volume(global.currentsong[1], 1, 60);
27
    }
28
    writer_stay = false;
29
    scene_end = false;
30
    scene_end_timer = 0;
31
    gacha = 
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; }
(1920, 224, spr_gachapon_whole_toriel);
32
    with (gacha)
33
        
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)); } }
();
34
    gacha_cover = 
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; }
(gacha.x, gacha.y, spr_gachapon_whole_opaque);
35
    gacha_cover.depth = gacha.depth - 10;
36
    technical_difficulties = instance_create(0, 0, obj_dw_technical_difficulties);
37
    border_white_start = false;
38
}
39
else
40
{
41
    instance_destroy();
42
}
43
noskip = false;