Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_enemy_yellowflower_Destroy_0

(view raw script w/o annotations or w/e)
1
if (instance_number(obj_board_enemy_yellowflower) == 1)
2
{
3
    with (obj_board_enemy_monster)
4
    {
5
        if (spearboss == true)
6
        {
7
            image_speed = 0.3;
8
            spearboss = false;
9
            spearbosscon = 2;
10
            bulletimer = 0;
11
            instance_create(x, y, obj_shake);
12
            snd_play(snd_impact);
13
            with (obj_board_miniboss_wall)
14
                instance_destroy();
15
            hp = ceil(hp / 2);
16
            maxhp = ceil(maxhp / 2);
17
        }
18
    }
19
}