Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_DCA15_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
4
    audio_stop_sound(snd_deep_noise);
5
if (global.plot >= 220 && global.plot < 225)
6
{
7
    var door_readable = instance_create(0, 0, obj_readable_room1);
8
    with (door_readable)
9
        extflag = "church_door_listen";
10
    anim_sprite[0][0] = 4430;
11
    anim_sprite[0][1] = [500, 330, 330, 330, 330, 200, 100, 50, 100, 50, 50, 100, 500];
12
    anim_sprite[1][0] = 4070;
13
    anim_sprite[1][1] = [100, 100, 200, 1000];
14
    anim_sprite[2][0] = 2868;
15
    anim_sprite[2][1] = [100, 100, 100, 100, 50, 200, 100];
16
    anim_sprite[3][0] = 3379;
17
    anim_sprite[3][1] = [200, 200, 200, 1000];
18
    anim_sprite_index = 0;
19
    anim_modifier = 30;
20
    anim_index = 0;
21
    anim_timer = 0;
22
    anim_init = false;
23
    anim_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; }
(-100, -100, anim_sprite[0][0]);
24
    with (anim_marker)
25
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
26
    animate_start = false;
27
    animate_pause = false;
28
    fountain_make = instance_create(305, 95, obj_make_fountain);
29
    fountain_make_start = false;
30
    fountain_make_timer = 0;
31
    target_flash_active = false;
32
    blazetimer = 0;
33
    anim = -4;
34
    white_bg = 
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; }
(0, 0, spr_church_lobby_white);
35
    white_bg.depth = anim_marker.depth + 10;
36
    with (white_bg)
37
        image_alpha = 0;
38
    kris_glow_overlay = 
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; }
(368, 100, spr_kris_diagonal_glow_overlay);
39
    kris_glow_overlay.depth = 98500;
40
    with (kris_glow_overlay)
41
        image_alpha = 0;
42
    sparkle_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; }
(317, 90, spr_shine);
43
    with (sparkle_marker)
44
    {
45
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
46
        image_speed = 0.1;
47
    }
48
    sparkle_readable = instance_create(sparkle_marker.x - 8, sparkle_marker.y - 10, obj_readable_room1);
49
    with (sparkle_readable)
50
        extflag = "church_door_listen";
51
}
52
else
53
{
54
    instance_destroy();
55
}
56
57
answer_choice = function(arg0)
58
{
59
    if (arg0 == 0)
60
        con = 0;
61
};