Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_dark_maze_controller_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
timer = 0;
3
if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; } function scr_flag_name_get(arg0) { if (!global.is_console) { var v = global.flagname[arg0]; return is_undefined(v) ? "*unknown flag*" : v; } else { return ""; } } function scr_getflag(arg0) { return
scr_flag_get(arg0);
}
(850) == 6 || global.tempflag[98] == 1)
4
    con = -1;
5
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
6
{
7
    if (global.tempflag[90] || keyboard_check(ord("P")))
8
    {
9
        global.tempflag[90] = 0;
10
        with (obj_dw_church_dark_maze_controller)
11
        {
12
            con = 0;
13
            timer = 0;
14
        }
15
        with (obj_mainchara)
16
            setxy(881, 640);
17
        with (obj_caterpillarchara)
18
        {
19
            if (name == "susie")
20
            {
21
                setxy(823.9, 624.33);
22
                scr_caterpillar_interpolate_old();
23
            }
24
            if (name == "ralsei")
25
                setxy(768, 628);
26
        }
27
        krlight = instance_create(x, y, obj_light_following);
28
        with (krlight)
29
        {
30
            target = 1049;
31
            preset = 1;
32
            setxy(899, 678);
33
        }
34
        sulight = instance_create(x, y, obj_light_following);
35
        sulight.preset = 2;
36
        ralight = instance_create(x, y, obj_light_following);
37
        ralight.preset = 3;
38
        with (obj_light_following)
39
            size = clamp(distance_to_point(2122, 1960) / 5, 40, 200);
40
        with (obj_darkness_overlay)
41
            scr_delay_var("active", 1, 1);
42
    }
43
}