Deltarune script viewer

← back to main script listing

gml_Object_obj_ch2_scene23a_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
if (global.flag[40 violences] == 0)
4
{
5
    var total_recruits = global.flag[630 recruit_medic] + global.flag[631 recruit_poppup] + global.flag[632 recruit_tasque] + global.flag[633 recruit_plugboy] + global.flag[634 recruit_maus] + global.flag[635 recruit_viro] + global.flag[636 recruit_butler];
6
    if (total_recruits < 7)
7
    {
8
        var trashy_npc = instance_create(1210, 310, obj_npc_room_animated);
9
        with (trashy_npc)
10
        {
11
            sprite_index = spr_npc_trashy;
12
            scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
13
        }
14
    }
15
}
16
if (global.chapter != 2 || global.flag[319 ferris_scene_plot] > 0 || global.plot >= 160)
17
{
18
    instance_destroy();
19
}
20
else
21
{
22
    global.interact = 0;
23
    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; }
(-10, -10, spr_pixel_white);
24
    blackall.image_xscale = 999;
25
    blackall.image_yscale = 999;
26
    blackall.depth = 100;
27
    blackall.image_blend = c_black;
28
    blackall.image_alpha = 0;
29
}