Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_room_city_savepoint_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
if (global.plot < 75)
3
    global.plot = 75;
4
if (global.plot < 100)
5
{
6
    capntalked = 0;
7
    sweetnpc = instance_create(210, 100, obj_npc_room_animated);
8
    sweetnpc.sprite_index = spr_npc_sweet;
9
    with (sweetnpc)
10
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
11
    capnnpc = instance_create(282, 133, obj_npc_room_animated);
12
    capnnpc.sprite_index = spr_npc_hatguy;
13
    with (capnnpc)
14
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
15
    kknpc = instance_create(355, 83, obj_npc_room_animated);
16
    kknpc.sprite_index = spr_npc_kk;
17
    with (kknpc)
18
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
19
}
20
else
21
{
22
    plugboy_npc = instance_create(288, 144, obj_npc_room);
23
    plugboy_npc.sprite_index = spr_npc_plugboy_bandana;
24
    with (plugboy_npc)
25
        scr_depth
scr_depth

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