Undertale script viewer

← back to main script listing

gml_Object_obj_mettatonex_Create_0

(view raw script w/o annotations or w/e)
1
ossafe_ini_open("undertale.ini");
2
ini_write_real("Mettaton", "BossMet", 1);
3
ossafe_ini_close();
4
ossafe_savedata_save();
5
ratings = instance_create(20, 10, obj_ratingsmaster);
6
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) ...
();
7
image_speed = 0;
8
if (instance_exists(obj_mettb_body))
9
{
10
    part1 = 409;
11
    mypart1 = 409;
12
}
13
else
14
{
15
    part1 = 409;
16
    mypart1 = instance_create(240, 116, part1);
17
}
18
mypart1.depth = 10;
19
alarm[9] = 8;
gml_Object_obj_mettatonex_Alarm_9.gml

mypart1.parent = global.monsterinstance[myself];
20
hurtanim = 0;
21
hurtsound = snd_yeah;
22
talked = 0;
23
whatiheard = -1;
24
attacked = 0;
25
killed = 0;
26
global.heard = 0;
27
takedamage = 0;
28
mercymod = -100000;
29
sha = 0;
30
shb = 0;
31
obj_heart.shot = 1;
32
obj_heart.sprite_index = spr_heartyellow_flip;
33
con = 0;
34
i = 0;
35
repeat (99)
36
{
37
    global.failure[i] = 0;
38
    i += 1;
39
}
40
global.attacktype = 26;
41
global.specialdam[0] = 0;
42
global.specialdam[1] = 0;
43
global.specialdam[2] = 0;
44
turns = 0;
45
qualify = 0;
46
ht = 200;
47
wd = 200;
48
with (obj_battlebg)
49
    instance_destroy();