Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_plat_enm_sethglasses_miniboss_Create_0

related scripts: CleanUp_0Collision_obj_plat_enm_smallgloveCollision_obj_plat_susieaxe_hbxCreate_0 Draw_0Other_20PreCreate_0Step_0Step_2

(view raw script w/o annotations or w/e)
1
event_inherited();
2
physics = 0;
3
entity_gravity = 0;
4
rideable = 0;
5
can_ride_entities = 0;
6
image_xscale = 2;
7
image_yscale = 2;
8
set_bbox_relative();
9
image_speed = 1;
10
hit = 0;
11
scr_plat_set_difference
scr_plat_set_difference

function
scr_plat_set_difference()
{ switch (dif_type) { case 0: case 1: dif_x = sign(x - xprevious) * max(abs(hspeed), abs(x - xprevious)); dif_y = sign(y - yprevious) * max(abs(vspeed), abs(y - yprevious)); break; } }
();
12
glasssurf = -4;
13
auraalph = 0;
14
npc_seth = -4;
15
npc_aqua = -4;
16
simple = false;
17
rude_buster_use_cooldown = 0;
18
stood_on_ralsei = false;
19
remaining_combo = 0;
20
remaining_combo_max = 6;
21
u_alpha = shader_get_uniform(shd_chromatic_reflection, "iAlpha");
22
u_patternangle = shader_get_uniform(shd_chromatic_reflection, "iPatternAngle");
23
u_patterncount = shader_get_uniform(shd_chromatic_reflection, "iPatternCount");
24
u_holoangle = shader_get_uniform(shd_chromatic_reflection, "iHoloAngle");
25
u_time = shader_get_uniform(shd_chromatic_reflection, "iTime");
26
coindrops = 30;
27
bullet_spawn_count = 0;
28
if (i_ex(obj_dw_cliff_seth_miniboss))
29
{
30
    npc_seth = obj_dw_cliff_seth_miniboss.npc_seth;
31
    npc_aqua = obj_dw_cliff_seth_miniboss.npc_aqua;
32
}
33
else
34
{
35
    simple = true;
36
    auraalph = 1;
37
}
38
init = 0;
39
lerptimer = 1;
40
movetimer = 0;
41
hp = 80;
42
lefthp = 40;
43
righthp = 40;
44
image_speed = 0;
45
left_lens_opacity = 0;
46
right_lens_opacity = 0;
47
plat = instance_create(x, y, obj_plat_movingplat);
48
plat.movetype = -1;
49
plat.visible = 0;
50
plat.image_xscale = 8;
51
con = -1;
52
timer = 0;
53
left_handle_angle = 85;
54
right_handle_angle = 85;
55
recovertimer = 0;
56
rotation_speed = 0;
57
announced_big_attack = false;
58
bullet_pattern_expire_timer = 0;
59
bullet_pattern_multipurpose_timer = 0;
60
bullet_pattern_can_expire = false;
61
bullet_pattern_dialogue_state = 0;
62
bullet_pattern_endstate = 0;
63
talkcon = 0;
64
conreturntimer = 0;
65
talkcon = -1;
66
ral_hook_left = instance_create(x, y, obj_ralsei_hook);
67
ral_hook_left.owner = self;
68
with (ral_hook_left)
69
{
70
    sprite_index = spr_fsethglasses_handle;
71
    depth = other.depth - 1;
72
    menu_name = stringsetloc(
Glasses
"Glasses", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_96_0"
);
73
    image_angle = other.left_handle_angle;
74
    image_xscale = other.image_xscale;
75
    image_yscale = other.image_yscale;
76
    can_cut_down = false;
77
}
78
ral_hook_right = instance_create(x, y, obj_ralsei_hook);
79
ral_hook_right.owner = self;
80
with (ral_hook_right)
81
{
82
    sprite_index = spr_fsethglasses_handle;
83
    depth = other.depth - 1;
84
    menu_name = stringsetloc(
Glasses
"Glasses", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_107_0"
);
85
    image_angle = other.right_handle_angle;
86
    image_xscale = -other.image_xscale;
87
    image_yscale = other.image_yscale;
88
    can_cut_down = false;
89
}
90
left_lens_hitbox = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(0, 0, spr_hitbox_10px_center);
91
left_lens_hitbox.image_xscale = 16;
92
left_lens_hitbox.image_yscale = 9.6;
93
right_lens_hitbox = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(0, 0, spr_hitbox_10px_center);
94
right_lens_hitbox.image_xscale = 16;
95
right_lens_hitbox.image_yscale = 9.6;
96
left_lens_hitbox.visible = false;
97
right_lens_hitbox.visible = false;
98
knife_afterimages = instance_create(0, 0, obj_custom_particle_system);
99
knife_afterimages.default_particle_data.sprite_index = spr_faqua_knife_cracked;
100
knife_afterimages.default_particle_data.fadeout_speed = 0.05;
101
knife_afterimages.depth = 10001;
102
knife_afterimages.skip_fusuma = true;
103
knife_particle_struct = 
104
{
105
    image_angle: image_angle,
106
    image_xscale: image_xscale,
107
    image_yscale: image_yscale,
108
    image_alpha: image_alpha * 0.3
109
};
110
lensorder = 0;
111
glove_cycle = 0;
112
113
create_bullet = function(arg0 = 270, arg1 = random_range(camerax() + (0.15 * camerawidth()), camerax() + (0.85 * camerawidth())), arg2 = cameray() - 80)
114
{
115
    var winddir = 
scr_wind_direction
scr_wind_direction

function
scr_wind_direction()
{ with (obj_plat_windcontroller_new) return winddirection; return -1; } function scr_wind_strength() { with (obj_plat_windcontroller_new) return strength; return 0; }
();
116
    if (hp <= 40 && con != 10 && con != 11 && con != 12)
117
        arg0 += random_range(-20, 20);
118
    var maxbullets = 1;
119
    bullet_spawn_count++;
120
    if (bullet_spawn_count >= 15 && simple)
121
    {
122
        bullet_spawn_count = 0;
123
        if (hp == 80)
124
        {
125
            if ((glove_cycle % 3) == 0)
126
            {
127
                
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 == "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 (global.darkzone == 1) global.typer = 89; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("opuppet");
128
                msgsetsubloc(0, 
Argument №11* I'm helping!!
"~1* I'm helping!!", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_148_0"
);
129
                d_make_plat(0, 1, undefined, undefined, 1);
130
                with (obj_dw_fcastle_obscured_bullets)
131
                    bossorangeactingpatterns[1]();
132
            }
133
            else if ((glove_cycle % 3) == 1)
134
            {
135
                
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 == "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 (global.darkzone == 1) global.typer = 89; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("opuppet");
136
                msgsetsubloc(0, 
Argument №11* Look,Delay 11 I'm helping!
"~1* Look^1, I'm helping!", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_153_0"
);
137
                d_make_plat(0, 1, undefined, undefined, 1);
138
                with (obj_orange_puppet)
139
                {
140
                    with (puppet)
141
                    {
142
                        targx = 0;
143
                        targy = 40;
144
                        targxscale = 0.7;
145
                        targyscale = 0.7;
146
                        targangle = 10;
147
                    }
148
                    preset = 3;
149
                    puppetmovement = 3;
150
                    animinit = 0;
151
                    laughfast = true;
152
                }
153
            }
154
            else
155
            {
156
                
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 == "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 (global.darkzone == 1) global.typer = 89; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("opuppet");
157
                msgsetsubloc(0, 
Argument №11* My attack's beating them!
"~1* My attack's beating them!", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_157_0"
);
158
                d_make_plat(0, 1, undefined, undefined, 1);
159
                with (obj_orange_puppet)
160
                {
161
                    with (puppet)
162
                    {
163
                        targx = 100;
164
                        targy = -60;
165
                        targxscale = 0.8;
166
                        targyscale = 1;
167
                        targangle = -30;
168
                    }
169
                    preset = 3;
170
                    puppetmovement = 3;
171
                    animinit = 0;
172
                    laughfast = true;
173
                }
174
            }
175
            glove_cycle++;
176
        }
177
        var _b = instance_create_depth(arg1, arg2 + 60, depth - 10, obj_plat_enm_smallglove);
178
        with (_b)
179
        {
180
            if (other.hp < 30)
181
            {
182
                image_xscale *= 1.5;
183
                image_yscale *= 1.5;
184
            }
185
            generated = true;
186
            movepattern = 8;
187
            can_break_fusuma = false;
188
        }
189
        exit;
190
    }
191
    for (var i = 0; i < maxbullets; i++)
192
    {
193
        var _b = instance_create_depth(arg1, arg2, depth - 10, obj_plat_aquaknife_winddirect);
194
        with (_b)
195
        {
196
            owner = other.id;
197
            wind_direction = 0;
198
            afterimage_system = other.knife_afterimages;
199
            particle_struct = other.knife_particle_struct;
200
            direction = arg0 + ((i * 360) / maxbullets);
201
            lifetime = 999999;
202
            damage = 35;
203
            force_direction = true;
204
            sprite_index = spr_faqua_knife_cracked;
205
            image_speed = 0;
206
            depth = 10000;
207
            double_swipe = false;
208
            if (other.con == 2)
209
                homing = true;
210
            if (other.con == 10 || other.con == 11 || other.con == 12)
211
            {
212
                
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("speed", speed * 2, 0, 30, 1, "out");
213
                double_swipe = true;
214
            }
215
        }
216
    }
217
};
218
219
split_bullet_simple = function(arg0, arg1 = 2, arg2 = 25, arg3 = undefined)
220
{
221
    var spreadinc = (2 * arg2) / max(1, arg1 - 1);
222
    with (arg0)
223
    {
224
        if (!split)
225
        {
226
            split = true;
227
            var s = speed * 2;
228
            if (s == 0)
229
                s = 10;
230
            blurry = true;
231
            if (arg3 != undefined)
232
                direction += arg3;
233
            var pos_shift_x = lengthdir_x(4, direction + 90);
234
            var pos_shift_y = lengthdir_y(4, direction + 90);
235
            x -= pos_shift_x;
236
            y -= pos_shift_y;
237
            var pos_shift_mult = 2 / max(1, arg1 - 1);
238
            var dir = direction - arg2;
239
            var fxdir = direction - 10;
240
            snd_stop(snd_spearappear_choppy);
241
            snd_play(snd_spearappear_choppy, 1, 1.5);
242
            for (var i = 0; i < (arg1 - 1); i++)
243
            {
244
                var fx = instance_create(x, y, obj_animation);
245
                with (fx)
246
                {
247
                    fxdir += (20 / arg1);
248
                    sprite_index = spr_faqua_knife_spliteffect;
249
                    image_angle = fxdir;
250
                    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
251
                    image_xscale = 4;
252
                }
253
            }
254
            double_swipe = false;
255
            for (var i = 0; i < (arg1 - 1); i++)
256
            {
257
                _newcopy = instance_create(x, y, object_index);
258
                with (_newcopy)
259
                {
260
                    owner = other.owner;
261
                    wind_direction = 0;
262
                    lifetime = 999999;
263
                    force_direction = true;
264
                    image_speed = 0;
265
                    depth = 10000;
266
                    damage = other.damage;
267
                    afterimage_system = other.afterimage_system;
268
                    particle_struct = other.particle_struct;
269
                    split = true;
270
                    double_swipe = false;
271
                    blurry = true;
272
                    direction = other.direction;
273
                    image_angle = other.image_angle;
274
                    sprite_index = other.sprite_index;
275
                    speed = 1;
276
                    image_index = 0;
277
                    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("speed", 1, s, 30);
278
                    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("direction", direction, dir, 30);
279
                }
280
                x += (pos_shift_x * pos_shift_mult);
281
                y += (pos_shift_y * pos_shift_mult);
282
                dir += spreadinc;
283
            }
284
            speed = 1;
285
            image_index = 0;
286
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("speed", 1, s, 30);
287
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("direction", direction, dir, 30);
288
        }
289
    }
290
};
291
292
refract_bullet = function(arg0, arg1)
293
{
294
    if (!arg0.split && !arg0.homing)
295
    {
296
        var num = 2;
297
        if (arg1 < (30 - (10 * simple)))
298
            num = 3;
299
        var angle = -image_angle;
300
        if (con == 10 || con == 11 || con == 12)
301
            angle = undefined;
302
        split_bullet_simple(arg0, num, 25, angle);
303
    }
304
};
305
306
anim_phase = -1;
307
anim_timer = 0;
308
current_animation = -4;
309
stun_duration = 120;
310
311
do_anim_step = function(arg0)
312
{
313
    if (anim_phase == -1)
314
        exit;
315
    var step = arg0[anim_phase];
316
    if (!global.pause_plat)
317
    {
318
        anim_timer++;
319
        if (step(anim_timer))
320
        {
321
            anim_phase++;
322
            anim_timer = 0;
323
            if (anim_phase >= array_length(arg0))
324
                anim_phase = -1;
325
            exit;
326
        }
327
    }
328
};
329
330
anim_dragdown = [function(arg0)
331
{
332
    if (arg0 == 1)
333
    {
334
        
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); }
();
335
        stun();
336
    }
337
    if (con == 0)
338
        con = 1;
339
    return arg0 > 5;
340
}, function(arg0)
341
{
342
    if (arg0 == 1)
343
    {
344
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("y", y, ystart + 50, 15, 3, "in");
345
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("left_handle_angle", left_handle_angle % 360, 107, 12, -1, "in");
346
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("right_handle_angle", right_handle_angle % 360, 85, 14, -1, "in");
347
    }
348
    if (arg0 == 18)
349
    {
350
        
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); }
();
351
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("left_handle_angle", left_handle_angle % 360, 135, 8, -1, "out");
352
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("right_handle_angle", right_handle_angle % 360, 135, 10, -1, "out");
353
    }
354
    recovertimer = 0;
355
    return arg0 > 30;
356
}];
357
anim_lefthandle_down = [function(arg0)
358
{
359
    if (arg0 == 1)
360
    {
361
        
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); }
();
362
        cancel_stun();
363
        with (obj_dw_cliff_seth_miniboss)
364
            ensure_side(1);
365
    }
366
    con = 2;
367
    recovertimer = 0;
368
    remaining_combo = remaining_combo_max;
369
    return arg0 > 15;
370
}, function(arg0)
371
{
372
    if (arg0 == 1)
373
    {
374
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, xstart + 40, 30, -1, "out");
375
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("y", y, ystart + 60, 30, -1, "out");
376
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("left_handle_angle", left_handle_angle, 175, 30, -2, "out");
377
    }
378
    return arg0 > 30;
379
}];
380
anim_righthandle_down = [function(arg0)
381
{
382
    if (arg0 == 1)
383
    {
384
        
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); }
();
385
        cancel_stun();
386
        with (obj_dw_cliff_seth_miniboss)
387
            ensure_side(-1);
388
    }
389
    con = 2;
390
    recovertimer = 0;
391
    remaining_combo = remaining_combo_max;
392
    return arg0 > 15;
393
}, function(arg0)
394
{
395
    if (arg0 == 1)
396
    {
397
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, xstart - 40, 30, -1, "out");
398
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("y", y, ystart + 60, 30, -1, "out");
399
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("right_handle_angle", right_handle_angle, 175, 30, -2, "out");
400
    }
401
    if (arg0 == 30)
402
        conreturntimer = 0;
403
    return arg0 > 30;
404
}];
405
anim_recover = [function(arg0)
406
{
407
    if ((arg0 % 15) == 1)
408
    {
409
        
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); }
();
410
        with (obj_plat_follower)
411
        {
412
            if (name == "ralsei")
413
                drop_off_platform_mode();
414
        }
415
    }
416
    con = 3;
417
    return arg0 >= 16;
418
}, function(arg0)
419
{
420
    if (arg0 == 1)
421
    {
422
        snd_play(snd_spearrise, 1, 0.8);
423
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_angle", image_angle, 0, 12, -1, "out");
424
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("left_handle_angle", left_handle_angle, 445, 32, -1, "out");
425
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("right_handle_angle", right_handle_angle, 445, 32, -1, "out");
426
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, xstart, 32, -1, "out");
427
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("y", y, ystart, 32, -1, "out");
428
    }
429
    if (arg0 == 34)
430
    {
431
        conreturntimer = 0;
432
        con = 1;
433
        recovertimer = 0;
434
        left_handle_angle = 85;
435
        right_handle_angle = 85;
436
        if ((hp <= 60 && has_done_super == 0) || (hp <= 20 && has_done_super == 1))
437
        {
438
            con = 10;
439
            timer = 0;
440
            su_act.blocked = true;
441
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("auraalph", 0, 1, 15);
442
            has_done_super++;
443
        }
444
        else
445
        {
446
            con = 0;
447
        }
448
    }
449
    return arg0 >= 34;
450
}];
451
has_done_super = false;
452
anim_recover_end = [function(arg0)
453
{
454
    if (arg0 == 1)
455
    {
456
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("y", y, ystart, 30, -1, "inout");
457
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("left_handle_angle", right_handle_angle % 360, 85, 18, -1, "out");
458
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("right_handle_angle", right_handle_angle % 360, 85, 14, -1, "out");
459
    }
460
    if (arg0 == 30)
461
    {
462
        if ((hp <= 60 && has_done_super == 0) || (hp <= 20 && has_done_super == 1))
463
        {
464
            con = 10;
465
            timer = 0;
466
            has_done_super++;
467
            su_act.blocked = true;
468
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("auraalph", 0, 1, 15);
469
        }
470
        else
471
        {
472
            con = 0;
473
        }
474
    }
475
    return arg0 > 35;
476
}];
477
anim_super_left = [function(arg0)
478
{
479
    if (arg0 == 1)
480
    {
481
        with (npc_aqua)
482
            force_animation(3476, 20);
483
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, xstart + 80, 20, 3, "inout");
484
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("y", y, ystart - 90, 30, -1, "inout");
485
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_angle", image_angle, -30, 30, -1, "inout");
486
    }
487
    if (arg0 == 31)
488
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, xstart - 180, 25, 3, "in");
489
    if (arg0 == 35)
490
    {
491
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("y", y, ystart + 5, 30, 2, "inout");
492
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_angle", image_angle, 110, 50, -1, "inout");
493
    }
494
    if (arg0 == 58)
495
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, xstart + 70, 50, 2, "out");
496
    if (arg0 == 90)
497
    {
498
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("y", y, ystart, 30, -1, "inout");
499
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_angle", image_angle, 0, 30, -1, "inout");
500
    }
501
    if (arg0 == 110)
502
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, xstart, 18, 3, "inout");
503
    return arg0 > 120;
504
}];
505
anim_super_right = [function(arg0)
506
{
507
    if (arg0 == 1)
508
    {
509
        with (npc_aqua)
510
            force_animation(3476, 20);
511
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, xstart - 80, 20, 3, "inout");
512
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("y", y, ystart - 90, 30, -1, "inout");
513
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_angle", image_angle, 30, 30, -1, "inout");
514
    }
515
    if (arg0 == 31)
516
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, xstart + 180, 25, 3, "in");
517
    if (arg0 == 35)
518
    {
519
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("y", y, ystart + 5, 30, 2, "inout");
520
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_angle", image_angle, -110, 50, -1, "inout");
521
    }
522
    if (arg0 == 58)
523
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, xstart - 70, 50, 2, "out");
524
    if (arg0 == 90)
525
    {
526
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("y", y, ystart, 30, -1, "inout");
527
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_angle", image_angle, 0, 30, -1, "inout");
528
    }
529
    if (arg0 == 110)
530
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, xstart, 18, 3, "inout");
531
    return arg0 > 120;
532
}];
533
534
spawn_explosion = function(arg0)
535
{
536
    var xx = x + lengthdir_x(random_range(-0.5 * sprite_width, 0.5 * sprite_width), image_angle);
537
    var yy = y + lengthdir_y(random_range(-0.5 * sprite_width, 0.5 * sprite_width), image_angle) + random_range(-24, 24);
538
    if (arg0)
539
    {
540
        snd_stop(snd_explosion_firework);
541
        snd_play(snd_explosion_firework, 1, 0.8);
542
    }
543
    with (instance_create(xx, yy, obj_animation))
544
        sprite_index = spr_realisticexplosion;
545
};
546
547
spawn_coin = function(arg0, arg1)
548
{
549
    scr_plat_makecoins(arg0, arg1, 1, 0, 360, 14, 4, depth - 1, false);
550
};
551
552
jerky_anim = -4;
553
554
jerky_motion = function(arg0)
555
{
556
    if (arg0 == -1)
557
        jerky_anim = anim_jerk_left;
558
    else if (arg0 == -2)
559
        jerky_anim = anim_jerk_final;
560
    else
561
        jerky_anim = anim_jerk_right;
562
};
563
564
anim_jerk_final = [function(arg0)
565
{
566
    if (arg0 == 1)
567
    {
568
        snd_play(snd_rudebuster_swing);
569
        with (obj_plat_follower)
570
            drop_off_platform_mode(true);
571
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, camerax() + 80, 10, 3, "in");
572
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_angle", image_angle, image_angle - 120, 10, 1, "out");
573
    }
574
    if ((arg0 % 1) == 0)
575
        spawn_explosion((arg0 % 4) == 0);
576
    if (arg0 == 11)
577
    {
578
        snd_play(snd_badexplosion);
579
        
scr_shakescreen
scr_shakescreen

function
scr_shakescreen(arg0 = 4)
{ with (instance_create(x, y, obj_shake)) { shakex = arg0; shakey = arg0; } }
();
580
        con = 22;
581
    }
582
    return arg0 > 10;
583
}];
584
anim_jerk_left = [function(arg0)
585
{
586
    if (arg0 == 1)
587
    {
588
        with (obj_plat_follower)
589
            drop_off_platform_mode(true);
590
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, x - 140, 36, -2, "out");
591
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_angle", image_angle, image_angle - 48, 36, -2, "out");
592
    }
593
    if ((arg0 % 1) == 0)
594
        spawn_explosion((arg0 % 4) == 0);
595
    return arg0 > 36;
596
}];
597
anim_jerk_right = [function(arg0)
598
{
599
    if (arg0 == 1)
600
    {
601
        with (obj_plat_follower)
602
            drop_off_platform_mode(true);
603
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("x", x, x + 140, 36, -2, "out");
604
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_angle", image_angle, image_angle + 48, 36, -2, "out");
605
    }
606
    if ((arg0 % 1) == 0)
607
        spawn_explosion((arg0 % 4) == 0);
608
    return arg0 > 36;
609
}];
610
anim_die = [function(arg0)
611
{
612
    if (arg0 == 1)
613
    {
614
        with (obj_plat_bullet)
615
        {
616
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ var _doom = instance_create_depth(0, 0, 0, obj_doom); with (_doom) { alarm[0] target = arg0; } return _doom; }
(self, 30);
617
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_alpha", image_alpha, 0, 30);
618
        }
619
        con = 100;
620
        image_alpha = 0;
621
        bullet_pattern_endstate = 999;
622
        with (ral_hook_left)
623
        {
624
            with (instance_create(x, y, obj_marker_fancy))
625
            {
626
                
scr_spritematch
scr_spritematch

function
scr_spritematch(arg0)
{ sprite_index = arg0.sprite_index; image_index = arg0.image_index; x = arg0.x; y = arg0.y; image_blend = arg0.image_blend; image_alpha = arg0.image_alpha; image_angle = arg0.image_angle; image_xscale = arg0.image_xscale; image_yscale = arg0.image_yscale; }
(other);
627
                hspeed = -12;
628
                vspeed = -9;
629
                gravity = 1;
630
                draw_func = scr_plat_marker_fancy_greyscale_draw;
631
                image_alpha = 1;
632
                image_speed = 0;
633
                image_index = 0;
634
                image_angle = other.image_angle - 12;
635
                
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ var _doom = instance_create_depth(0, 0, 0, obj_doom); with (_doom) { alarm[0] target = arg0; } return _doom; }
(self, 80);
636
            }
637
        }
638
        with (ral_hook_right)
639
        {
640
            with (instance_create(x, y, obj_marker_fancy))
641
            {
642
                
scr_spritematch
scr_spritematch

function
scr_spritematch(arg0)
{ sprite_index = arg0.sprite_index; image_index = arg0.image_index; x = arg0.x; y = arg0.y; image_blend = arg0.image_blend; image_alpha = arg0.image_alpha; image_angle = arg0.image_angle; image_xscale = arg0.image_xscale; image_yscale = arg0.image_yscale; }
(other);
643
                hspeed = 12;
644
                vspeed = -9;
645
                gravity = 1;
646
                draw_func = scr_plat_marker_fancy_greyscale_draw;
647
                image_alpha = 1;
648
                image_speed = 0;
649
                image_index = 0;
650
                image_angle = other.image_angle - 12;
651
                
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ var _doom = instance_create_depth(0, 0, 0, obj_doom); with (_doom) { alarm[0] target = arg0; } return _doom; }
(self, 80);
652
            }
653
        }
654
        var sw = sprite_width * 0.25;
655
        var sh = sprite_height * 0.25;
656
        var xx = lengthdir_x(sw, image_angle) + lengthdir_y(sh, image_angle);
657
        var yy = lengthdir_y(sw, image_angle) + lengthdir_x(sh, image_angle);
658
        with (instance_create(x - xx, y - yy, obj_marker_fancy))
659
        {
660
            sprite_index = spr_fsethglasses_main_split;
661
            image_speed = 0;
662
            
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
663
            hspeed = -5;
664
            vspeed = -4;
665
            gravity = 1;
666
            image_angle = other.image_angle - 12;
667
            draw_func = scr_plat_marker_fancy_greyscale_draw;
668
        }
669
        with (instance_create(x + xx, y + yy, obj_marker_fancy))
670
        {
671
            sprite_index = spr_fsethglasses_main_split;
672
            image_index = 1;
673
            image_speed = 0;
674
            
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
675
            hspeed = 5;
676
            vspeed = -6;
677
            gravity = 1;
678
            image_angle = other.image_angle + 12;
679
            draw_func = scr_plat_marker_fancy_greyscale_draw;
680
        }
681
        
scr_plat_vfx
scr_plat_vfx

function
scr_plat_vfx(arg0)
{ var _vfx = instance_create_depth(x, y, depth, obj_plat_vfx); _vfx.sprite_index = arg0; return _vfx; } function scr_vfx_above(arg0) { var _vfx = instance_create_depth(x, y, depth - 1, obj_plat_vfx); _vfx.sprite_index = arg0; return _vfx; } function scr_plat_vfx_ringhit(arg0, arg1, arg2, arg3) {
scr_make_ripple(arg0, arg1, 80, arg3, 280, 2, 20, depth, 0, 0, 0, 1, 0.8);
scr_make_ripple(arg0, arg1, 120, arg3, 480, 2, 15, depth, 0, 0, 0, 1, 0.8);
scr_make_ripple(arg0, arg1, 160, arg3, 680, 2, 10, depth, 0, 0, 0, 1, 0.8);
repeat (7) { with (instance_create(arg0, arg1, obj_animation)) { sprite_index = spr_plat_impact_splash; direction = random_range(0, 360); speed = random_range(3, 12); friction = 0.8; image_speed = 0.3; image_angle = direction;
scr_darksize();
image_blend = arg3; } } }
(3352);
682
        hit = 0;
683
        instance_destroy();
684
    }
685
}];
686
anim_expire = [function(arg0)
687
{
688
    if (arg0 == 1)
689
    {
690
        with (obj_plat_bullet)
691
        {
692
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ var _doom = instance_create_depth(0, 0, 0, obj_doom); with (_doom) { alarm[0] target = arg0; } return _doom; }
(self, 30);
693
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_alpha", image_alpha, 0, 30);
694
        }
695
        con = 100;
696
        bullet_pattern_endstate = 999;
697
        flash_hurt(16777215);
698
        with (
scr_afterimage_monochrome
scr_afterimage_monochrome

function
scr_afterimage_monochrome(arg0, arg1)
{ afterimage = instance_create(x, y, obj_afterimage_onecolor); afterimage.tint = arg0; afterimage.additive = arg1; afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; return afterimage; } function scr_afterimage_monochrome_parallax(arg0, arg1, arg2) { afterimage = instance_create(x, y, obj_afterimage_onecolor_parallax); afterimage.tint = arg0; afterimage.additive = arg1; afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; afterimage.parallax_depth = arg2; return afterimage; }
(16777215, 1))
699
        {
700
            image_alpha = 0.3;
701
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_xscale", image_xscale, image_xscale + 0.5, 15, 1, "out");
702
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_yscale", image_yscale, image_yscale + 0.5, 15, 1, "out");
703
        }
704
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("imagealpha", imagealpha, 0, 30);
705
        scr_delay_var("y", y - 10000, 80);
706
        
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ var _doom = instance_create_depth(0, 0, 0, obj_doom); with (_doom) { alarm[0] target = arg0; } return _doom; }
(self, 80);
707
        with (ral_hook_left)
708
        {
709
            image_index = 0;
710
            image_speed = 0;
711
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_alpha", 1, 0, 30);
712
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ var _doom = instance_create_depth(0, 0, 0, obj_doom); with (_doom) { alarm[0] target = arg0; } return _doom; }
(self, 80);
713
        }
714
        with (ral_hook_right)
715
        {
716
            image_index = 0;
717
            image_speed = 0;
718
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_alpha", 1, 0, 30);
719
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ var _doom = instance_create_depth(0, 0, 0, obj_doom); with (_doom) { alarm[0] target = arg0; } return _doom; }
(self, 80);
720
        }
721
    }
722
}];
723
724
animate = function(arg0)
725
{
726
    with (obj_lerpvar)
727
    {
728
        if (target == other)
729
            instance_destroy();
730
    }
731
    anim_phase = 0;
732
    anim_timer = 0;
733
    current_animation = arg0;
734
};
735
736
lefthit = 0;
737
righthit = 0;
738
eligible_for_standing_ending = false;
739
conversation_started = false;
740
741
get_hit_local = function(arg0, arg1)
742
{
743
    var instakill = false;
744
    if (arg1.object_index == obj_plat_enm_smallglove)
745
    {
746
        instakill = true;
747
        if (!conversation_started)
748
        {
749
            conversation_started = true;
750
            
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 == "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 (global.darkzone == 1) global.typer = 89; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("seth");
751
            msgsetsubloc(0, 
Argument №11* Orange,Delay 11 what are you DOING!?
"~1* Orange^1, what are you DOING!?", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_790_0"
);
752
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("orange", 0);
753
            msgnextsubloc(
Argument №11* I'm just helping...
"~1* I'm just helping...", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_792_0"
);
754
            scr_msgfunc(function()
755
            {
756
                with (obj_dw_fcastle_obscured_bullets)
757
                    bossorangeactingpatterns[2]();
758
            });
759
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("seth", 0);
760
            msgnextsubloc(
Argument №11* Leave this to the big flowers!
"~1* Leave this to the big flowers!", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_794_0"
);
761
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("orange", 0);
762
            msgnextsubloc(
Argument №11* Why are you being mean?
"~1* Why are you being mean?", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_796_0"
);
763
            scr_msgfunc(function()
764
            {
765
                with (obj_dw_fcastle_obscured_bullets)
766
                    bossorangeactingpatterns[3]();
767
            });
768
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("seth", 0);
769
            msgnextsubloc(
Argument №11* You're making us LOSE!!!
"~1* You're making us LOSE!!!", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_798_0"
);
770
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("orange", 0);
771
            msgnextsubloc(
Argument №11* Well,Delay 11 maybe you SHOULD lose!
"~1* Well^1, maybe you SHOULD lose!", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_800_0"
);
772
            scr_msgfunc(function()
773
            {
774
                with (obj_dw_fcastle_obscured_bullets)
775
                    bossorangeactingpatterns[4]();
776
            });
777
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("seth", 0);
778
            msgnextsubloc(
Argument №11* I'll win despite her!
"~1* I'll win despite her!", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_802_0"
);
779
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("orange", 0);
780
            msgnextsubloc(
Argument №11* Not if I win first!
"~1* Not if I win first!", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_804_0"
);
781
            scr_msgfunc(function()
782
            {
783
                with (obj_dw_fcastle_obscured_bullets)
784
                    bossorangeactingpatterns[5]();
785
            });
786
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("seth", 0);
787
            msgnextsubloc(
Argument №11* WE'RE ON THE SAME SIDE!
"~1* WE'RE ON THE SAME SIDE!", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_806_0"
);
788
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("orange", 0);
789
            msgnextsubloc(
Argument №11* My side's better.
"~1* My side's better.", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_808_0"
);
790
            scr_msgfunc(function()
791
            {
792
                with (obj_dw_fcastle_obscured_bullets)
793
                    bossorangeactingpatterns[6]();
794
            });
795
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("seth", 0);
796
            msgnextsubloc(
Argument №11* HOW?
"~1* HOW?", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_810_0"
);
797
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("orange", 0);
798
            msgnextsubloc(
Argument №11* And I'm STILL helping.
"~1* And I'm STILL helping.", (global.lang == "ja") ? "\\m2\t\t\t" : "\\m2\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_812_0"
);
799
            scr_msgfunc(function()
800
            {
801
                with (obj_dw_fcastle_obscured_bullets)
802
                    bossorangeactingpatterns[7]();
803
            });
804
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("seth", 0);
805
            msgnextsubloc(
Argument №11* I give up...
"~1* I give up...", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_plat_enm_sethglasses_miniboss_slash_Create_0_gml_814_0"
);
806
            d_make_plat(0, 2, undefined, undefined, true);
807
        }
808
        snd_play(snd_ultraswing);
809
        snd_play(snd_punchheavythunder, 0.6, 1.3);
810
        snd_play(snd_explosion_mmx3);
811
        with (arg1)
812
        {
813
            hit = 1;
814
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ var _doom = instance_create_depth(0, 0, 0, obj_doom); with (_doom) { alarm[0] target = arg0; } return _doom; }
(self, 1);
815
        }
816
        with (instance_create(arg1.x, arg1.y, obj_animation))
817
        {
818
            sprite_index = spr_finisher_explosion_flashy;
819
            image_speed = 0.5;
820
        }
821
        if (hp > 20)
822
        {
823
            snd_play(snd_glassbreak);
824
        }
825
        else
826
        {
827
            with (obj_plat_player)
828
                act_enabled = false;
829
            with (obj_dialoguer_plat)
830
                instance_destroy();
831
            with (obj_dw_fcastle_obscured_bullets)
832
                blast_seth_aqua_offscreen();
833
            with (obj_plat_bulletred)
834
                neutralized = 99999;
835
            snd_play(snd_explosion_mmx3);
836
            xx = arg1.x;
837
            yy = arg1.y;
838
            for (var i = 0; i < 14; i++)
839
            {
840
                var ii = -0.5 * i;
841
                while (ii <= (0.5 * i))
842
                {
843
                    var len = random_range(10, 30) + (20 * i);
844
                    var dir = arg1.image_angle + (random_range(-45, 45) * i) + (20 * i);
845
                    
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; } function scr_script_delayed_until() { var __scriptdelay = instance_create(0, 0, obj_script_delayed_function); __scriptdelay.script = argument[0]; __scriptdelay.condition = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; } function delay_function(arg0, arg1) { return
scr_script_delayed(arg0, arg1);
}
(function(arg0, arg1)
846
                    {
847
                        with (instance_create(arg0, arg1, obj_animation))
848
                        {
849
                            sprite_index = spr_realisticexplosion;
850
                            image_speed = 1;
851
                            snd_stop(snd_badexplosion);
852
                            snd_play(snd_badexplosion);
853
                        }
854
                    }, (3 * ceil(abs(i))) + irandom_range(1, 2), xx + lengthdir_x(len, dir), yy + lengthdir_y(len, dir)).respect_plat_pause = false;
855
                    ii++;
856
                }
857
                xx += lengthdir_x(20, arg1.image_angle);
858
                yy += lengthdir_y(20, arg1.image_angle);
859
            }
860
        }
861
        scr_plat_cool_zoom();
862
    }
863
    else
864
    {
865
        if (simple)
866
            exit;
867
        with (arg1)
868
        {
869
            if (!hit_check(arg1.id))
870
                exit;
871
        }
872
    }
873
    var hp_thereshold_reached = false;
874
    var lasthpl = lefthp;
875
    var lasthpr = righthp;
876
    if (arg0 == -1 && lefthit <= 0)
877
    {
878
        if (instakill)
879
        {
880
            lefthp -= 10;
881
            righthp -= 10;
882
            lefthit = 20;
883
        }
884
        else
885
        {
886
            if (remaining_combo <= 0)
887
                lefthp -= 1;
888
            if (remaining_combo <= 0)
889
                righthp -= 1;
890
            lefthit = 2;
891
        }
892
        left_lens_opacity = 1;
893
    }
894
    else if (arg0 == 1 && righthit <= 0)
895
    {
896
        if (instakill)
897
        {
898
            lefthp -= 10;
899
            righthp -= 10;
900
            righthit = 20;
901
        }
902
        else
903
        {
904
            if (remaining_combo <= 0)
905
                lefthp -= 1;
906
            if (remaining_combo <= 0)
907
                righthp -= 1;
908
            righthit = 2;
909
        }
910
        right_lens_opacity = 1;
911
    }
912
    hp_thereshold_reached = floor((lefthp + righthp) / 30) < floor(hp / 30);
913
    if ((lefthp + righthp) <= 0 && hp > 0)
914
        hp_thereshold_reached = true;
915
    if (remaining_combo > 0)
916
    {
917
        remaining_combo--;
918
        hp_thereshold_reached = false;
919
        snd_play(snd_metalhit, 1, 2 - (remaining_combo / remaining_combo_max));
920
        if (remaining_combo == 0)
921
        {
922
            hp_thereshold_reached = true;
923
            hp = floor(hp / 20) * 20;
924
            lefthp = floor(0.5 * hp);
925
            righthp = floor(0.5 * hp);
926
            snd_play(snd_ultraswing);
927
            snd_play(snd_glassbreak);
928
            snd_play(snd_punchheavythunder, 0.6, 1.3);
929
            scr_plat_cool_zoom();
930
        }
931
    }
932
    hp = lefthp + righthp;
933
    var xx = x;
934
    var yy = y;
935
    if (arg0 == 1)
936
    {
937
        xx = x + lengthdir_x((sprite_width * 0.25) - 8, image_angle);
938
        yy = y + lengthdir_y((sprite_width * 0.25) - 8, image_angle);
939
    }
940
    else
941
    {
942
        xx = x + lengthdir_x((-sprite_width * 0.25) + 8, image_angle);
943
        yy = y + lengthdir_y((-sprite_width * 0.25) + 8, image_angle);
944
    }
945
    if (bullet_pattern_endstate > 0)
946
    {
947
        hp = 10;
948
        spawn_coin(xx, yy);
949
    }
950
    if (bullet_pattern_dialogue_state == 2)
951
        bullet_pattern_multipurpose_timer = 99999;
952
    spawn_hit_petals(3, point_direction(arg1.x, arg1.y, xx, yy), 1);
953
    if (instance_exists(obj_dw_cliff_seth_miniboss))
954
    {
955
        if (
scr_plat_standing_on
scr_plat_standing_on

function
scr_plat_standing_on(arg0, arg1)
{ if (is_string(arg0)) { if (arg0 == "kr" || arg0 == "kris") { with (obj_plat_player) return grounded && ground == arg1; } else { with (obj_plat_follower) { if ((arg0 == "su" || arg0 == "susie") && name == "susie") return grounded && ground == arg1; if ((arg0 == "ra" || arg0 == "ralsei") && name == "ralsei") return grounded && ground == arg1; } } } else if (variable_instance_exists(arg0, "ground")) { return arg0.grounded && arg0.ground == arg1; } }
("kr", obj_dw_cliff_seth_miniboss.plat_ralsei.platform))
956
            eligible_for_standing_ending = 1;
957
    }
958
    if (hp_thereshold_reached && bullet_pattern_endstate == 0 && i_ex(obj_dw_cliff_seth_miniboss))
959
    {
960
        if (con == 10 || con == 11 || con == 12)
961
        {
962
            auraalph = 0;
963
            with (obj_plat_aquaknife_winddirect)
964
            {
965
                if (double_swipe)
966
                {
967
                    damage = 0;
968
                    
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ var _doom = instance_create_depth(0, 0, 0, obj_doom); with (_doom) { alarm[0] target = arg0; } return _doom; }
(self, 10);
969
                    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_alpha", image_alpha, 0, 10);
970
                }
971
            }
972
        }
973
        conreturntimer = 999;
974
        if (lefthp > 29)
975
            lefthp = 29;
976
        if (righthp > 29)
977
            righthp = 29;
978
        if ((lefthp + righthp) > 1 && hp <= 40 && eligible_for_standing_ending)
979
        {
980
            bullet_pattern_endstate = 1;
981
            bullet_pattern_can_expire = false;
982
            with (obj_dw_cliff_seth_miniboss)
983
                do_standing_combo_ending(other);
984
        }
985
        else
986
        {
987
            hp = lefthp + righthp;
988
            snd_stop(snd_glassbreak);
989
            snd_play(snd_glassbreak);
990
            if (!instakill)
991
            {
992
                with (arg1)
993
                    do_hbx_hit(-4, 10);
994
            }
995
            animate(anim_recover);
996
        }
997
    }
998
    else
999
    {
1000
        shake = 4;
1001
        if (!instakill)
1002
        {
1003
            with (arg1)
1004
                do_hbx_hit(-4, 0);
1005
        }
1006
        with (obj_plat_follower)
1007
        {
1008
            if (
scr_plat_standing_on
scr_plat_standing_on

function
scr_plat_standing_on(arg0, arg1)
{ if (is_string(arg0)) { if (arg0 == "kr" || arg0 == "kris") { with (obj_plat_player) return grounded && ground == arg1; } else { with (obj_plat_follower) { if ((arg0 == "su" || arg0 == "susie") && name == "susie") return grounded && ground == arg1; if ((arg0 == "ra" || arg0 == "ralsei") && name == "ralsei") return grounded && ground == arg1; } } } else if (variable_instance_exists(arg0, "ground")) { return arg0.grounded && arg0.ground == arg1; } }
("kr", platform))
1009
            {
1010
                other.shake = 12;
1011
                snd_stop(snd_punchheavythunder);
1012
                snd_play(snd_punchheavythunder, 0.6, 1.3);
1013
                with (other)
1014
                    flash_hurt();
1015
            }
1016
        }
1017
    }
1018
    
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); }
();
1019
    with (instance_create_depth(xx, yy, depth, obj_plat_vfx))
1020
    {
1021
        sprite_index = spr_hit_vfx;
1022
        image_speed = 1;
1023
    }
1024
    with (instance_create_depth(xx, yy, depth, obj_plat_vfx))
1025
    {
1026
        sprite_index = spr_smokepuff;
1027
        image_speed = 2;
1028
    }
1029
    if (hp <= 0)
1030
    {
1031
        
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); }
();
1032
        con = 99;
1033
        timer = 0;
1034
        current_animation = -4;
1035
    }
1036
};
1037
1038
imagealpha = 1;
1039
bifurcate_hitbox = instance_create(x, y, obj_marker);
1040
bifurcate_hitbox.sprite_index = spr_hitbox_10px_center;
1041
bifurcate_hitbox.image_xscale = 10;
1042
bifurcate_hitbox.image_yscale = 2;
1043
bifurcate_hitbox.visible = false;
1044
petal_color = 16711935;
1045
1046
sublast = function()
1047
{
1048
    scr_plat_susie_attack_fast(self);
1049
    rude_buster_use_cooldown = 0;
1050
};
1051
1052
su_act.effect = sublast;
1053
1054
get_hurt = function()
1055
{
1056
};