Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_room_teevie_sams_Step_0

(view raw script w/o annotations or w/e)
1
if (con < 0)
2
    exit;
3
if (con == 10 && global.interact == 0)
4
{
5
    con = 11;
6
    alarm[0]
 = 45;
gml_Object_obj_room_teevie_sams_Alarm_0.gml

con++;
7
    global.interact = 1;
8
    snd_play(snd_coaster_kiss);
9
    with (goulden_sam)
10
    {
11
        sprite_index = spr_npc_gouldensam_kissy;
12
        x += 6;
13
    }
14
    with (suliver_sam)
15
    {
16
        sprite_index = spr_npc_suliversam_kissy;
17
        x -= 6;
18
    }
19
    var flyingheart = 
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; }
(camerax() + (view_wport[0] / 2), 190, spr_shadowman_sharpshoot_heart);
20
    with (flyingheart)
21
    {
22
        image_xscale = 0.5;
23
        image_yscale = 0.5;
24
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("image_alpha", 3, 0, 30, 0, "in");
25
        speed = 4 + random(2);
26
        direction = 90;
27
        friction = 0.3;
28
        
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, 60);
29
    }
30
}
31
if (con == 12)
32
{
33
    con = 13;
34
    alarm[0]
 = 90;
gml_Object_obj_room_teevie_sams_Alarm_0.gml

con++;
35
    snd_play(snd_crowd_cheer_single);
36
    snd_play(snd_won);
37
    var _word_fx = instance_create(0, 0, obj_dw_teevie_sams_word_fx);
38
    with (_word_fx)
39
    {
40
        init(stringsetloc(
LOVE WINS
"LOVE WINS", "obj_room_teevie_sams_slash_Step_0_gml_51_0"
), true);
41
        depth = 9000;
42
    }
43
}
44
if (con == 14)
45
{
46
    con = -1;
47
    global.interact = 0;
48
}
49
if (con == 20 && global.interact == 0)
50
{
51
    con = 21;
52
    alarm[0]
 = 15;
gml_Object_obj_room_teevie_sams_Alarm_0.gml

con++;
53
    global.interact = 1;
54
    with (goulden_sam)
55
        sprite_index = spr_npc_gouldensam_angry;
56
}
57
if (con == 22)
58
{
59
    con = 23;
60
    alarm[0]
 = 90;
gml_Object_obj_room_teevie_sams_Alarm_0.gml

con++;
61
    with (goulden_sam)
62
    {
63
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, x - 60, 15, 3, "in");
64
        
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_lerpvar, 30, "x", x - 60, x + 130, 15, -2, "out");
65
    }
66
    with (suliver_sam)
67
    {
68
        
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
("sprite_index", spr_npc_suliversam_knockout, 30);
69
        
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_lerpvar, 30, "x", x, x + 380, 15, 3, "out");
70
    }
71
    snd_play(snd_wing);
72
    
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(snd_play, 28, snd_punchmed);
73
    
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(snd_play, 46, snd_glassbreak);
74
}
75
if (con == 24)
76
{
77
    con = 25;
78
    alarm[0]
 = 60;
gml_Object_obj_room_teevie_sams_Alarm_0.gml

con++;
79
    snd_play(snd_hurt1);
80
    snd_play(snd_crowd_gasp);
81
    var _word_fx = instance_create(0, 0, obj_dw_teevie_sams_word_fx);
82
    with (_word_fx)
83
    {
84
        init(stringsetloc(
HATE WINS
"HATE WINS", "obj_room_teevie_sams_slash_Step_0_gml_111_0"
), false);
85
        depth = 9000;
86
    }
87
    readable.x = goulden_sam.x - 200;
88
    with (readable)
89
        image_xscale = 8;
90
    collider_left.x = goulden_sam.x - 240;
91
    with (collider_right)
92
        instance_destroy();
93
}
94
if (con == 26)
95
{
96
    con = -1;
97
    global.interact = 0;
98
}