Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_churchc_savepoint_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
timer = 0;
3
init = 0;
4
siner = 0;
5
if (global.plot < 244.9)
6
    global.plot = 244.9;
7
layer_set_visible("DEBUG_ASSETS", 0);
8
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
9
{
10
    if (keyboard_check(ord("P")))
11
    {
12
    }
13
}
14
maxvol = global.flag[16 music_volume];
15
instance_create(x, y, obj_musicer_dw_church3);
16
volume = maxvol;
17
if (obj_mainchara.y < 640)
18
    volume = 0;
19
snd_volume(global.currentsong[1], volume, 0);
20
shop = -4;
21
var spritesArray = layer_get_all_elements("DEBUG_ASSETS");
22
for (var i = 0; i < array_length(spritesArray); i++)
23
{
24
    if (layer_sprite_get_sprite(spritesArray[i]) == 4518)
25
    {
26
        shop = scr_makenpc_fromasset(spritesArray[i]);
27
        shop.marker.image_speed = 0.125;
28
        shop.cost = -1;
29
        shop.maketype = 0;
30
    }
31
    if (layer_sprite_get_sprite(spritesArray[i]) == 4600)
32
    {
33
        if (global.plot >= 249)
34
        {
35
            if (layer_sprite_get_blend(spritesArray[i]) == 255)
36
            {
37
                var info = scr_assetgetinfo(spritesArray[i]);
38
                redflame = instance_create(info[2], info[3], obj_dw_church_warpflame);
39
                with (redflame)
40
                {
41
                    musfade = true;
42
                    roomtarg = 280;
43
                    entrance = 3;
44
                    color = "red";
45
                }
46
            }
47
        }
48
        if (layer_sprite_get_blend(spritesArray[i]) == 8061183)
49
        {
50
            var info = scr_assetgetinfo(spritesArray[i]);
51
            pinkflame = instance_create(info[2], info[3], obj_dw_church_warpflame);
52
            with (pinkflame)
53
            {
54
                color = "pink";
55
                roomtarg = 270;
56
                entrance = 12;
57
            }
58
        }
59
    }
60
}