Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_bigshot_Destroy_0

(view raw script w/o annotations or w/e)
1
d = instance_create(camerax(), cameray(), obj_fadein);
2
with (obj_fadeout)
3
    instance_destroy();
4
d.image_blend = c_white;
5
d.fadespeed = -0.034;
6
global.turntimer = 1;
7
with (obj_sneo_lastattack)
8
    instance_destroy();
9
with (obj_sneo_lastattack_hitbox)
10
    instance_destroy();
11
if (sprite_index == spr_sneo_bigshot_l)
12
{
13
    with (obj_spamton_neo_enemy)
14
    {
15
        if (global.monsterhp[myself] == global.monstermaxhp[myself] && scr_sideb_get_phase
scr_sideb_get_phase

function scr_sideb_get_phase() { var phase = 0; if (global.flag[916 snowgrave_fail] == 0) { if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4) phase = 1; if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7) phase = 2; if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20) phase = 3; if (global.flag[915 snowgrave_plot] >= 20) phase = 4; } return phase; }
() < 3)
16
        {
17
            obj_sneo_bulletcontroller.mercyaccumulated += 5;
18
            with (obj_spamton_neo_enemy)
19
            {
20
                __mercydmgwriter = instance_create(global.monsterx[myself], (global.monstery[myself] + 20) - (global.hittarget[myself] * 20), obj_dmgwriter);
21
                __mercydmgwriter.damage = 5;
22
                __mercydmgwriter.type = 5;
23
                global.hittarget[myself]++;
24
            }
25
        }
26
        else
27
        {
28
            global.monsterhp[0] -= ceil(global.monstermaxhp[0] * 0.05);
29
            if (global.monsterhp[0] < 0)
30
                global.monsterhp[0] = 1;
31
        }
32
    }
33
}