Deltarune script viewer

← back to main script listing

gml_Object_obj_ch2_room_town_south_alphys_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
cutscene_master = noone;
3
leaveCounter = 0;
4
susiewaiting = false;
5
nisesusie = -1;
6
susxpos = 0;
7
susypos = 0;
8
if (global.chapter != 2)
9
{
10
    instance_destroy();
11
}
12
else
13
{
14
    alphys = instance_create(150, 100, obj_npc_sign);
15
    alphys.sprite_index = spr_alphysd;
16
    alphysbike = instance_create(177, 110, obj_npc_sign);
17
    alphysbike.sprite_index = spr_npc_alphys_bike_broken;
18
    if (global.flag[336 susie_avoid_alphys] == 1)
19
    {
20
        nisesusie = scr_marker
scr_marker

function scr_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(310, 125, spr_susie_walk_left_lw);
21
        with (nisesusie)
22
            scr_depth
scr_depth

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