Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_LWF04A_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
if (global.plot >= 310 && global.plot < 320)
4
{
5
    con = 0;
6
    vfx = instance_create(0, 0, obj_ch4_LWF04A_vfx);
7
    vfx.depth = 988;
8
    if (i_ex(obj_lw_rain_effect))
9
    {
10
        toggle_effect();
11
        with (obj_lw_rain_effect)
12
            instance_destroy();
13
    }
14
    snd_free_all();
15
    phone_vfx = instance_create(0, 0, obj_ch4_LWF04A_phone);
16
    phone_vfx.visible = false;
17
    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; }
(-120, -10, spr_pixel_white);
18
    blackall.image_xscale = 999;
19
    blackall.image_yscale = 999;
20
    blackall.depth = 100;
21
    blackall.image_blend = c_black;
22
    blackall.image_alpha = 0;
23
    window_marker = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(71, 194, spr_torhouse_window_kris_dark);
24
    window_marker.depth = 940000;
25
    window_marker_light = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(71, 194, spr_torhouse_window_kris);
26
    window_marker_light.depth = blackall.depth - 10;
27
    window_marker_light.image_alpha = 0;
28
    window_marker_red = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(71, 194, spr_torhouse_window_kris_eyeglow);
29
    window_marker_red.depth = window_marker_light.depth - 10;
30
    window_marker_red.image_alpha = 0;
31
    flash_marker = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(83, 209, spr_kris_eyeflash);
32
    flash_marker.depth = window_marker_red.depth - 10;
33
    flash_marker.image_blend = c_red;
34
    flash_marker.visible = 0;
35
    fade_pitch = false;
36
    rain_pitch = 1;
37
    with (obj_mainchara)
38
    {
39
        visible = 0;
40
        y = -40;
41
    }
42
}
43
else
44
{
45
    instance_destroy();
46
}