Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b1pyramid_rouxlsjoke_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0 && obj_board_camera.con == 0)
2
{
3
    init = 1;
4
    rouxls = instance_create(x + 128, y + 96, obj_board_solid);
5
    rouxls.sprite_index = spr_board_rouxls;
6
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(rouxls);
7
    with (rouxls)
8
        scr_board_depth();
9
    rouxls.visible = true;
10
    pyramid = instance_create(x + 160, y + 96, obj_board_solid);
11
    pyramid.sprite_index = spr_board_evensmallerpyramid;
12
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(pyramid);
13
    with (pyramid)
14
        scr_board_depth();
15
    pyramid.visible = true;
16
}
17
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; } } }
();
18
if (tenna == 0)
19
{
20
    with (obj_actor_tenna)
21
        other.tenna = id;
22
}
23
if (susiereal == 0)
24
{
25
    with (obj_caterpillarchara)
26
    {
27
        if (name == "susie")
28
            other.susiereal = id;
29
    }
30
}
31
if (ralseireal == 0)
32
{
33
    with (obj_caterpillarchara)
34
    {
35
        if (name == "ralsei")
36
            other.ralseireal = id;
37
    }
38
}
39
if (krisreal == 0)
40
{
41
    with (obj_mainchara)
42
        other.krisreal = id;
43
}
44
if (active == 1)
45
{
46
    if (visit == 0)
47
    {
48
        visit = 1;
49
        kris.cantleave = true;
50
    }
51
    if (con == 0 && obj_board_camera.con == 0)
52
    {
53
        timer++;
54
        if (timer == 1)
55
        {
56
            kris.cantleave = true;
57
            var talk = stringsetloc(
THE SMALL#PYRAMID!!!
"THE SMALL#PYRAMID!!!", "obj_b1pyramid_rouxlsjoke_slash_Step_0_gml_46_0"
);
58
            
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; }
(talk, "susie", 2, 60);
59
            
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; }
(talk, "ralsei", 2, 60);
60
        }
61
        if (timer == 45)
62
        {
63
            tenna.bounce = 1;
64
            var tetalk = stringsetloc(
Who left that there!!!
"Who left that there!!!", "obj_b1pyramid_rouxlsjoke_slash_Step_0_gml_52_0"
);
65
            
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, 60);
66
        }
67
        var rouxtalk = 110;
68
        var tetalker = 49;
69
        var destroyer = 50;
70
        if (timer == rouxtalk)
71
        {
72
            global.interact = 1;
73
            var rouxlsline = stringsetloc(
Just Thoughte It Mighte Be Conveniente If I
"Just Thoughte It Mighte Be Conveniente If I", "obj_b1pyramid_rouxlsjoke_slash_Step_0_gml_62_0"
);
74
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; ...
("rouxls");
75
            msgset(0, rouxlsline);
76
            bw_make();
77
        }
78
        if (timer == (rouxtalk + tetalker))
79
        {
80
            tenna.bounce = 1;
81
            var tetalk = stringsetloc(
Who is that guy? Get him out of here!!
"Who is that guy? Get him out of here!!", "obj_b1pyramid_rouxlsjoke_slash_Step_0_gml_69_0"
);
82
            
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, 60);
83
        }
84
        if (timer == (rouxtalk + tetalker + destroyer))
85
        {
86
            safe_delete(obj_board_writer);
87
            safe_delete(obj_writer);
88
            safe_delete(rouxls);
89
            safe_delete(pyramid);
90
            snd_play_pitch(snd_board_splat, 1.4);
91
            global.interact = 0;
92
            global.flag[1001 tiny_pyramid_state] = 2;
93
            kris.cantleave = false;
94
            endwatch = 1;
95
        }
96
    }
97
}
98
else
99
{
100
}
101
if (endwatch == 1)
102
{
103
    if (obj_board_camera.shift != "none")
104
    {
105
        debug_print("blocked");
106
        endwatch = 2;
107
        with (obj_board_trigger)
108
        {
109
            if (extflag == "rouxlsEnd")
110
            {
111
                var blok = instance_create(x, y, obj_board_solid);
112
                with (blok)
113
                    
scr_sizeexact
scr_sizeexact

function
scr_sizeexact(arg0, arg1)
{ if (!sprite_exists(sprite_index)) { debug_message("Can't size, no sprite"); exit; } var _w = sprite_get_width(sprite_index); var _h = sprite_get_width(sprite_index); image_xscale = arg0 / _w; image_yscale = arg1 / _h; }
(other.sprite_width, other.sprite_height);
114
            }
115
        }
116
    }
117
}