Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_b2entrance_animatecamera_Step_0

(view raw script w/o annotations or w/e)
1
if (active)
2
{
3
    if (con == 0)
4
    {
5
        if (type == 1)
6
            visible = 0;
7
        if (i_ex(obj_board_grayregion))
8
        {
9
            if (place_meeting(x, y, obj_board_grayregion))
10
            {
11
                visible = 1;
12
                if (photod == 0)
13
                {
14
                    if (amount > 0)
15
                    {
16
                        var pointsDisplay = instance_create(x + 16, y + 32, obj_board_pointsGetDisplay);
17
                        pointsDisplay.amount = other.amount;
18
                        pointsDisplay.depth = 900000;
19
                    }
20
                    photod = 1;
21
                }
22
                
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_index", 0, 8, 15);
23
                con = 1;
24
            }
25
        }
26
    }
27
    if (type == 0)
28
    {
29
        if (con == 1 && image_index >= 8 && !i_ex(obj_board_grayregion))
30
            con = 0;
31
        var photocount = global.flag[1041 got_half_flower] + global.flag[1042 got_spring_photo];
32
        if (i_ex(obj_b2pantheonentrance))
33
        {
34
            if (obj_b2pantheonentrance.con < 2)
35
                photocount++;
36
        }
37
        visible = true;
38
        if (photocount >= 3)
39
            visible = false;
40
    }
41
    if (type == 1)
42
    {
43
        if (con == 1 && !i_ex(obj_board_grayregion))
44
        {
45
            con = 0;
46
            visible = false;
47
        }
48
    }
49
}