Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_lancerbakesale_event_Create_0

(view raw script w/o annotations or w/e)
1
con = 1;
2
npc = instance_create(x, y, obj_npc_room);
3
if (global.plot >= 80 || global.flag[238 susie_bought_snack] == 1)
4
{
5
    con = 99;
6
}
7
else
8
{
9
    s = 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; }
(x + 20, y + 60, spr_susied_dark);
10
    with (s)
11
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
12
    l = 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; }
(x + 60, y + 80, spr_lancer_dt);
13
    with (l)
14
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
15
}