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() //gml_Script_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
    instance_destroy()
18
else
19
{
20
    global.interact = 0
21
    blackall = scr_dark_marker
scr_dark_marker

function scr_dark_marker(argument0, argument1, argument2) //gml_Script_scr_dark_marker { thismarker = instance_create(argument0, argument1, obj_marker) with (thismarker) { sprite_index = argument2 image_speed = 0 image_xscale = 2 image_yscale = 2 } return thismarker; }
(-10, -10, spr_pixel_white)
22
    blackall.image_xscale = 999
23
    blackall.image_yscale = 999
24
    blackall.depth = 100
25
    blackall.image_blend = c_black
26
    blackall.image_alpha = 0
27
}