Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_room_castle_susie_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
if (global.flag[393 stole_susie_statue] == 1)
3
{
4
    var susie_statue = instance_create(416, 224, obj_npc_sign);
5
    susie_statue.sprite_index = spr_dw_susie_statue;
6
    susie_statue.setdepth = 0;
7
    susie_statue.depth = 97000;
8
}
9
if (global.flag[307 fave_party_member] == 2)
10
{
11
    var susie_plush = instance_create(317, 143, obj_npc_sign);
12
    susie_plush.sprite_index = spr_dw_susie_plush;
13
    with (susie_plush)
14
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
15
}