Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_room_castle_kris_Create_0

(view raw script w/o annotations or w/e)
1
if (global.flag[394 stole_ice_e_statue] == 1)
2
{
3
    icee_cushion = instance_create(128, 224, obj_npc_sign);
4
    icee_cushion.sprite_index = spr_dw_icee_cushion;
5
    icee_cushion.setdepth = 0;
6
    icee_cushion.depth = 97000;
7
}
8
if (global.flag[106 ate_ch1_moss] == 1)
9
{
10
    moss_readable = instance_create(470, 386, obj_readable_room1);
11
    moss = scr_marker
scr_marker

function scr_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(460, 366, spr_dw_kris_room_moss);
12
    with (moss)
13
        depth = 900000;
14
}
15
if (global.flag[207 dropped_manual] >= 2)
16
{
17
    trash = scr_marker
scr_marker

function scr_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(301, 108, bg_dw_kris_room_trash);
18
    with (trash)
19
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
20
}
21
else
22
{
23
    manual_stand = scr_marker
scr_marker

function scr_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(301, 108, bg_dw_kris_room_manual_stand);
24
    with (manual_stand)
25
        scr_depth
scr_depth

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