Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_b3camerashop_pippins_Step_0

(view raw script w/o annotations or w/e)
1
scr_depth_board
scr_depth_board

function
scr_depth_board()
{ depth = 1000000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); } function scr_board_depth() {
scr_depth_board();
}
();
2
if (place_meeting(x, y, obj_mainchara_board))
3
    event_user(0);
4
buffer--;
5
if (myinteract == 3)
6
{
7
    buffer = 3;
8
    if (con == 0)
9
    {
10
        global.interact = 1;
11
        
scr_board_score
scr_board_score

function
scr_board_score(arg0)
{ var scoreadder = instance_create(x, y, obj_board_scoreAdder); scoreadder.scoreamount = arg0; if (argument_count == 2) scoreadder.mysnd = argument1; } function scr_board_score_set(arg0) { global.flag[1044 points] = arg0; }
(-100);
12
        global.flag[1117 points_spent] += 100;
13
        timer = 0;
14
        con = 1;
15
    }
16
}
17
if (con == 1)
18
{
19
    timer++;
20
    if (timer == 15)
21
        
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; }
("y", y, y - 32, 20, 2, "in");
22
    if (timer == 65)
23
    {
24
        snd_play_x(snd_board_mantle_dash_fast, 1, 1.8);
25
        snd_play_x(snd_board_splash, 0.4, 1.8);
26
        
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 - 320, 20);
27
    }
28
    if (timer == 85)
29
    {
30
        global.interact = 0;
31
        safe_delete(mysolid);
32
        instance_destroy();
33
    }
34
    if (x < (board_tilex(0) - 32))
35
    {
36
        with (obj_b3camerashop)
37
            pipstring = pipstring2;
38
    }
39
}
40
if (i_ex(mysolid))
41
{
42
    mysolid.x = x;
43
    mysolid.y = y - 4;
44
}