Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_cupstack_Step_0

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

function
scr_populatechars()
{ if (!variable_instance_exists(id, "kris")) kris = 0; if (!variable_instance_exists(id, "ralsei")) ralsei = 0; if (!variable_instance_exists(id, "susie")) susie = 0; if (!variable_instance_exists(id, "noelle")) noelle = 0; if (kris == 0) { with (obj_mainchara) other.kris = id; } if (susie == 0) { with (obj_caterpillarchara) { if (name == "susie") other.susie = id; } } if (ralsei == 0) { with (obj_caterpillarchara) { if (name == "ralsei") other.ralsei = id; } } if (noelle == 0) { with (obj_caterpillarchara) { if (name == "noelle") other.noelle = id; } } }
();
2
if (!init)
3
{
4
    if (i_ex(obj_dw_church_bellhall_bookroom))
5
    {
6
        minstack = -6;
7
        stack = 12;
8
        maxstack = 16;
9
        extended = true;
10
        stacksize = maxstack;
11
    }
12
    if (i_ex(obj_dw_church_mizzleencounter))
13
    {
14
        minstack = 0;
15
        stack = 8;
16
        maxstack = 20;
17
        extended = false;
18
        stacksize = stack;
19
    }
20
    if (i_ex(obj_dw_church_organpuzzle))
21
    {
22
        minstack = -3.5;
23
        maxstack = 14;
24
        stack = 14;
25
        count = 21;
26
        extended = true;
27
        stacksize = maxstack;
28
        dofade = true;
29
        var pos = 
scr_heromarker
scr_heromarker

function
scr_heromarker(arg0 = "", arg1 = "")
{ var ____foundmarker = -4; var xpos = -1; var ypos = -1; var objindextocheck = 1365; if (string_pos("kr", arg0) != 0) objindextocheck = 544; if (string_pos("su", arg0) != 0) objindextocheck = 522; if (string_pos("ra", arg0) != 0) objindextocheck = 75; if (string_pos("no", arg0) != 0) objindextocheck = 933; if (string_pos("gen", arg0) != 0) objindextocheck = 1365; with (objindextocheck) { if (variable_instance_exists(id, "extflag")) { if (extflag == arg1) ____foundmarker = id; } } if (instance_exists(____foundmarker)) { xpos = ____foundmarker.x; ypos = ____foundmarker.y; } if (____foundmarker == -4) { debug_message("
scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4]; } return [xpos, ypos, ____foundmarker]; } function scr_genmarker(arg0 = "") { var marker = -4; with (obj_genmarker) { if (extflag == arg0) marker = id; } return marker; }
(undefined, "cuptrig");
30
        if (i_ex(pos[2]))
31
        {
32
            setxy(pos[0], pos[1], mytrig);
33
            
scr_sizeexact
scr_sizeexact

function
scr_sizeexact(arg0, arg1, arg2 = id)
{ with (arg2) { 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; } }
(pos[2].sprite_width, pos[2].sprite_height, mytrig);
34
        }
35
    }
36
    if (i_ex(obj_dw_church_rightconnect))
37
    {
38
        minstack = 0;
39
        stack = 17;
40
        maxstack = 12;
41
        count = 22;
42
        extended = false;
43
        dofade = true;
44
        stacksize = stack;
45
    }
46
    with (obj_markerAny)
47
    {
48
        if (image_index == 14)
49
            other.cupmarker = id;
50
    }
51
    var findmark = 
scr_heromarker
scr_heromarker

function
scr_heromarker(arg0 = "", arg1 = "")
{ var ____foundmarker = -4; var xpos = -1; var ypos = -1; var objindextocheck = 1365; if (string_pos("kr", arg0) != 0) objindextocheck = 544; if (string_pos("su", arg0) != 0) objindextocheck = 522; if (string_pos("ra", arg0) != 0) objindextocheck = 75; if (string_pos("no", arg0) != 0) objindextocheck = 933; if (string_pos("gen", arg0) != 0) objindextocheck = 1365; with (objindextocheck) { if (variable_instance_exists(id, "extflag")) { if (extflag == arg1) ____foundmarker = id; } } if (instance_exists(____foundmarker)) { xpos = ____foundmarker.x; ypos = ____foundmarker.y; } if (____foundmarker == -4) { debug_message("
scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4]; } return [xpos, ypos, ____foundmarker]; } function scr_genmarker(arg0 = "") { var marker = -4; with (obj_genmarker) { if (extflag == arg0) marker = id; } return marker; }
("susie", "cup");
52
    sumarker = findmark[2];
53
    findmark = 
scr_heromarker
scr_heromarker

function
scr_heromarker(arg0 = "", arg1 = "")
{ var ____foundmarker = -4; var xpos = -1; var ypos = -1; var objindextocheck = 1365; if (string_pos("kr", arg0) != 0) objindextocheck = 544; if (string_pos("su", arg0) != 0) objindextocheck = 522; if (string_pos("ra", arg0) != 0) objindextocheck = 75; if (string_pos("no", arg0) != 0) objindextocheck = 933; if (string_pos("gen", arg0) != 0) objindextocheck = 1365; with (objindextocheck) { if (variable_instance_exists(id, "extflag")) { if (extflag == arg1) ____foundmarker = id; } } if (instance_exists(____foundmarker)) { xpos = ____foundmarker.x; ypos = ____foundmarker.y; } if (____foundmarker == -4) { debug_message("
scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4]; } return [xpos, ypos, ____foundmarker]; } function scr_genmarker(arg0 = "") { var marker = -4; with (obj_genmarker) { if (extflag == arg0) marker = id; } return marker; }
("ralsei", "cup");
54
    ramarker = findmark[2];
55
    init = 1;
56
}
57
var height = 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
((y - (stacksize * count)) + 8 + 8);
58
if (con == 0)
59
{
60
    with (mytrig)
61
    {
62
        if (myinteract == 3)
63
        {
64
            global.flag[1599] = 1;
65
            global.interact = 1;
66
            global.msc = -99;
67
            global.choice = -1;
68
            global.choicemsg[0] = stringsetloc(
#Yes
"#Yes", "obj_dw_church_cupstack_slash_Step_0_gml_84_0"
);
69
            global.choicemsg[1] = stringsetloc(
#No
"#No", "obj_dw_church_cupstack_slash_Step_0_gml_85_0"
);
70
            global.choicemsg[2] = stringset("");
71
            global.choicemsg[3] = stringset("");
72
            
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 == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; 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; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
73
            msgsetloc(0, 
* Need a lift?Wait for input
"* Need a lift?/", "obj_dw_church_cupstack_slash_Step_0_gml_89_0"
);
74
            msgnext("\\C2 ");
75
            d_make();
76
            myinteract = 4;
77
        }
78
        if (myinteract == 4 && global.choice != -1)
79
        {
80
            if (global.choice == 0)
81
            {
82
                k_d(2);
83
                
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 == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; 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; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
84
                msgsetloc(0, 
* All board!Wait for inputClose Message
"* All board!/%", "obj_dw_church_cupstack_slash_Step_0_gml_100_0"
);
85
                d_make();
86
                myinteract = 5;
87
            }
88
            if (global.choice == 1)
89
            {
90
                k_d();
91
                myinteract = 0;
92
                global.interact = 0;
93
            }
94
        }
95
        if (myinteract == 5 && !d_ex())
96
            other.con = 1;
97
    }
98
}
99
if (con == 1)
100
{
101
    timer++;
102
    if (timer == 1)
103
    {
104
        with (obj_mainchara)
105
            cutscene = true;
106
        global.interact = 1;
107
        var targheight = stack;
108
        if (!extended)
109
            targheight = minstack;
110
        
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; }
("stacksize", stacksize, targheight, 6, 2, "out");
111
    }
112
    var jumptime = 8;
113
    var jumpheight = 16;
114
    var starttime = 10;
115
    if (timer == 1)
116
    {
117
        with (obj_darkness_overlay)
118
            
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; }
("highlightalpha", highlightalpha, 0, 6);
119
    }
120
    if (timer == starttime)
121
    {
122
        with (obj_caterpillarchara)
123
            follow = false;
124
        with (susie)
125
        {
126
            fun = 1;
127
            
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; trackangle = arg4; } return ___jump; }
(other.x - 10, height - 84, jumpheight, jumptime, true);
128
            scr_delay_var("sprite_index", 431, jumptime);
129
            ignoredepth = true;
130
            scr_delay_var("depth", other.depth - 3, jumptime);
131
        }
132
    }
133
    if (timer == (starttime + (jumptime * 1)))
134
    {
135
        with (kris)
136
        {
137
            fun = 1;
138
            
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; trackangle = arg4; } return ___jump; }
((other.x - 10) + 6, height - 142, jumpheight * 2, jumptime, true);
139
            scr_delay_var("sprite_index", 254, jumptime);
140
            ignoredepth = true;
141
            scr_delay_var("depth", other.depth - 2, jumptime);
142
        }
143
    }
144
    if (timer == (starttime + (jumptime * 2)))
145
    {
146
        with (ralsei)
147
        {
148
            fun = 1;
149
            
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; trackangle = arg4; } return ___jump; }
((other.x - 10) + 4, height - 214, jumpheight * 3, jumptime, true);
150
            scr_delay_var("sprite_index", 361, jumptime);
151
            scr_delay_var("depth", other.depth - 1, jumptime);
152
            ignoredepth = true;
153
        }
154
    }
155
    if (timer == (7 + (jumptime * 3) + 4))
156
    {
157
        kris.visible = false;
158
        with (obj_caterpillarchara)
159
            visible = false;
160
        onboard = true;
161
    }
162
    if (timer == (7 + (jumptime * 3) + 1 + 15))
163
    {
164
        var targheight = maxstack;
165
        if (extended)
166
            targheight = minstack;
167
        var style = -2;
168
        if (extended)
169
            style = -1;
170
        var inout = "out";
171
        if (extended)
172
            inout = "in";
173
        
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; }
("stacksize", stacksize, targheight, 40, style, inout);
174
        if (dofade)
175
            mus_fade(global.currentsong[1], 30);
176
    }
177
    var earlyfade = 32;
178
    if (extended)
179
        earlyfade = 0;
180
    if (timer == ((7 + (jumptime * 3) + 1 + 15 + 40) - 10 - earlyfade))
181
        instance_create_depth(0, 0, 0, obj_fadeout);
182
    if (timer == ((7 + (jumptime * 3) + 1 + 15 + 40 + 10) - round(earlyfade / 2)))
183
    {
184
        if (dofade)
185
            snd_free_all();
186
        global.entrance = 14;
187
        global.interact = 3;
188
        instance_create(0, 0, obj_persistentfadein);
189
        global.interact = 7;
190
        global.tempflag[93] = 1;
191
        room_goto(roomtarg);
192
    }
193
}
194
if (con == 10)
195
{
196
    var jumptime = 8;
197
    var jumpheight = 16;
198
    var starttime = 26;
199
    timer++;
200
    if (timer == 1)
201
    {
202
        global.tempflag[93] = 0;
203
        with (obj_darkness_overlay)
204
        {
205
            other.remalpha = highlightalpha;
206
            highlightalpha = 0;
207
        }
208
        global.facing = 0;
209
        with (obj_mainchara)
210
        {
211
            visible = false;
212
            freeze = true;
213
            cutscene = true;
214
            sprite_index = spr_krisd_dark;
215
        }
216
        with (obj_caterpillarchara)
217
        {
218
            follow = false;
219
            visible = false;
220
        }
221
        with (cupmarker)
222
        {
223
            var roomw = room_width;
224
            var roomh = room_height;
225
            var vieww = view_wport[0];
226
            var viewh = view_hport[0];
227
            var camx = clamp(x - floor((vieww / 2) - (sprite_width / 2)), 0, roomw - vieww);
228
            var camy = clamp(y - floor((viewh / 2) - (sprite_height / 2)), 0, roomh - viewh);
229
            var clamper = instance_place(x, y, obj_camera_clamper);
230
            if (i_ex(clamper))
231
            {
232
                var lclamp = 0;
233
                var rclamp = roomw - vieww;
234
                var uclamp = 0;
235
                var dclamp = roomh - viewh;
236
                if (clamper.xmin != -4)
237
                    lclamp = clamper.xmin;
238
                if (clamper.xmax != -4)
239
                    rclamp = clamper.xmax;
240
                if (clamper.ymin != -4)
241
                    uclamp = clamper.ymin;
242
                if (clamper.ymax != -4)
243
                    dclamp = clamper.ymax;
244
                camx = clamp(camx, lclamp, rclamp);
245
                camy = clamp(camy, uclamp, dclamp);
246
            }
247
            camerax_set(camx);
248
            cameray_set(camy);
249
        }
250
        var targheight = maxstack;
251
        if (extended)
252
        {
253
            stacksize = minstack;
254
        }
255
        else
256
        {
257
            stacksize = maxstack;
258
            targheight = minstack;
259
        }
260
        onboard = true;
261
        var inout = "in";
262
        if (extended)
263
            inout = "out";
264
        var style = -2;
265
        if (extended)
266
            style = -1;
267
        
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; }
("stacksize", stacksize, targheight, 20, style, inout);
268
    }
269
    if (timer == (starttime + (jumptime * 0)))
270
    {
271
        with (obj_darkness_overlay)
272
            
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; }
("highlightalpha", highlightalpha, other.remalpha, 30);
273
        debug_print("arrived!");
274
        with (obj_caterpillarchara)
275
        {
276
            follow = false;
277
            fun = true;
278
            visible = true;
279
        }
280
        with (obj_mainchara)
281
            visible = true;
282
        setxy((x - 10) + 6, height - 142, kris);
283
        setxy((x - 10) + 4, height - 214, ralsei);
284
        setxy(x - 10, height - 84, susie);
285
        onboard = false;
286
        with (ralsei)
287
        {
288
            var targ = other.ramarker;
289
            onboard = false;
290
            
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; trackangle = arg4; } return ___jump; }
(targ.x, targ.y, jumpheight, jumptime, true);
291
            snd_play_delay(snd_noise, jumptime, 0.7, 1.1);
292
        }
293
    }
294
    if (timer == (starttime + (jumptime * 1)))
295
    {
296
        with (kris)
297
        {
298
            var targ = other.cupmarker;
299
            onboard = false;
300
            
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; trackangle = arg4; } return ___jump; }
(targ.x, targ.y, jumpheight * 2, jumptime, true);
301
            snd_play_delay(snd_noise, jumptime, 0.7, 1.05);
302
        }
303
    }
304
    if (timer == (starttime + (jumptime * 2)))
305
    {
306
        with (susie)
307
        {
308
            var targ = other.sumarker;
309
            onboard = false;
310
            
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; trackangle = arg4; } return ___jump; }
(targ.x, targ.y, jumpheight * 3, jumptime, true);
311
            snd_play_delay(snd_noise, jumptime, 0.7, 1);
312
        }
313
    }
314
    if (timer == (starttime + (jumptime * 3)))
315
    {
316
        
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; }
("stacksize", stacksize, stack, 8, -1, "out");
317
        with (kris)
318
        {
319
            freeze = false;
320
            cutscene = false;
321
            fun = false;
322
            ignoredepth = false;
323
        }
324
    }
325
    if (timer == (starttime + (jumptime * 3) + 4))
326
    {
327
        
scr_caterpillar_interpolate
scr_caterpillar_interpolate

function
scr_caterpillar_interpolate(arg0 = "none")
{ if (arg0 == "all") { with (obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else if (arg0 == "none") { if (object_index == obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else { with (obj_caterpillarchara) { if (name == arg0) scr_caterpillar_interpolate_old(); } } } function scr_caterinterp(arg0 = "none") {
scr_caterpillar_interpolate(arg0);
} function scr_caterpillar_interpolate_old() { _newfacing =
scr_facing_letter_to_number(
scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x; remy[0] = obj_mainchara.y; facing[0] = _newfacing; for (_iaia = target; _iaia > 0; _iaia -= 1) { remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target); if (global.darkzone == 1) remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target); else remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target); facing[_iaia] = _newfacing; } }
("all");
328
        with (obj_caterpillarchara)
329
        {
330
            follow = true;
331
            fun = false;
332
            ignoredepth = false;
333
        }
334
        timer = 0;
335
        con = 0;
336
        global.interact = 0;
337
    }
338
}