Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_npc_dumpster_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
con = -1;
3
moss_con = -1;
4
shine = -1;
5
if (
scr_sideb_get_phase
scr_sideb_get_phase

function
scr_sideb_get_phase()
{ var phase = 0; if (global.flag[916 snowgrave_fail] == 0) { if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4) phase = 1; if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7) phase = 2; if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20) phase = 3; if (global.flag[915 snowgrave_plot] >= 20) phase = 4; } return phase; }
() == 0 && global.flag[920 got_ch2_moss] == 0)
6
{
7
    shine = 
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; }
(134, 214, spr_shine);
8
    with (shine)
9
    {
10
        
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
11
        image_speed = 0.1;
12
    }
13
}