Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b3bs_ribbick_trash_Create_0

(view raw script w/o annotations or w/e)
1
visible = 0;
2
radius = 90;
3
con = 0;
4
image_xscale = 2;
5
image_yscale = 2;
6
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
7
depth += 19;
8
encounterno = 126;
9
encounterflag = 586;
10
if (global.flag[encounterflag] != 0)
11
{
12
    debug_message(string(object_get_name(object_index)) + " destroyed because global.flag[" + string(encounterflag) + "]=" + string(global.flag[encounterflag]));
13
    with (
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, y, sprite_index))
14
    {
15
        image_speed = 0;
16
        image_index = 1;
17
        depth = other.depth;
18
    }
19
    instance_destroy();
20
}