Undertale script viewer

← back to main script listing

gml_Object_obj_battlebomb_Alarm_3

(view raw script w/o annotations or w/e)
1
if (instance_exists(mypart1))
2
{
3
    if (mypart1.got == 1)
4
    {
5
        with (mypart1)
6
            pause = 1;
7
        if (defuse == 0)
8
        {
9
            with (mypart1)
10
                defuse = 1;
11
            snd_play(snd_damage);
12
            defuse = 1;
13
            with (mypart1)
14
                shudder = 8;
15
        }
16
    }
17
    if (instance_exists(mypart1))
18
        mypart1.boss = myself;
19
    with (mypart1)
20
    {
21
        if (sha == 0)
22
            sha = x;
23
        x = sha + shudder;
24
        if (shudder < 0)
25
            shudder = -(shudder + 1);
26
        else
27
            shudder = -shudder;
28
        if (shudder == 0)
29
        {
30
            sha = 0;
31
            global.hurtanim[boss] = 2;
32
            exit;
33
        }
34
    }
35
    if (instance_exists(mypart1))
36
    {
37
        if (mypart1.shudder != 0)
38
            alarm[3] = 2;
gml_Object_obj_battlebomb_Alarm_3.gml

if (instance_exists(mypart1)) { if (mypart1.got == 1) { with (mypart1) pause = 1; if (defuse == 0) { with (mypart1) defuse = 1; snd_play(snd_damage); defuse = 1; with (mypart1) shudder = 8; } } if (instance_exists(mypart1)) mypart1.boss = myself; with (mypart1) { if (sha == 0) sha = x; x = sha + shudder; if (shudder < 0) shudder = -(shudder + 1); else shudder = -shudder; if (shudder == 0) { sha = 0; global.hurtanim[boss] = 2; exit; } } if (instance_exists(mypart1)) { if (mypart1.shudder != 0) alarm[3] = 2; } }
39
    }
40
}