Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_room_castle_dojo_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
var dojo_npc = instance_create(290, 220, obj_npc_dojo);
3
with (dojo_npc)
4
{
5
    sprite_index = spr_npc_puzzlepiece_cringe;
6
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
7
    image_xscale = 2;
8
    image_yscale = 2;
9
}
10
puzzle_master_npc = -4;
11
puzzle_master_blush = false;
12
if (global.chapter < 4)
13
{
14
    puzzle_master_npc = instance_create(130, 80, obj_npc_puzzlemaster2);
15
    with (puzzle_master_npc)
16
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
17
}
18
else
19
{
20
    puzzle_master_npc = instance_create(130, 80, obj_npc_room);
21
    with (puzzle_master_npc)
22
    {
23
        extflag = "puzzlemaster";
24
        sprite_index = spr_puzzlemaster_frown;
25
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
26
    }
27
}
28
var desk_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; }
(84, 112, bg_dw_dojo_help_desk);
29
desk_marker.depth = puzzle_master_npc.depth - 10;
30
var desk_collider = instance_create(84, 115, obj_soliddark);
31
desk_collider.image_xscale = 4;
32
desk_collider.image_yscale = 1.5;
33
var help_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; }
(115, 30, bg_dw_dojo_help);
34
if (global.chapter == 4)
35
{
36
    help_marker.sprite_index = spr_castle_dojo_sign_love;
37
    help_marker.image_xscale = 2;
38
    help_marker.image_yscale = 2;
39
}
40
with (help_marker)
41
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
42
var clover_npc = instance_create(370, 248, obj_npc_room);
43
clover_npc.sprite_index = spr_clubs_idle;
44
with (clover_npc)
45
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
46
var capn_npc = instance_create(460, 230, obj_npc_room_animated);
47
capn_npc.sprite_index = spr_hatguy_idle;
48
with (capn_npc)
49
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
50
var blockguy_npc = instance_create(404, 30, obj_npc_room);
51
blockguy_npc.sprite_index = spr_npc_bloxer_heart;
52
with (blockguy_npc)
53
{
54
    extflag = "bloxer";
55
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
56
}
57
var pippins_npc = instance_create(350, 100, obj_npc_room);
58
pippins_npc.sprite_index = spr_npc_pippins;
59
with (pippins_npc)
60
    
scr_depth
scr_depth

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