Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_city01_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
noellejoin = false;
4
leavecon = 0;
5
leaveleftattempt = 0;
6
leaverightattempt = 0;
7
if (global.chapter != 2)
8
{
9
    instance_destroy();
10
}
11
else if (global.plot < 70)
12
{
13
    
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; }
();
14
    if (instance_exists(obj_caterpillarchara))
15
        instance_destroy(obj_caterpillarchara);
16
    alleyoverlay = 
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; }
(320, 40, spr_pixel_white);
17
    alleyoverlay.image_xscale = 30;
18
    alleyoverlay.image_yscale = 50;
19
    alleyoverlay.image_blend = c_black;
20
    alleyoverlay.image_alpha = 0.5;
21
    with (alleyoverlay)
22
        
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
23
    noellemarker = 
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; }
(360, 205, spr_noelle_walk_right_dw);
24
}
25
else
26
{
27
    con = 0;
28
    if (global.flag[357 recruit_hacker] == 1)
29
    {
30
        hackernpc = instance_create(150, 158, obj_npc_sign);
31
        hackernpc.sprite_index = spr_npc_cursor_walk_right;
32
    }
33
    instance_create(360, 185, obj_savepoint);
34
}