Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_bullet_blocker_Collision_obj_regularbullet_elnina

(view raw script w/o annotations or w/e)
1
if ((sprite_index == spr_umbrella && other.sprite_index == spr_ch3_bullet_raindrop) || (sprite_index == spr_sunglasses && other.sprite_index == spr_ch3_bullet_sun) || (sprite_index == spr_warmhat && other.sprite_index == spr_ch3_bullet_ice) || (sprite_index == spr_telescope && other.sprite_index == spr_ch3_bullet_moon))
2
{
3
    snd_stop(snd_noise);
4
    snd_stop(snd_wing);
5
    snd_stop(snd_ghostappear);
6
    snd_stop(snd_stardrop);
7
    if (sprite_index == spr_umbrella)
8
        snd_play(snd_noise);
9
    if (sprite_index == spr_sunglasses)
10
        snd_play(snd_wing);
11
    if (sprite_index == spr_warmhat)
12
        snd_play_x(snd_ghostappear, 1, 1.4);
13
    if (sprite_index == spr_telescope)
14
        snd_play_x(snd_stardrop, 1, 1.2);
15
    mercy += 1.6;
16
    with (other)
17
        instance_destroy();
18
}
19
else
20
{
21
    snd_stop(snd_bump);
22
    snd_play(snd_bump);
23
    mercy += 0.8;
24
    with (other)
25
        instance_destroy();
26
}
27
if (!i_ex(obj_dmgwriter_boogie))
28
{
29
    snd_play_x(snd_mercyadd, 0.8, 1.4);
30
    with (obj_lanino_rematch_enemy)
31
    {
32
        __mercydmgwriter = instance_create_depth(global.monsterx[myself], global.monstery[myself] + 40, depth - 99999, obj_dmgwriter_boogie);
33
        __mercydmgwriter.damage = other.mercy;
34
        __mercydmgwriter.type = 5;
35
    }
36
    with (obj_elnina_rematch_enemy)
37
    {
38
        __mercydmgwriter = instance_create_depth(global.monsterx[myself], global.monstery[myself] + 40, depth - 99999, obj_dmgwriter_boogie);
39
        __mercydmgwriter.damage = other.mercy;
40
        __mercydmgwriter.type = 5;
41
    }
42
}