Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b2lovershallway_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
var favflag = global.flag[1017 fave_weather];
4
if (active == 1)
5
{
6
    if (obj_board_inventory.ninfriendo == true)
7
        tetalker = 99;
8
    if (tetalker == 0 && obj_board_camera.con == 0)
9
    {
10
        tetimer++;
11
        if (tetimer == 15)
12
        {
13
            tetalker = 1;
14
            tetimer = 0;
15
        }
16
    }
17
    if (tetalker == 1)
18
    {
19
        tetimer++;
20
        if (tetimer == 1)
21
        {
22
            var ratalk = stringsetloc(
Looks kind of like the desert board.
"Looks kind of like the desert board.", "obj_b2lovershallway_slash_Step_0_gml_26_0"
);
23
            
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);
24
        }
25
        if (tetimer == 60)
26
        {
27
            tenna.bounce = 1;
28
            var tetalk = stringsetloc(
What!? The trees are green! Green!!!
"What!? The trees are green! Green!!!", "obj_b2lovershallway_slash_Step_0_gml_32_0"
);
29
            
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);
30
            tetalker = 99;
31
        }
32
    }
33
    if (obj_board_camera.con == 0)
34
    {
35
        if (suwalk == 0)
36
        {
37
            if (obj_board_inventory.ninfriendo == true && obj_board_inventory.b2drawninfriendo == true)
38
            {
39
                ralsei.follow = false;
40
                
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("ralsei", 5, 6, 2);
41
                
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("susie", 6, 6, 2);
42
            }
43
            else
44
            {
45
                ralsei.follow = true;
46
                
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("susie", choose(5, 6), irandom_range(2, 6), 0);
47
                susie.sleepy = true;
48
            }
49
            suwalk = 1;
50
        }
51
    }
52
    if (con == 0 && obj_board_camera.con == 0)
53
    {
54
        var triggered = false;
55
        if (global.interact == 0)
56
        {
57
            if (kris.canfreemove == true)
58
            {
59
                if (obj_board_inventory.ninfriendo == true)
60
                {
61
                    with (obj_board_trigger)
62
                    {
63
                        if (extflag == "b2lovershallway")
64
                        {
65
                            if (place_meeting(x, y, obj_mainchara_board))
66
                                triggered = true;
67
                        }
68
                    }
69
                }
70
            }
71
        }
72
        if (triggered)
73
        {
74
            with (obj_board_playercamera)
75
                instance_destroy();
76
            with (obj_board_grayregion)
77
                instance_destroy();
78
            with (obj_mainchara_board)
79
            {
80
                if (name == "kris")
81
                    canfreemove = 0;
82
            }
83
            con = 1;
84
            timer = 0;
85
        }
86
    }
87
    if (con == 1)
88
    {
89
        for (var i = 0; i < 2; i++)
90
        {
91
            block[i] = instance_create_board(5 + i, 7, obj_board_solid);
92
            
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(block[i]);
93
            block[i].sprite_index = spr_board_tennastatueblocker;
94
            with (block[i])
95
                
scr_depth_board
scr_depth_board

function
scr_depth_board()
{ depth = 1000000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); } function scr_board_depth() {
scr_depth_board();
}
();
96
            block[i].visible = true;
97
            var puff = instance_create_board(5 + i, 7, obj_board_smokepuff);
98
            puff.image_blend = #CE6951;
99
            puff.depth = block[i].depth - 1;
100
        }
101
        with (obj_mainchara_board)
102
        {
103
            if (y > board_tiley(7))
104
                y = board_tiley(7);
105
        }
106
        snd_free_all();
107
        snd_play_x(snd_board_splash, 0.7, 0.7);
108
        snd_play_x(snd_board_bomb, 0.7, 1.2);
109
        unfavored = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(camerax() - 128, 254, spr_lanino_eyesclosed_right_nowand);
110
        favored = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(camerax() + 640 + 128, 264, spr_elnina_eyesclosed_left_nowand);
111
        if (global.flag[1017 fave_weather] == 1)
112
        {
113
            unfavored.sprite_index = spr_elnina_eyesclosed_right_nowand;
114
            unfavored.y = 264;
115
            favored.sprite_index = spr_lanino_eyesclosed_left_nowand;
116
            favored.y = 254;
117
        }
118
        tenna.bounce = true;
119
        
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; ...
("tenna");
120
        msgsetloc(0, 
* Alright,Delay 11 this is it folks!Wait for input
"* Alright^1, this is it folks!/", "obj_b2lovershallway_slash_Step_0_gml_111_0"
);
121
        msgnextloc(
* Come out,Delay 11 you two!Wait for inputClose Message
"* Come out^1, you two!/%", "obj_b2lovershallway_slash_Step_0_gml_112_0"
);
122
        d_make();
123
        con = 2;
124
    }
125
    if (con == 2 && !d_ex())
126
    {
127
        timer++;
128
        if (timer == 1)
129
        {
130
            obj_board_inventory.b2drawninfriendo = false;
131
            var idle = 1544;
132
            if (global.flag[1017 fave_weather] == 1)
133
                idle = 4193;
134
            var desigx = obj_board_inventory.x + 8;
135
            var desigy = obj_board_inventory.y + 174;
136
            boardunfavored = 
scr_board_marker
scr_board_marker

function
scr_board_marker()
{ var _thismarker = instance_create(argument0, argument1, obj_board_marker); _thismarker.sprite_index = argument2; _thismarker.image_xscale = 2; _thismarker.image_yscale = 2; if (argument_count >= 4) _thismarker.image_speed = argument3; if (argument_count >= 5) { if (argument4 != -1) _thismarker.depth = argument4; } if (argument_count >= 6) _thismarker.image_xscale = argument5; if (argument_count >= 6) _thismarker.image_yscale = argument5; if (argument_count >= 7) _thismarker.animateonce = argument6; return _thismarker; }
(desigx, desigy, idle, 0, 0, 2);
137
            with (favored)
138
            {
139
                
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, 542, 30);
140
                
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
141
            }
142
            with (unfavored)
143
            {
144
                
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, 14, 30);
145
                
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
146
            }
147
            with (instance_create(x, y, obj_b2_ninfriendo_wiremanagement))
148
            {
149
                favored = other.favored;
150
                unfavored = other.unfavored;
151
                con = 1;
152
            }
153
        }
154
        var jumptime = 24;
155
        if (timer == 2)
156
        {
157
            var xloc = 5.5;
158
            snd_play(snd_board_throw);
159
            with (boardunfavored)
160
                
scr_jump_to_point
scr_jump_to_point

function
scr_jump_to_point(arg0, arg1, arg2, arg3, arg4 = 0)
{ var ___jump =
scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
with (___jump) { trackalpha = arg4; trackblend = arg4; trackindex = arg4; tracksprite = arg4; } return ___jump; }
(board_tilex(xloc), board_tiley(4), 15, jumptime);
161
        }
162
        if (timer == (2 + jumptime + 1))
163
        {
164
            boardunfavored.sprite_index = spr_board_lanino_eyesclosed;
165
            with (boardunfavored)
166
            {
167
                if (global.flag[1017 fave_weather] == 0)
168
                {
169
                    image_xscale = -2;
170
                    x += 32;
171
                }
172
                if (global.flag[1017 fave_weather] == 1)
173
                    sprite_index = spr_board_elnina_eyesclosed;
174
            }
175
        }
176
        if (timer == 4)
177
            boardunfavored.autodepth = true;
178
        if (timer == 45)
179
        {
180
            tenna.bounce = true;
181
            
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; ...
("tenna");
182
            msgsetloc(0, 
* Alright,Delay 11 open your eyes!Wait for inputClose Message
"* Alright^1, open your eyes!/%", "obj_b2lovershallway_slash_Step_0_gml_165_0"
);
183
            d_make();
184
            timer = 0;
185
            con = 3;
186
        }
187
    }
188
    if (con == 3 && !d_ex())
189
    {
190
        timer++;
191
        if (timer == 1)
192
        {
193
            unfavored.sprite_index = spr_lanino_idle_right_nowand;
194
            favored.sprite_index = spr_elnina_idle_left_nowand;
195
            if (global.flag[1017 fave_weather] == 1)
196
            {
197
                unfavored.sprite_index = spr_elnina_idle_right_nowand;
198
                favored.sprite_index = spr_lanino_idle_left_nowand;
199
            }
200
        }
201
        if (timer == 15)
202
        {
203
            unfavored.sprite_index = spr_lanino_shocked_right_nowand;
204
            favored.sprite_index = spr_elnina_shocked_left_nowand;
205
            if (global.flag[1017 fave_weather] == 1)
206
            {
207
                unfavored.sprite_index = spr_elnina_shocked_right_nowand;
208
                favored.sprite_index = spr_lanino_shocked_left_nowand;
209
            }
210
            with (boardunfavored)
211
            {
212
                sprite_index = spr_board_lanino_sad;
213
                if (global.flag[1017 fave_weather] == 1)
214
                    sprite_index = spr_board_elnina_sad;
215
            }
216
            
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
(favored);
217
            
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
(unfavored);
218
            snd_play(snd_wing);
219
        }
220
        if (timer == 20)
221
        {
222
            debug_print(string(global.flag[1017 fave_weather]));
223
            var loc1 = [62, 238];
224
            var loc2 = [580, 228];
225
            if (global.flag[1017 fave_weather] == 0)
226
            {
227
                loc1 = [52, 228];
228
                loc2 = [578, 238];
229
            }
230
            exc1 = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(loc1[0], loc1[1], spr_exc);
231
            exc2 = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(loc2[0], loc2[1], spr_exc);
232
            with (exc1)
233
            {
234
                gravity = 1;
235
                vspeed = -4;
236
                scr_limitval_upper(id, "y", y);
237
                
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, 30);
238
            }
239
            with (exc2)
240
            {
241
                gravity = 1;
242
                vspeed = -4;
243
                scr_limitval_upper(id, "y", y);
244
                
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, 30);
245
            }
246
        }
247
        if (timer == 50)
248
        {
249
            tenna.bounce = true;
250
            
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; ...
("tenna");
251
            msgsetloc(0, 
* Wow,Delay 11 looks like your game characters are just about to meet...Wait for input
"* Wow^1, looks like your game characters are just about to meet.../", "obj_b2lovershallway_slash_Step_0_gml_220_0"
);
252
            msgnextloc(
* ...Delay 11 At Lover's Peak!!!Wait for inputClose Message
"* ..^1. At Lover's Peak!!!/%", "obj_b2lovershallway_slash_Step_0_gml_221_0"
);
253
            d_make();
254
            timer = 0;
255
            con = 3.1;
256
        }
257
    }
258
    if (con == 3.1)
259
    {
260
        scr_var_set_boxwait(1, "con", 3.2);
261
        con = -3.2;
262
    }
263
    if (con == 3.2)
264
    {
265
        tenna.bounce = true;
266
        mus_play_ext("tvromance.ogg", 1);
267
        snd_play_delay(snd_audience_aww, 30);
268
        con = 4;
269
        timer = 0;
270
    }
271
    if (con == 4 && !d_ex())
272
    {
273
        timer++;
274
        if (timer == 30)
275
        {
276
            
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; ...
("no_name");
277
            if (favname == "elnina")
278
            {
279
                msgsetloc(0, 
* La...Delay 11 Lanino...Delay 11 I...Delay 11 I'm sorry...Wait for input
"* La..^1. Lanino..^1. I..^1. I'm sorry.../", "obj_b2lovershallway_slash_Step_0_gml_248_0"
);
280
                msgnextloc(
* Elnina,Delay 11 I...Delay 11 I'm sorry too,Delay 11 I...Wait for input
"* Elnina^1, I..^1. I'm sorry too^1, I.../", "obj_b2lovershallway_slash_Step_0_gml_249_0"
);
281
            }
282
            else
283
            {
284
                msgsetloc(0, 
* El...Delay 11 Elnina...Delay 11 I...Delay 11 I'm sorry...Wait for input
"* El..^1. Elnina..^1. I..^1. I'm sorry.../", "obj_b2lovershallway_slash_Step_0_gml_253_0"
);
285
                msgnextloc(
* Lanino,Delay 11 I...Delay 11 I'm sorry too,Delay 11 I...Wait for input
"* Lanino^1, I..^1. I'm sorry too^1, I.../", "obj_b2lovershallway_slash_Step_0_gml_254_0"
);
286
            }
287
            if (favflag == 0)
288
            {
289
                msgnextloc(
* It's okay,Delay 11 we still love each other,Delay 11 right!?Wait for input
"* It's okay^1, we still love each other^1, right!?/", "obj_b2lovershallway_slash_Step_0_gml_256_0"
);
290
                msgnextloc(
* Of,Delay 11 of course!Delay 11 I'm just...Delay 11 sorry I...Wait for inputClose Message
"* Of^1, of course^1! I'm just..^1. sorry I.../%", "obj_b2lovershallway_slash_Step_0_gml_257_0"
);
291
            }
292
            else
293
            {
294
                msgnextloc(
* It's okay,Delay 11 we still love each other,Delay 11 right!?Wait for input
"* It's okay^1, we still love each other^1, right!?/", "obj_b2lovershallway_slash_Step_0_gml_278_0"
);
295
                msgnextloc(
* Of,Delay 11 of course!Delay 11 I'm just...Delay 11 sorry I...Wait for inputClose Message
"* Of^1, of course^1! I'm just..^1. sorry I.../%", "obj_b2lovershallway_slash_Step_0_gml_279_0"
);
296
            }
297
            d = d_make();
298
            con++;
299
            timer = 0;
300
        }
301
    }
302
    if (con == 5 && i_ex(d))
303
    {
304
        if (i_ex(d.writer))
305
        {
306
            if (txtseq == 0 && d.writer.msgno == 0)
307
            {
308
                txtseq = 1;
309
                unfavored.sprite_index = spr_lanino_sadconfused_right_nowand;
310
                if (global.flag[1017 fave_weather] == 1)
311
                    unfavored.sprite_index = spr_elnina_sadconfused_right_nowand;
312
            }
313
            if (txtseq == 1 && d.writer.msgno == 1)
314
            {
315
                txtseq = 2;
316
                favored.sprite_index = spr_elnina_sadconfused_left_nowand;
317
                if (global.flag[1017 fave_weather] == 1)
318
                    favored.sprite_index = spr_lanino_sadconfused_left_nowand;
319
            }
320
            if (txtseq == 2 && d.writer.msgno == 2)
321
            {
322
                txtseq = 3;
323
                unfavored.sprite_index = spr_lanino_smileembarassed_right_nowand;
324
                if (global.flag[1017 fave_weather] == 1)
325
                    unfavored.sprite_index = spr_elnina_smileembarassed_right_nowand;
326
            }
327
            if (txtseq == 3 && d.writer.msgno == 3)
328
            {
329
                txtseq = 0;
330
                favored.sprite_index = spr_elnina_smileembarassed_left_nowand;
331
                if (global.flag[1017 fave_weather] == 1)
332
                    favored.sprite_index = spr_lanino_smileembarassed_left_nowand;
333
            }
334
        }
335
    }
336
    if (con == 5 && !d_ex())
337
    {
338
        timer++;
339
        if (timer == 1)
340
        {
341
            
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
(tenna, 20);
342
            tenna.communication = 1;
343
        }
344
        if (timer == 30)
345
        {
346
            
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; ...
("tenna");
347
            msgsetloc(0, 
* Oops!Delay 11 Duty calls!Delay 11 Gotta go,Delay 11 kids!Wait for input
"* Oops^1! Duty calls^1! Gotta go^1, kids!/", "obj_b2lovershallway_slash_Step_0_gml_321_0"
);
348
            msgnextloc(
* (I'll give them a little alone time...)Wait for inputClose Message
"* (I'll give them a little alone time...)/%", "obj_b2lovershallway_slash_Step_0_gml_322_0"
);
349
            d_make();
350
            timer = 0;
351
            con++;
352
        }
353
    }
354
    if (con == 6 && !d_ex())
355
    {
356
        timer++;
357
        if (timer == 1)
358
        {
359
            with (tenna)
360
            {
361
                communication = 0;
362
                
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, camerax() + 784, 30, -1, "in");
363
                snd_play(snd_slidewhistle);
364
                global.flag[1022 tenna_board_absent] = 1;
365
            }
366
        }
367
        if (timer == 45)
368
        {
369
            
scr_shakeobj_ext
scr_shakeobj_ext

function
scr_shakeobj_ext()
{ var _shakeobj = instance_create(x, y, obj_shakeobj_ext); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakexamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakeyamt = argument2; } if (argument_count >= 4) { if (argument3 != -1) _shakeobj.shakereduct = argument3; } if (argument_count >= 5) { if (argument4 != -1) _shakeobj.shakespeed = argument4; } with (_shakeobj) event_user(0); }
(unfavored, 0, 6);
370
            unfavored.sprite_index = spr_lanino_idle_right_nowand;
371
            if (global.flag[1017 fave_weather] == 1)
372
                unfavored.sprite_index = spr_elnina_idle_right_nowand;
373
            snd_play_x(snd_noise, 0.65, 1.2);
374
            snd_play_x(snd_wing, 0.65, 1.1);
375
        }
376
        if (timer == 55)
377
        {
378
            unfavored.sprite_index = spr_lanino_gloat_right_nowand;
379
            boardunfavored.sprite_index = spr_board_lanino_gloat;
380
            if (global.flag[1017 fave_weather] == 1)
381
            {
382
                boardunfavored.sprite_index = spr_board_elnina_gloat;
383
                unfavored.sprite_index = spr_elnina_gloat_right_nowand;
384
            }
385
            unfavored.image_speed = 0.25;
386
            boardunfavored.image_speed = 0.25;
387
            
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; ...
("no_name");
388
            if (favflag == 0)
389
                msgsetloc(0, 
* I can't wait!Delay 11 I'm going to the next room!Wait for inputClose Message
"* I can't wait^1! I'm going to the next room!/%", "obj_b2lovershallway_slash_Step_0_gml_363_0"
);
390
            else
391
                msgsetloc(0, 
* I can't wait!Delay 11 I'm going to the next room!Wait for inputClose Message
"* I can't wait^1! I'm going to the next room!/%", "obj_b2lovershallway_slash_Step_0_gml_391_0"
);
392
            d_make();
393
            timer = 0;
394
            con++;
395
        }
396
    }
397
    if (con == 7 && !d_ex())
398
    {
399
        timer++;
400
        if (timer == 5)
401
        {
402
            boardunfavored.vspeed = -4;
403
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(boardunfavored, 60);
404
        }
405
        if (timer == 30)
406
        {
407
            favored.sprite_index = spr_elnina_shocked_left_nowand;
408
            if (global.flag[1017 fave_weather] == 1)
409
                favored.sprite_index = spr_lanino_shocked_left_nowand;
410
            
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; ...
("no_name");
411
            if (global.flag[1017 fave_weather] == 1)
412
                msgsetloc(0, 
* Oh,Delay 11 Elnina,Delay 11 I--Wait for inputClose Message
"* Oh^1, Elnina^1, I--/%", "obj_b2lovershallway_slash_Step_0_gml_385_0"
);
413
            else
414
                msgsetloc(0, 
* Oh,Delay 11 Lanino,Delay 11 I--Wait for inputClose Message
"* Oh^1, Lanino^1, I--/%", "obj_b2lovershallway_slash_Step_0_gml_389_0"
);
415
            d_make();
416
            con++;
417
            timer = 0;
418
        }
419
    }
420
    if (con == 8 && !d_ex())
421
    {
422
        with (obj_mainchara_board)
423
            canfreemove = true;
424
        kris.facing = 2;
425
        
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("susie", 6, 1, 0);
426
        
scr_board_caterpillar_interpolate_ralsei
scr_board_caterpillar_interpolate_ralsei

function
scr_board_caterpillar_interpolate_ralsei()
{ var _ralsei = obj_board_controller.ralsei_object; if (_ralsei != -1) { with (_ralsei) { for (i = 0; i < 75; i += 1) { remx[i] = x; remy[i] = y; facing[i] = 0; } } var _a = 0; var _dir = point_direction(_ralsei.x, _ralsei.y, x, y); repeat (_ralsei.ralsei_target) { _ralsei.remx[_a] = lerp(obj_board_controller.kris_object.x, _ralsei.x, _a / _ralsei.ralsei_target); _ralsei.remy[_a] = lerp(obj_board_controller.kris_object.y, _ralsei.y, _a / _ralsei.ralsei_target); if (_dir >= 45 && _dir < 135) _ralsei.facingdir[_a] = 2; else if (_dir >= 135 && _dir < 225) _ralsei.facingdir[_a] = 3; else if (_dir >= 225 && _dir < 315) _ralsei.facingdir[_a] = 0; else if (_dir >= 315 || _dir < 45) _ralsei.facingdir[_a] = 1; _a++; } } }
();
427
        ralsei.follow = true;
428
        obj_b2loverscliff.favored = favored;
429
        obj_b2loverscliff.unfavored = unfavored;
430
        obj_b2loverscliff.ready = true;
431
        con = 9;
432
    }
433
}
434
else
435
{
436
    if (tetalker == 1)
437
        tetalker = 99;
438
    tetimer = 0;
439
    suwalk = 0;
440
}