Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_town_library_Create_0

(view raw script w/o annotations or w/e)
1
var lab_collider = instance_create(115, 50, obj_solidblock);
2
lab_collider.image_xscale = 4.25;
3
var lab_interact = instance_create(144, 52, obj_readable_room1);
4
lab_interact.image_xscale = 1.6;
5
if (global.chapter == 1)
6
{
7
    var upstairs_collider = instance_create(200, 60, obj_solidblock);
8
    upstairs_collider.image_xscale = 4;
9
}
10
if (global.chapter == 2)
11
{
12
    if (i_ex(obj_npc_facing))
13
    {
14
        with (obj_npc_facing)
15
            instance_destroy();
16
    }
17
    if (i_ex(obj_npc_room))
18
    {
19
        with (obj_npc_room)
20
            instance_destroy();
21
    }
22
    if (global.plot >= 205 && !(
scr_sideb_get_phase
scr_sideb_get_phase

function
scr_sideb_get_phase()
{ var phase = 0; if (global.flag[916 snowgrave_fail] == 0) { if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4) phase = 1; if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7) phase = 2; if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20) phase = 3; if (global.flag[915 snowgrave_plot] >= 20) phase = 4; } return phase; }
() >= 3))
23
    {
24
    }
25
}