Undertale script viewer

← back to main script listing

gml_Object_obj_maddummy_Alarm_7

(view raw script w/o annotations or w/e)
1
if (hurtsies == 2)
2
{
3
    if (global.monsterhp[myself] >= 1)
4
    {
5
        global.hurtanim[myself] = 0;
6
        image_index = 0;
7
        global.myfight = 0;
8
        global.mnfight = 1;
9
    }
10
    else
11
    {
12
        global.myfight = 0;
13
        global.mnfight = 1;
14
        killed = 1;
15
        instance_destroy();
16
    }
17
    hurtsies = 0;
18
}
19
if (hurtsies == 1)
20
{
21
    snd_play(snd_damage);
22
    with (mypart1)
23
        event_user(1);
24
    hurtsies = 2;
25
    alarm[7] = 25;
gml_Object_obj_maddummy_Alarm_7.gml

if (hurtsies == 2) { if (global.monsterhp[myself] >= 1) { global.hurtanim[myself] = 0; image_index = 0; global.myfight = 0; global.mnfight = 1; } else { global.myfight = 0; global.mnfight = 1; killed = 1; instance_destroy(); } hurtsies = 0; } if (hurtsies == 1) { snd_play(snd_damage); with (mypart1) event_user(1); hurtsies = 2; alarm[7] = 25; if (con == 2) { alarm[7] = -1; alarm[8] = 30; } }
26
    if (con == 2)
27
    {
28
        alarm[7] = -1;
gml_Object_obj_maddummy_Alarm_7.gml

if (hurtsies == 2) { if (global.monsterhp[myself] >= 1) { global.hurtanim[myself] = 0; image_index = 0; global.myfight = 0; global.mnfight = 1; } else { global.myfight = 0; global.mnfight = 1; killed = 1; instance_destroy(); } hurtsies = 0; } if (hurtsies == 1) { snd_play(snd_damage); with (mypart1) event_user(1); hurtsies = 2; alarm[7] = 25; if (con == 2) { alarm[7] = -1; alarm[8] = 30; } }
29
        alarm[8] = 30;
gml_Object_obj_maddummy_Alarm_8.gml

if (con == 3) con = 4; if (con == 1) { global.typer = 33; global.msg[0] =
Foolish.Delay 11
Foolish!Delay 11
FOOLISH!Wait for input
scr_gettext("obj_maddummy_319")
; global.msg[1] =
Even if you attack
my vessel,Delay 11 you'll
NEVER hurt me!Wait for input
scr_gettext("obj_maddummy_320")
; global.msg[2] =
I'm still
incorporeal,Delay 11 you
DUMMY!!!Wait for inputClose MessageClose Message
scr_gettext("obj_maddummy_321")
; blcon = instance_create(xstart + 100, ystart, obj_blconwdflowey); blconwdS = instance_create(blcon.x + 25, blcon.y + 10, OBJ_NOMSCWRITER); hurtsies = 0; con = 2; }
30
    }
31
}