Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_PGS01F_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
spotlight_fx = instance_create(2180, 600, obj_ch3_PGS01F_spotlight);
4
spotlight_fx.visible = 0;
5
both_talk = false;
6
both_talk_timer = 0;
7
both_writer = -4;
8
confetti_popper = -4;
9
confetti_timer = 0;
10
confetti_pop = false;
11
camera_y_pos = 678;
12
camera_pan = false;
13
camera_pan_timer = 0;
14
show_border = false;
15
with (obj_border_controller)
16
    hide_border();
17
if (global.plot == 45)
18
{
19
    con = 0;
20
    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; }
(-40, -40, spr_pixel_white);
21
    blackall.image_xscale = 999;
22
    blackall.image_yscale = 999;
23
    blackall.depth = -110;
24
    blackall.image_blend = c_black;
25
    blackall.image_alpha = 0;
26
    spotlight_marker = 
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; }
(2116, 678, spr_pixel_white);
27
    with (spotlight_marker)
28
    {
29
        image_xscale = 30;
30
        image_yscale = 60;
31
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
32
        image_alpha = 0.6;
33
        visible = 0;
34
    }
35
    ralsei_face_marker = 
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; }
(2320, 1018, spr_face_r_nohat);
36
    ralsei_face_marker.image_index = 32;
37
    ralsei_face_marker.visible = 0;
38
    
scr_losechar
scr_losechar

function
scr_losechar()
{ global.char[2] = 0; global.char[1] = 0; with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } global.submenu = 0; global.charselect = -1; for (i = 0; i < 36; i += 1) global.submenucoord[i] = 0; }
();
39
    if (i_ex(obj_caterpillarchara))
40
    {
41
        with (obj_caterpillarchara)
42
            instance_destroy();
43
    }
44
    with (obj_mainchara)
45
    {
46
        y = -100;
47
        cutscene = 1;
48
        visible = 0;
49
    }
50
    camerax_set(1860);
51
    cameray_set(678);
52
}
53
else
54
{
55
    instance_destroy();
56
}