Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b2atlantis_Step_0

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

function
scr_board_populatevars()
{ if (!variable_instance_exists(id, "kris")) kris = 0; if (!variable_instance_exists(id, "susie")) susie = 0; if (!variable_instance_exists(id, "ralsei")) ralsei = 0; if (kris == 0) { with (obj_mainchara_board) { if (name == "kris") other.kris = id; } } if (ralsei == 0) { with (obj_mainchara_board) { if (name == "ralsei") other.ralsei = id; } } if (susie == 0) { with (obj_mainchara_board) { if (name == "susie") other.susie = id; } } }
();
2
scr_gameshow_populatevars
scr_gameshow_populatevars

function
scr_gameshow_populatevars()
{ if (!variable_instance_exists(id, "kr_real")) kr_real = 0; if (!variable_instance_exists(id, "su_real")) su_real = 0; if (!variable_instance_exists(id, "ra_real")) ra_real = 0; if (!variable_instance_exists(id, "tenna")) tenna = 0; if (kr_real == 0) { with (obj_mainchara) other.kr_real = id; } if (su_real == 0) { with (obj_caterpillarchara) { if (name == "susie") other.su_real = id; } } if (ra_real == 0) { with (obj_caterpillarchara) { if (name == "ralsei") other.ra_real = id; } } if (tenna == 0) { with (obj_actor_tenna) other.tenna = id; } }
();
3
if (active == 1)
4
{
5
    if (invisify == 0)
6
    {
7
        scr_delay_var("invisify", 1, 10);
8
        invisify = -1;
9
    }
10
    if (invisify == 1)
11
    {
12
        with (obj_mainchara_board)
13
        {
14
            canfreemove = false;
15
            stink = false;
16
            visible = false;
17
        }
18
    }
19
    if (con == 0 && obj_board_camera.con == 0)
20
    {
21
        with (obj_b2loverbridge)
22
            talkstop = 1;
23
        if (!i_ex(obj_couchwriter))
24
            con = 1;
25
    }
26
    if (con == 1)
27
    {
28
        timer++;
29
        if (timer == 1)
30
        {
31
        }
32
        if (timer == 10)
33
            mus_fade(global.currentsong[1], 30);
34
        if (timer == 60)
35
        {
36
            ra_real.sprite_index = spr_ralsei_walk_left_unhappy;
37
            var ratalk = stringsetloc(
Huh? It seems pretty dark--
"Huh? It seems pretty dark--", "obj_b2atlantis_slash_Step_0_gml_28_0"
);
38
            
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; }
(ratalk, "ralsei", 2, 60);
39
        }
40
        if (timer == 80)
41
        {
42
            snd_play(snd_impact);
43
            snd_play_x(snd_impact, 0.5, 0.8);
44
            snd_play_x(snd_impact, 0.5, 0.6);
45
            blackout = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(camerax() - 10, cameray() - 10, spr_pxwhite);
46
            blackout.image_blend = c_black;
47
            blackout.image_xscale = 700;
48
            blackout.image_yscale = 700;
49
            blackout.depth = -999;
50
            with (obj_border_controller)
51
                hide_border();
52
        }
53
        if (timer == 100)
54
        {
55
            global.plot = 99;
56
            global.flag[6 disable_text_skip] = 0;
57
            global.flag[7 disable_menu?] = 0;
58
            global.hp[1] = global.maxhp[1];
59
            global.hp[2] = global.maxhp[2];
60
            global.hp[3] = global.maxhp[3];
61
            if (global.plot < 131)
62
                global.plot = 131;
63
            room_goto(room_dw_rhythm);
64
        }
65
    }
66
}
67
else
68
{
69
}