Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_rocksecret_switch_Step_0

(view raw script w/o annotations or w/e)
1
if (active)
2
{
3
    if (con == -1)
4
    {
5
        if (!place_meeting(x, y, obj_pushable_block))
6
        {
7
            con = 1;
8
            timer = 0;
9
        }
10
    }
11
    if (con == 1)
12
    {
13
        image_index = 1;
14
        snd_play_pitch(snd_coin, 1.4);
15
        maildoor = instance_create_board(10, 2, obj_board_warptouch);
16
        maildoor.warpx = 2048;
17
        maildoor.warpy = 64;
18
        maildoor.playerX = 2224;
19
        maildoor.playerY = 288;
20
        maildoor.sprite_index = spr_board_downstairs;
21
        maildoor.visible = true;
22
        maildoor.image_alpha = 1;
23
        maildoor.depth = depth;
24
        
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(maildoor);
25
        rocksecretSwitchString = stringsetloc(
Oh! What was#that sound?
"Oh! What was#that sound?", "obj_board_rocksecret_switch_slash_Step_0_gml_33_0"
);
26
        
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; }
(rocksecretSwitchString, "ralsei", 1, 120);
27
        con = 2;
28
    }
29
}