Undertale script viewer

← back to main script listing

gml_Object_obj_undyneboss_Create_0

(view raw script w/o annotations or w/e)
1
scr_monstersetup
scr_monstersetup

myself = 0; if (global.monster[1] == 1) { myself = 2; global.monster[2] = 1; } if (global.monster[0] == 1 && myself != 2) { myself = 1; global.monster[1] = 1; } if (global.monster[0] == 0) { myself = 0; global.monster[0] = 1; } if (global.monstertype[myself] == 1TestFroggit) { global.monstername[myself] =
TestFroggit
scr_gettext("monstername_1")
; global.monstermaxhp[myself] = 23; global.monsterhp[myself] = 23; global.monsteratk[myself] = 4; global.monsterdef[myself] = 1; global.xpreward[myself] = 2; global.goldreward[myself] = 2; global.itemrewardid = 1; global.itemrewardchance = 50; } if (global.monstertype[myself] == 2Dummy) { global.monstername[myself] =
Dummy
scr_gettext("monstername_2")
; global.monstermaxhp[myself] = 15; global.monsterhp[myself] = 15; global.monsteratk[myself] = 0; global.monsterdef[myself] = -5; global.xpreward[myself] = 0; global.goldreward[myself] = 0; global.itemrewardid = 0; global.itemrewardchance = 0; } if (global.monstertype[myself] == 3Froggit) { global.monstername[myself] =
Froggit
scr_gettext("monstername_3")
; global.monstermaxhp[myself] = 20; global.monsterhp[myself] = 20; global.monsteratk[myself] = 4; global.monsterdef[myself] = 1; global.xpreward[myself] = 10; global.goldreward[myself] = 20; global.itemrewardid = 1; global.itemrewardchance = 50; } if (global.monstertype[myself] == 4Froggit) { global.monstername[myself] =
Froggit
scr_gettext("monstername_4")
; global.monstermaxhp[myself] = 30; global.monsterhp[myself] = 30; global.monsteratk[myself] = 4; global.monsterdef[myself] = 4; global.xpreward[myself] = 3; global.goldreward[myself] = 2; global.itemrewardid = 1; global.itemrewardchance = 50; } if (global.monstertype[myself] == 5Whimsun) { global.monstername[myself] =
Whimsun
scr_gettext("monstername_5")
; global.monstermaxhp[myself] = 10; global.monsterhp[myself] = 10; global.monsteratk[myself] = 4; global.monsterdef[myself] = 0; global.xpreward[myself] = 2; global.goldreward[myself] = 2; global.itemrewardid = 1; global.itemrewardchance = 50; } if (global.monstertype[myself] == 6Moldsmal) { global.monstername[myself] =
Moldsmal
scr_gettext("monstername_6")
; global.monstermaxhp[myself] = 50; global.monsterhp[myself] = 50; global.monsteratk[myself] = 4; global.monsterdef[myself] = 0; global.xpreward[myself] = 3; global.goldreward[myself] = 3; global.itemrewardid = 1; global.itemrewardchance = 50; } if (global.monstertype[myself] == 7Migosp) { global.monstername[myself] =
Migosp
scr_gettext("monstername_7")
; global.monstermaxhp[myself] = 40; global.monsterhp[myself] = 40; global.monsteratk[myself] = 5; global.monsterdef[myself] = 4; global.xpreward[myself] = 5; global.goldreward[myself] = 4; global.itemrewardid = 1; global.itemrewardchance = 50; } if (global.monstertype[myself] == 8Vegetoid) ...
(0, 0, 0, 0, 0);
2
image_speed = 0;
3
part1 = 274;
4
mypart1 = instance_create(x, y, part1);
5
hurtanim = 0;
6
hurtsound = snd_ehurt1;
7
talked = 0;
8
whatiheard = -1;
9
attacked = 0;
10
killed = 0;
11
global.heard = 0;
12
takedamage = 0;
13
image_speed = 0;
14
mercymod = -9999999999;
15
joketold = 0;
16
sha = 0;
17
siner = 0;
18
with (obj_battlebg)
19
    instance_destroy();
20
instance_create(0, 0, obj_boxsiner);
21
green = 0;
22
darkify = 0;
23
con = 0;
24
greenlock = 0;
25
songplayed = 0;
26
revert = 0;
27
lesson = 1;
28
order = 1;
29
rating = 16;
30
prevhp = global.hp;
31
hitno = 0;
32
damagecause = 0;
33
borderspec = 0;
34
ratingb = 0;
35
defadjust = 0;
36
died = 0;
37
blconx = x + 180;
38
blcony = y + 10;
39
shakify = 0;
40
uncancel = 0;
41
hitfirst = 0;
42
berserk = 0;
43
mercied = 0;
44
global.flag[99 undyne_times_fought] += 1;
45
if (global.flag[99 undyne_times_fought] == 1)
46
{
47
    global.flag[351 undyne_hp_left] = 1500;
48
    if (global.flag[98 saved_mkid] == 2)
49
        global.flag[351 undyne_hp_left] = 1400;
50
}
51
if (global.flag[99 undyne_times_fought] == 2)
52
    global.faceemotion = 1;
53
if (global.flag[99 undyne_times_fought] == 3)
54
    global.faceemotion = 4;
55
if (global.flag[99 undyne_times_fought] > 3)
56
    global.faceemotion = 5;
57
global.monsterhp[myself] = global.flag[351 undyne_hp_left];
58
ht = 200;
59
wd = 250;