Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_room_teevie_sams_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
goulden_sam = 
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; }
(0, 90, spr_npc_gouldensam);
3
with (goulden_sam)
4
{
5
    
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");
6
    x = 314;
7
    
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)); } }
();
8
}
9
suliver_sam = 
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; }
(325, 90, spr_npc_suliversam);
10
with (suliver_sam)
11
    
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)); } }
();
12
readable = instance_create(goulden_sam.x - 200, goulden_sam.y + 80, obj_readable_room1);
13
with (readable)
14
{
15
    extflag = "sams";
16
    image_xscale = 20;
17
    image_yscale = 2;
18
}
19
collider_left = instance_create(goulden_sam.x - 240, goulden_sam.y + 90, obj_solidblocksized);
20
with (collider_left)
21
    image_xscale = 6;
22
collider_right = instance_create(suliver_sam.x, suliver_sam.y + 90, obj_solidblocksized);
23
with (collider_right)
24
    image_xscale = 6;
25
26
choose_love = function()
27
{
28
    con = 10;
29
    with (readable)
30
        extflag = "love";
31
};
32
33
choose_hate = function()
34
{
35
    con = 20;
36
    with (readable)
37
        extflag = "hate";
38
};