Undertale script viewer

← back to main script listing

gml_Object_obj_movedogehead_Step_0

(view raw script w/o annotations or w/e)
1
if (excited == 1 && alarm[0] > 1)
2
{
3
    image_speed = 0.1;
4
    sprite_index = spr_movedogeheadb;
5
    if (instance_exists(obj_movedoge))
6
    {
7
        if (obj_movedoge.mercymod == 200 || (obj_movedoge.mercymod == 201 && specialx == 0))
8
        {
9
            alarm[3] = 4;
gml_Object_obj_movedogehead_Alarm_3.gml

if (global.mnfight == 2) { alarm[1] = round(random(20)) + 10; } else { if (instance_exists(blcon)) { with (blcon) instance_destroy(); } if (instance_exists(blconwd)) { with (blconwd) instance_destroy(); } exit; } gg = floor(random(3)); if (instance_exists(blcon)) { with (blcon) instance_destroy(); } if (instance_exists(blconwd)) { with (blconwd) instance_destroy(); } if (gg == 0) { xx = x - random(sprite_width / 2) - 40; yy = y + random(sprite_height / 3); } if (gg == 1) { xx = x + random(sprite_width / 3) + 100; yy = y + random(sprite_height / 3); } if (gg == 2) { xx = (x + random(sprite_width)) - (sprite_width / 2); yy = y - 18; } blcon = instance_create(xx, yy, obj_blconsm); blcon.depth = 14; blcon.sprite_index = spr_blcontiny; global.msg[0] =
FETCH?
scr_gettext("obj_movedogehead_103")
; global.msg[1] =
Close MessageClose MessageClose Message
scr_gettext("obj_movedogehead_104")
; global.typer = 2; blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER); blconwd.depth = 13;
10
            specialx = 1;
11
        }
12
        if (obj_movedoge.mercymod > 998 && specialx == 0)
13
        {
14
            alarm[2] = 4;
gml_Object_obj_movedogehead_Alarm_2.gml

if (sprite_index == spr_movedogeheada) exit; if (specialx == 1) { alarm[2] = 2; if (global.mnfight == 2) { alarm[2] = round(random(10)) + 8; } else { if (instance_exists(blcon)) { with (blcon) instance_destroy(); } if (instance_exists(blconwd)) { with (blconwd) instance_destroy(); } exit; specialx = 0; alarm[2] = -1; } gg = floor(random(3)); if (instance_exists(blcon)) { with (blcon) instance_destroy(); } if (instance_exists(blconwd)) { with (blconwd) instance_destroy(); } if (gg == 0) { xx = x - random(sprite_width / 2) - 40; yy = y + random(sprite_height / 3); } if (gg == 1) { xx = x + random(sprite_width / 3) + 100; yy = y + random(sprite_height / 3); } if (gg == 2) { xx = (x + random(sprite_width)) - (sprite_width / 2); yy = y - 18; } blcon = instance_create(xx, yy, obj_blconsm); blcon.depth = 14; blcon.sprite_index = spr_blcontiny; if (gg == 0) global.msg[0] =
PET?
scr_gettext("obj_movedogehead_185")
; if (gg == 1) global.msg[0] =
PAT?
scr_gettext("obj_movedogehead_186")
; if (gg == 2) global.msg[0] =
POT?
scr_gettext("obj_movedogehead_187")
; global.msg[1] =
Close MessageClose MessageClose Message
scr_gettext("obj_movedogehead_188")
; global.typer = 2; blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER); blconwd.depth = 13; }
15
            specialx = 1;
16
        }
17
    }
18
}
19
else
20
{
21
    image_speed = 0.33335;
22
    sprite_index = spr_movedogeheada;
23
}
24
if (excited == 3)
25
    excited = 1;