Deltarune script viewer

← back to main script listing

gml_Object_obj_ch2_room_cyber_shop_Create_0

(view raw script w/o annotations or w/e)
1
if (global.plot < 100)
2
{
3
    plugboy_npc = instance_create(420, 270, obj_npc_room)
4
    plugboy_npc.sprite_index = spr_npc_plugboy_bandana
5
    with (plugboy_npc)
6
        scr_depth
scr_depth

function scr_depth() //gml_Script_scr_depth { depth = 100000 - (y * 10 + sprite_height * 10) }
()
7
}
8
else
9
    instance_destroy()