Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_GSC04B_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
rouxls_npc = instance_create(238, 150, obj_npc_room);
4
with (rouxls_npc)
5
{
6
    extflag = "rouxls";
7
    normalanim = 5;
8
    sprite_index = spr_npc_rouxls_chef_up;
9
    depth = 98000;
10
}
11
elnina_npc = instance_create(337, 140, obj_npc_room_animated);
12
with (elnina_npc)
13
{
14
    extflag = "elnina";
15
    sprite_index = spr_npc_elnina_gaming_up;
16
    
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)); } }
();
17
    image_speed = 0.1;
18
}
19
lanino_npc = instance_create(428, 136, obj_npc_room_animated);
20
with (lanino_npc)
21
{
22
    extflag = "lanino";
23
    sprite_index = spr_npc_lanino_gaming_up;
24
    
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)); } }
();
25
    image_speed = 0.15;
26
}
27
shadow_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; }
(475, 276, spr_shadowman_sax_a);
28
with (shadow_npc)
29
    
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)); } }
();
30
shadow_readable = instance_create(shadow_npc.x + 30, shadow_npc.y + 40, obj_readable_room1);
31
shadow_solid = instance_create(shadow_npc.x + 25, shadow_npc.y + 40, obj_soliddark);
32
with (shadow_solid)
33
{
34
    image_xscale = 1.5;
35
    image_yscale = 2;
36
}
37
with (shadow_readable)
38
{
39
    extflag = "shadow";
40
    image_xscale = 3;
41
    image_yscale = 4;
42
}
43
shadow_play = false;
44
shadow_play_con = 0;
45
shadow_play_times = 0;
46
controller_shine = -4;
47
remove_sparkle = false;
48
if (global.plot < 210)
49
{
50
    con = 0;
51
}
52
else if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; }
(1059) > 0)
53
{
54
    with (rouxls_npc)
55
        instance_destroy();
56
    with (elnina_npc)
57
        instance_destroy();
58
    with (lanino_npc)
59
        instance_destroy();
60
    with (shadow_npc)
61
        instance_destroy();
62
    with (shadow_readable)
63
        instance_destroy();
64
    with (shadow_solid)
65
        instance_destroy();
66
    if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; }
(1060) == 0)
67
    {
68
        controller_shine = instance_create(344, 222, obj_npc_room_animated);
69
        with (controller_shine)
70
        {
71
            extflag = "controller";
72
            sprite_index = spr_shine;
73
            
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)); } }
();
74
            image_speed = 0.1;
75
        }
76
    }
77
}
78
else
79
{
80
}