Undertale script viewer

← back to main script listing

gml_Object_obj_maddummy_Alarm_3

(view raw script w/o annotations or w/e)
1
if (image_index != 1)
2
{
3
    image_index = 1;
4
    with (mypart1)
5
    {
6
        event_user(0);
7
        mode = 99;
8
    }
9
}
10
if (sha == 0)
11
    sha = x;
12
x = sha + shudder;
13
if (shudder < 0)
14
    shudder = -(shudder + 1);
15
else
16
    shudder = -shudder;
17
if (shudder == 0)
18
{
19
    sha = 0;
20
    snd_play(snd_damage);
21
    if (con > 1)
22
    {
23
        global.hurtanim[myself] = 2;
24
    }
25
    else
26
    {
27
        global.hurtanim[myself] = 0;
28
        con = 1;
29
        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; } }
30
        hurtsies = 0;
31
        alarm[8] = 80;
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; }
32
    }
33
    with (mypart1)
34
        event_user(0);
35
    exit;
36
}
37
alarm[3] = 2;
gml_Object_obj_maddummy_Alarm_3.gml

if (image_index != 1) { image_index = 1; with (mypart1) { event_user(0); mode = 99; } } if (sha == 0) sha = x; x = sha + shudder; if (shudder < 0) shudder = -(shudder + 1); else shudder = -shudder; if (shudder == 0) { sha = 0; snd_play(snd_damage); if (con > 1) { global.hurtanim[myself] = 2; } else { global.hurtanim[myself] = 0; con = 1; alarm[7] = -1; hurtsies = 0; alarm[8] = 80; } with (mypart1) event_user(0); exit; } alarm[3] = 2;