Deltarune (Chapter 3) script viewer

← back to main script listing

gml_GlobalScript_scr_board_sword_repeat

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

function
scr_board_sword_repeat()
{ timer++; if (timer == 1) { with (obj_board_squaretransition) instance_destroy(); obj_mainchara_board.facing = 2; global.interact = 1; with (instance_create(board_tilex(0), board_tiley(-1), obj_puzzlecloset_tvturnon)) { width = 384; height = 288; } } if (timer == 15) { if (room == room_board_1_sword || room == room_board_2_sword || room == room_board_3_sword)
scr_musicer("board_ocean.ogg", 1, undefined, undefined, 60);
with (obj_puzzlecloset_tvturnon) turnon = true; snd = snd_play_x(snd_tv_poweron, 0.4, 0.5); snd_volume(snd, 0, 15); snd = snd_play_x(snd_tv_poweron, 0.6, 2); snd_volume(snd, 0, 15); } if (timer == 18) { with (obj_board_screenColorChanger) { if (x >= 128 && x <= 512 && y >= 64 && y <= 320) { init = 0; force = 8; active = 1; roomstart = 60; } } } if (timer < 30) global.interact = 1; if (timer == 30) { global.swordboardeath = 0; global.interact = 0; con++; } }
()
2
{
3
    timer++;
4
    if (timer == 1)
5
    {
6
        with (obj_board_squaretransition)
7
            instance_destroy();
8
        obj_mainchara_board.facing = 2;
9
        global.interact = 1;
10
        with (instance_create(board_tilex(0), board_tiley(-1), obj_puzzlecloset_tvturnon))
11
        {
12
            width = 384;
13
            height = 288;
14
        }
15
    }
16
    if (timer == 15)
17
    {
18
        if (room == room_board_1_sword || room == room_board_2_sword || room == room_board_3_sword)
19
            
scr_musicer
scr_musicer

function
scr_musicer(arg0 = "dogcheck.ogg", arg1 = 0.7, arg2 = 1, arg3 = 0, arg4 = -1)
{ var musicer = instance_create_depth(0, 0, 0, obj_musicer_gen); musicer.song = arg0; musicer.volume = arg1; musicer.pitch = arg2; musicer.delay = arg3; musicer.fadein = arg4; return musicer; }
("board_ocean.ogg", 1, undefined, undefined, 60);
20
        with (obj_puzzlecloset_tvturnon)
21
            turnon = true;
22
        snd = snd_play_x(snd_tv_poweron, 0.4, 0.5);
23
        snd_volume(snd, 0, 15);
24
        snd = snd_play_x(snd_tv_poweron, 0.6, 2);
25
        snd_volume(snd, 0, 15);
26
    }
27
    if (timer == 18)
28
    {
29
        with (obj_board_screenColorChanger)
30
        {
31
            if (x >= 128 && x <= 512 && y >= 64 && y <= 320)
32
            {
33
                init = 0;
34
                force = 8;
35
                active = 1;
36
                roomstart = 60;
37
            }
38
        }
39
    }
40
    if (timer < 30)
41
        global.interact = 1;
42
    if (timer == 30)
43
    {
44
        global.swordboardeath = 0;
45
        global.interact = 0;
46
        con++;
47
    }
48
}