Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_castle_tutorial_Create_0

(view raw script w/o annotations or w/e)
1
layer_set_visible("TILES_Checkboard", false);
2
if (global.chapter >= 2)
3
{
4
    var coody = instance_create(772, 194, obj_npc_room);
5
    coody.sprite_index = spr_npc_coody;
6
    coody.image_xscale = -2;
7
    with (coody)
8
        
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)); } }
();
9
    var elegance = instance_create(494, 86, obj_npc_room);
10
    elegance.sprite_index = spr_npc_mrelegance;
11
    elegance.image_xscale = -2;
12
    with (elegance)
13
        
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)); } }
();
14
    layer_set_visible("TILES_Checkboard", true);
15
    var mannequin = instance_create(834, 150, obj_npc_room);
16
    mannequin.sprite_index = spr_mannequin_ralsei;
17
    with (mannequin)
18
        
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)); } }
();
19
    var addison = instance_create(900, 156, obj_npc_room);
20
    addison.sprite_index = spr_npc_addison_blue;
21
    with (addison)
22
        
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)); } }
();
23
    if (scr_get_total_recruits(2) >= 9)
24
    {
25
        var music_shop = 
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; }
(605, 6, bg_dw_castle_music_shop);
26
        with (music_shop)
27
            
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)); } }
();
28
        var music_shop_solid1 = instance_create(633, 112, obj_solidblocksized);
29
        music_shop_solid1.image_xscale = 0.525;
30
        music_shop_solid1.image_yscale = 1.5;
31
        var music_shop_solid2 = instance_create(710, 120, obj_solidblocksized);
32
        music_shop_solid2.image_xscale = 1.675;
33
        music_shop_solid2.image_yscale = 1.3;
34
        var music_door = instance_create(music_shop.x + 35, music_shop.y + 120, obj_doorw_musfade);
35
        music_door.image_xscale = 4;
36
        music_door.image_yscale = 2;
37
    }
38
    else
39
    {
40
        sweetnpc = instance_create(598, 41, obj_npc_room_animated);
41
        sweetnpc.sprite_index = spr_npc_sweet;
42
        with (sweetnpc)
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
        capnnpc = instance_create(670, 74, obj_npc_room_animated);
45
        capnnpc.sprite_index = spr_npc_hatguy;
46
        with (capnnpc)
47
            
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)); } }
();
48
        kknpc = instance_create(743, 28, obj_npc_room_animated);
49
        kknpc.sprite_index = spr_npc_kk;
50
        with (kknpc)
51
            
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)); } }
();
52
    }
53
}
54
else
55
{
56
    instance_destroy();
57
}