Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b2ferntalk_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 (con == 0 && obj_board_camera.con == 0)
6
    {
7
    }
8
}
9
else
10
{
11
}
12
if (convocon == 0)
13
{
14
    var trig = 0;
15
    with (obj_board_trigger)
16
    {
17
        if (extflag == "explore1")
18
        {
19
            if (active)
20
                trig = 1;
21
        }
22
    }
23
    if (trig == 1)
24
        convocon = 1;
25
}
26
if (convocon == 1)
27
{
28
    if (global.flag[1022 tenna_board_absent] == 0)
29
    {
30
        var tetalk = stringsetloc(
When I said EXPLORE, I didn't mean THIS MUCH! C'mon!
"When I said EXPLORE, I didn't mean THIS MUCH! C'mon!", "obj_b2ferntalk_slash_Step_0_gml_38_0"
);
31
        
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, 120);
32
        tenna.bounce = 1;
33
    }
34
    convocon = 2;
35
}
36
if (convocon == 2)
37
{
38
    var trig = 0;
39
    with (obj_board_trigger)
40
    {
41
        if (extflag == "explore2")
42
        {
43
            if (active)
44
                trig = 1;
45
        }
46
    }
47
    if (trig == 1)
48
        convocon = 3;
49
}
50
if (convocon == 3)
51
{
52
    if (global.flag[1022 tenna_board_absent] == 0)
53
    {
54
        var tetalk = stringsetloc(
You're really getting a kick out of this, huh?!
"You're really getting a kick out of this, huh?!", "obj_b2ferntalk_slash_Step_0_gml_59_0"
);
55
        
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, 120);
56
        tenna.bounce = 1;
57
    }
58
    convocon = 4;
59
}
60
if (convocon == 4)
61
{
62
    if (active && obj_board_camera.con == 0)
63
    {
64
        timer = 0;
65
        convocon = 6;
66
    }
67
}
68
if (convocon == 6)
69
{
70
    timer++;
71
    if (timer == 1)
72
    {
73
        var sutalk = stringsetloc(
Woah, what's in THERE?
"Woah, what's in THERE?", "obj_b2ferntalk_slash_Step_0_gml_80_0"
);
74
        
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; }
(sutalk, "susie", 2, 60);
75
        if (global.flag[1022 tenna_board_absent] == 1)
76
        {
77
            timer = 0;
78
            convocon = 7;
79
        }
80
    }
81
    if (timer == 61)
82
    {
83
        if (global.flag[1022 tenna_board_absent] == 0)
84
        {
85
            var tetalk = stringsetloc(
Nothing! Ignore that! It's just a leftover!
"Nothing! Ignore that! It's just a leftover!", "obj_b2ferntalk_slash_Step_0_gml_92_0"
);
86
            
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, 120);
87
            tenna.bounce = 1;
88
        }
89
        convocon = 7;
90
        timer = 0;
91
    }
92
}
93
if (convocon == 7)
94
{
95
    if (obj_board_camera.shift != "none")
96
        convocon = 8;
97
}
98
if (convocon == 8)
99
{
100
    if (obj_board_camera.shift == "none")
101
        convocon = 9;
102
}
103
if (convocon == 9)
104
{
105
    timer++;
106
    if (timer == 1)
107
    {
108
        if (global.flag[1022 tenna_board_absent] == 0)
109
        {
110
            var sutalk = stringsetloc(
... a leftover...?
"... a leftover...?", "obj_b2ferntalk_slash_Step_0_gml_124_0"
);
111
            
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; }
(sutalk, "susie", 2, 60);
112
        }
113
        else
114
        {
115
            var sutalk = stringsetloc(
Man, wish we could get in there.
"Man, wish we could get in there.", "obj_b2ferntalk_slash_Step_0_gml_129_0"
);
116
            
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; }
(sutalk, "susie", 2, 80);
117
            instance_destroy();
118
            convocon = 999;
119
        }
120
    }
121
    if (timer == 61)
122
    {
123
        var tetalk = stringsetloc(
Huh? I mean... uh... it's unfinished!
"Huh? I mean... uh... it's unfinished!", "obj_b2ferntalk_slash_Step_0_gml_137_0"
);
124
        
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, 90);
125
        tenna.bounce = 1;
126
        convocon = 10;
127
    }
128
}
129
if (convocon == 10)
130
{
131
    if (obj_board_camera.shift != "none")
132
        convocon = 11;
133
}
134
if (convocon == 11)
135
{
136
    if (obj_board_camera.shift == "none")
137
    {
138
        convocon = 12;
139
        timer = 0;
140
    }
141
}
142
if (convocon == 12)
143
{
144
    timer++;
145
    if (timer == 1)
146
    {
147
        var sutalk = stringsetloc(
What was in it?
"What was in it?", "obj_b2ferntalk_slash_Step_0_gml_166_0"
);
148
        
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; }
(sutalk, "susie", 2, 70);
149
    }
150
    if (timer == 71)
151
    {
152
        var tetalk = stringsetloc(
Nothing! It just goes back to...
"Nothing! It just goes back to...", "obj_b2ferntalk_slash_Step_0_gml_172_0"
);
153
        
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, 120);
154
        tenna.bounce = 1;
155
        convocon = 13;
156
        timer = 0;
157
    }
158
}
159
if (convocon == 13)
160
{
161
    if (obj_board_camera.shift != "none")
162
        convocon = 14;
163
}
164
if (convocon == 14)
165
{
166
    if (obj_board_camera.shift == "none")
167
    {
168
        convocon = 15;
169
        var tetalk = stringsetloc(
It doesn't matter! Let's get back to the game!
"It doesn't matter! Let's get back to the game!", "obj_b2ferntalk_slash_Step_0_gml_192_0"
);
170
        
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, 120);
171
        tenna.bounce = 1;
172
        timer = 0;
173
        instance_destroy();
174
    }
175
}