Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_cc_event_Create_0

(view raw script w/o annotations or w/e)
1
if (room == room_cc_1f)
2
{
3
    if (global.flag[240 elevator_unlocked] == 0)
4
    {
5
        elevatorblocker = instance_create(1040, 160, obj_soliddark);
6
        with (elevatorblocker)
7
            image_xscale = 6;
8
    }
9
}
10
if (room == room_cc_2f)
11
{
12
    spike[0] = 
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; }
(800, 280, spr_spiketile);
13
    spike[1] = 
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; }
(840, 280, spr_spiketile);
14
    with (spike[0])
15
        depth = 900000;
16
    with (spike[1])
17
        depth = 900000;
18
    if (global.flag[217 solved_rouxls_puzz] == 1)
19
    {
20
        with (spike[0])
21
            image_index = 1;
22
        with (spike[1])
23
            image_index = 1;
24
    }
25
    else
26
    {
27
        darksolid = instance_create(800, 280, obj_soliddark);
28
        darksolid.image_xscale = 2;
29
    }
30
}
31
if (room == room_cc_4f)
32
{
33
    spike[0] = 
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; }
(680, 920, spr_spiketile);
34
    spike[1] = 
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; }
(720, 920, spr_spiketile);
35
    with (spike[0])
36
        depth = 900000;
37
    with (spike[1])
38
        depth = 900000;
39
    if (global.flag[218 solved_rouxls_puzz_2] == 1)
40
    {
41
        with (spike[0])
42
            image_index = 1;
43
        with (spike[1])
44
            image_index = 1;
45
    }
46
    else
47
    {
48
        darksolid = instance_create(680, 920, obj_soliddark);
49
        darksolid.image_xscale = 2;
50
    }
51
    if (global.flag[245 made_bluh_chest] == 1)
52
    {
53
        with (obj_bluhpainting)
54
        {
55
            bluh = 1;
56
            image_index = 1;
57
        }
58
        chest = instance_create(480, 980, obj_treasure_room);
59
    }
60
}
61
if (room == room_cc_5f)
62
    global.flag[240 elevator_unlocked] = 1;
63
if (!snd_is_playing(global.currentsong[1]) && room >= room_cc_1f)
64
{
65
    if (room == room_cc_clover)
66
        global.currentsong[0] = snd_init("april_2012.ogg");
67
    else
68
        global.currentsong[0] = snd_init("card_castle.ogg");
69
    global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
70
}
71
if (!snd_is_playing(global.currentsong[1]) && room < room_cc_1f)
72
{
73
    global.currentsong[0] = snd_init("basement.ogg");
74
    global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
75
}