Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_room_castle_town_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
var book_pillar = instance_create(640, 265, obj_npc_sign);
3
book_pillar.sprite_index = spr_castle_book_pillar;
4
with (book_pillar)
5
{
6
    image_xscale = 2;
7
    image_yscale = 2;
8
    
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)); } }
();
9
}
10
if (global.plot >= 200 && global.flag[443 told_save_town] == 0)
11
    con = 0;
12
else
13
    instance_destroy();