Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_GSC04C_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
if (global.plot < 215)
4
{
5
    con = 0;
6
    rouxls = 
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; }
(266, 80, spr_rouxls_chef);
7
    with (rouxls)
8
    {
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
        visible = 0;
11
    }
12
    release_rouxls = false;
13
    rouxls_appear = -4;
14
    rouxls_appear_timer = 0;
15
    blackall = 
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; }
(-10, -10, spr_pixel_white);
16
    blackall.image_xscale = 999;
17
    blackall.image_yscale = 999;
18
    blackall.depth = 100;
19
    blackall.image_blend = c_black;
20
    blackall.image_alpha = 0;
21
}
22
else
23
{
24
    var elnina_npc = instance_create(325, 95, obj_npc_room);
25
    with (elnina_npc)
26
    {
27
        extflag = "elnina";
28
        sprite_index = spr_npc_elnina_blush_talk;
29
        
scr_flip
scr_flip

function
scr_flip(arg0)
{ if (arg0 == "h" || arg0 == "x") { x += ((sprite_get_width(sprite_index) - (sprite_get_xoffset(sprite_index) * 2)) * image_xscale); image_xscale = -image_xscale; } else { y += ((sprite_get_height(sprite_index) - (sprite_get_yoffset(sprite_index) * 2)) * image_yscale); image_yscale = -image_yscale; } }
("x");
30
        
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)); } }
();
31
    }
32
    var lanino_npc = instance_create(418, 97, obj_npc_room);
33
    with (lanino_npc)
34
    {
35
        extflag = "lanino";
36
        sprite_index = spr_npc_lanino_blush_talk;
37
        
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)); } }
();
38
    }
39
    instance_destroy();
40
}