Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_npc_castle_cafe_Create_0

(view raw script w/o annotations or w/e)
1
var jukebox = 
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; }
(44, 82, bg_dw_castle_cafe_juke);
2
with (jukebox)
3
    
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)); } }
();
4
var table_a = 
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; }
(42, 230, bg_dw_castle_cafe_table);
5
with (table_a)
6
    
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)); } }
();
7
var table_b = 
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; }
(260, 230, bg_dw_castle_cafe_table);
8
with (table_b)
9
    
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)); } }
();
10
var table_c = 
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; }
(140, 325, bg_dw_castle_cafe_table);
11
with (table_c)
12
    
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)); } }
();
13
var table_collider_a = instance_create(table_a.x + 8, table_a.y + 10, obj_soliddark);
14
table_collider_a.image_xscale = 1.9;
15
table_collider_a.image_yscale = 1.3;
16
var table_collider_b = instance_create(table_b.x + 8, table_b.y + 10, obj_soliddark);
17
table_collider_b.image_xscale = 1.9;
18
table_collider_b.image_yscale = 1.3;
19
var table_collider_c = instance_create(table_c.x + 8, table_c.y + 10, obj_soliddark);
20
table_collider_c.image_xscale = 1.9;
21
table_collider_c.image_yscale = 1.3;
22
var counter = 
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; }
(365, 110, bg_dw_castle_cafe_counter);
23
counter.depth = 98000;
24
tm_con = -1;
25
t_con = -1;
26
if (global.chapter == 1)
27
{
28
    var topchef = instance_create(395, 70, obj_npc_room);
29
    topchef.sprite_index = spr_topchef;
30
}
31
if (global.chapter >= 2)
32
{
33
    if (global.chapter == 2 && global.plot < 200)
34
    {
35
        var topchef = instance_create(405, 70, obj_npc_room);
36
        topchef.sprite_index = spr_topchef;
37
    }
38
    else
39
    {
40
        var swatchlingA = instance_create(418, 62, obj_npc_room);
41
        swatchlingA.sprite_index = spr_npc_swatchling_cafe;
42
        with (swatchlingA)
43
            
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)); } }
();
44
        if (global.flag[636 recruit_butler] == 1)
45
        {
46
            var swatchlingB = instance_create(517, 187, obj_npc_room);
47
            swatchlingB.sprite_index = spr_npc_swatchling_down;
48
            with (swatchlingB)
49
                
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)); } }
();
50
        }
51
        if (global.flag[642 recruit_task_manager] == 1 && global.flag[632 recruit_tasque] == 1)
52
        {
53
            var tm = instance_create(237, 23, obj_npc_room);
54
            tm.sprite_index = spr_npc_tasquemanager;
55
            tm.image_xscale = -2;
56
        }
57
        if (global.flag[632 recruit_tasque] == 1)
58
        {
59
            var tasqueA = instance_create(255, 63, obj_npc_room);
60
            tasqueA.sprite_index = spr_tasque_idle;
61
        }
62
    }
63
}