Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_b2cameraglow_Step_0

(view raw script w/o annotations or w/e)
1
if (active)
2
{
3
    var photocount = global.flag[1041 got_half_flower] + global.flag[1042 got_spring_photo] + global.flag[1043 got_cactus_photo] + global.flag[1227 got_antlion_photo];
4
    if (obj_b2raftget.con != 0)
5
        photocount = 0;
6
    if (photocount >= 3)
7
    {
8
        depth = 999979;
9
        if (notify == 0 && obj_board_camera.con == 0)
10
        {
11
            var tetalk = stringsetloc(
The SHRINE is ASHINE! What could it mean!?
"The SHRINE is ASHINE! What could it mean!?", "obj_board_b2cameraglow_slash_Step_0_gml_14_0"
);
12
            
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(tetalk, "tenna", 2, 180);
13
            with (obj_actor_tenna)
14
                bounce = 1;
15
            notify = 1;
16
        }
17
        timer++;
18
        image_index = abs(sin(timer / 15) * 4) - 1;
19
        image_index = clamp(image_index, 0, 3);
20
    }
21
    else
22
    {
23
        depth = 999999;
24
        image_index = 0;
25
    }
26
}
27
else
28
{
29
    timer = 0;
30
    image_index = 0;
31
}