Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_room_castle_lancer_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
var dozer_marker = instance_create(940, 47, obj_npc_room);
3
dozer_marker.sprite_index = spr_dogdozer;
4
with (dozer_marker)
5
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
6
var dozer_collider = instance_create(dozer_marker.x, dozer_marker.y + 60, obj_solidblockDark);
7
with (dozer_collider)
8
    image_xscale = 4;
9
tasque_npc = -4;
10
tasque_alt = 0;
11
tasque_target = 0;
12
maus_npc = -4;
13
maus_alt = 0;
14
maus_target = 0;
15
poppup_npc = -4;
16
poppup_alt = 0;
17
poppup_target = 0;
18
lancer_npc = instance_create(793, 92, obj_npc_room);
19
with (lancer_npc)
20
{
21
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
22
    sprite_index = spr_npc_lancer_construction;
23
}
24
elegant_npc = instance_create(869, 92, obj_npc_room);
25
with (elegant_npc)
26
{
27
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
28
    sprite_index = spr_npc_mr_elegance_construction;
29
}
30
if (global.flag[611 recruit_ponman] == 1)
31
{
32
    ponman_npc = instance_create(665, 268, obj_npc_room_animated);
33
    with (ponman_npc)
34
    {
35
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
36
        sprite_index = spr_ponman_idle;
37
    }
38
}
39
if (global.flag[632 recruit_tasque] == 1)
40
{
41
    tasque_npc = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(890, 348, spr_tasque_idle_overworld);
42
    with (tasque_npc)
43
    {
44
        depth = 96500;
45
        image_speed = 0.2;
46
    }
47
    tasque_target = tasque_npc.xstart;
48
    tasque_readable = instance_create(tasque_npc.x - 120, tasque_npc.y - 40, obj_readable_room1);
49
    with (tasque_readable)
50
    {
51
        image_xscale = 3;
52
        image_yscale = 2;
53
    }
54
}
55
if (global.flag[634 recruit_maus] == 1)
56
{
57
    maus_npc = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(880, 188, spr_npc_maus_idle_overworld);
58
    with (maus_npc)
59
    {
60
        depth = 98060;
61
        image_speed = 0.2;
62
    }
63
    maus_target = maus_npc.xstart;
64
    maus_readable = instance_create(maus_npc.x - 120, maus_npc.y - 20, obj_readable_room1);
65
    with (maus_readable)
66
        image_xscale = 2;
67
}
68
if (global.flag[631 recruit_poppup] == 1)
69
{
70
    poppup_npc = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(924, 297, spr_npc_poppup_idle_overworld);
71
    with (poppup_npc)
72
    {
73
        depth = 97000;
74
        image_speed = 0.2;
75
    }
76
    poppup_target = poppup_npc.xstart;
77
    poppup_readable = instance_create(poppup_npc.x - 120, poppup_npc.y - 80, obj_readable_room1);
78
    with (poppup_readable)
79
    {
80
        image_xscale = 3;
81
        image_yscale = 3;
82
    }
83
}
84
if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; } function scr_flag_name_get(arg0) { if (!global.is_console) { var v = global.flagname[arg0]; return is_undefined(v) ? "*unknown flag*" : v; } else { return ""; } } function scr_getflag(arg0) { return
scr_flag_get(arg0);
}
(357) > 0)
85
{
86
    hacker_npc = instance_create(740, 254, obj_npc_room_animated);
87
    with (hacker_npc)
88
    {
89
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
90
        sprite_index = spr_npc_hacker_grass;
91
        image_speed = 0.1;
92
    }
93
}
94
if (global.flag[636 recruit_butler] == 1)
95
{
96
    swatchling_npc = instance_create(656, 26, obj_npc_room_animated);
97
    with (swatchling_npc)
98
    {
99
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
100
        sprite_index = spr_npc_swatchling_peck;
101
    }
102
}