Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_faceattack_Other_10

(view raw script w/o annotations or w/e)
1
if (id == instance_find(obj_sneo_faceattack, 0))
2
{
3
    boss = 1;
4
    if (i_ex(obj_spamton_neo_enemy))
5
    {
6
        eyeshp = obj_spamton_neo_enemy.eyeshp;
7
        nosehp = obj_spamton_neo_enemy.nosehp;
8
        mouthhp = obj_spamton_neo_enemy.mouthhp;
9
        if (obj_spamton_neo_enemy.facebroken == 1)
10
        {
11
            eyeshp = -1;
12
            nosehp = -1;
13
            mouthhp = -1;
14
        }
15
    }
16
    else
17
    {
18
        eyeshp = 16;
19
        nosehp = 16;
20
        mouthhp = 16;
21
    }
22
    eyes = instance_create(x, y, obj_sneo_faceattack);
23
    eyes.hp = eyeshp;
24
    eyes.type = 1;
25
    eyes.target = target;
26
    eyes.damage = damage;
27
    eyes.first_time = first_time;
28
    nose = instance_create(x, y, obj_sneo_faceattack);
29
    nose.hp = nosehp;
30
    nose.type = 2;
31
    nose.target = target;
32
    nose.damage = damage;
33
    nose.first_time = first_time;
34
    mouth = instance_create(x, y, obj_sneo_faceattack);
35
    mouth.hp = mouthhp;
36
    mouth.type = 3;
37
    mouth.target = target;
38
    mouth.damage = damage;
39
    mouth.first_time = first_time;
40
}
41
else
42
{
43
    boss = 0;
44
}