Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_town_diner_Create_0

(view raw script w/o annotations or w/e)
1
if (global.chapter >= 2)
2
{
3
    var tallhat = instance_create(185, 95, obj_npc_room);
4
    tallhat.sprite_index = spr_npc_most_improved_1997_ch2;
5
    if (global.chapter >= 4)
6
        tallhat.sprite_index = spr_npc_most_improved_1997_ch4;
7
    if (global.chapter == 2)
8
    {
9
        with (obj_caterpillarchara)
10
        {
11
            follow = 0;
12
            visible = 0;
13
        }
14
        var aaron = instance_create(200, 95, obj_npc_room);
15
        aaron.sprite_index = spr_npc_aaron;
16
        var catti_mom = instance_create(36, 74, obj_npc_room_animated);
17
        catti_mom.sprite_index = spr_npc_catti_mom_no1;
18
        with (catti_mom)
19
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
20
        var catty_dad = instance_create(42, 120, obj_npc_room);
21
        catty_dad.sprite_index = spr_npc_catti_dad_diner;
22
        var catti = instance_create(240, 152, obj_npc_room_animated);
23
        catti.sprite_index = spr_npc_catty_ukelele;
24
        catti.depth = 4000;
25
        var jo = instance_create(240, 175, obj_npc_room);
26
        jo.sprite_index = spr_jockington_lt;
27
        var ficus = instance_create(55, 160, obj_npc_room);
28
        ficus.sprite_index = spr_npc_ficus;
29
        var diner_table = 
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; }
(7, 172, bg_diner_table);
30
        diner_table.depth = ficus.depth - 100;
31
        var seat_back = 
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; }
(236, 212, bg_diner_seat_back);
32
        seat_back.depth = jo.depth - 100;
33
    }
34
    if (global.chapter == 4)
35
    {
36
        nicecream_turn = true;
37
        nicecream_talk = false;
38
        nicecream_turn_timer = 0;
39
        bratty_turn = true;
40
        bratty_talk = false;
41
        bratty_turn_timer = 0;
42
        var hot_food = instance_create(108, 112, obj_diner_hot_food);
43
        var diner_table = 
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; }
(7, 172, bg_diner_table);
44
        with (diner_table)
45
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
46
        nicecream = 
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; }
(22, 180, spr_npc_nicecream_turn_back);
47
        nicecream.depth = diner_table.depth - 10;
48
        bratty = 
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; }
(45, 185, spr_npc_bratty_turn_back);
49
        bratty.depth = diner_table.depth - 10;
50
        bratty_readable = instance_create(bratty.x + 8, bratty.y + 12, obj_readable_room1);
51
        var seat_back = 
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; }
(16, 212, bg_diner_seat_back_left);
52
        seat_back.depth = bratty.depth - 100;
53
        var dresslion_npc = instance_create(245, 155, obj_npc_room);
54
        with (dresslion_npc)
55
        {
56
            depth = 97990;
57
            sprite_index = spr_npc_dresslion_alt;
58
        }
59
        var slime_npc = instance_create(275, 155, obj_npc_room);
60
        with (slime_npc)
61
        {
62
            depth = 97990;
63
            sprite_index = spr_npc_shamblingmass;
64
        }
65
        var froggit_npc = instance_create(159, 123, obj_npc_room);
66
        with (froggit_npc)
67
        {
68
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
69
            sprite_index = spr_npc_froggit_sit_up;
70
        }
71
        var table_marker = 
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; }
(241, 179, bg_diner_table_right);
72
        table_marker.depth = dresslion_npc.depth - 10;
73
        var icee = instance_create(200, 170, obj_npc_room_animated);
74
        icee.sprite_index = spr_npc_icee_suit_platter;
75
        with (icee)
76
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
77
    }
78
}
79
else
80
{
81
    instance_destroy();
82
}