Undertale script viewer

← back to main script listing

gml_Object_obj_gyftrot_Destroy_0

(view raw script w/o annotations or w/e)
1
if (mercymod > 10 && global.monsterhp[myself] == global.monstermaxhp[myself])
2
    global.goldreward[3] += 20;
3
if (giftgiven == 1)
4
    global.goldreward[3] = 0;
5
if (giftgiven == 2)
6
    global.goldreward[3] = 75;
7
scr_monsterdefeat
scr_monsterdefeat

if (killed == 1) { global.xpreward[3] += global.xpreward[myself]; global.goldreward[3] += global.goldreward[myself]; global.vaporspeed = 0; global.monstersprite = sprite_index; ddd = instance_create(x, y, obj_vaporized_new); if (object_index == obj_greatdog) { with (ddd) scr_newvapordata(1); } if (object_index == obj_gyftrot) { with (ddd) scr_newvapordata(2); } if (object_index == obj_icecap) { with (ddd) scr_newvapordata(3); } if (object_index == obj_jerry) { with (ddd) scr_newvapordata(4); } if (object_index == obj_lesserdoge) { with (ddd) scr_newvapordata(5); } if (object_index == obj_mandog) { with (ddd) scr_newvapordata(6); } if (object_index == obj_womandog) { with (ddd) scr_newvapordata(7); } if (object_index == obj_movedoge) { with (ddd) scr_newvapordata(8); } if (object_index == obj_papyrusdeadbody) { with (ddd) scr_newvapordata(9); } if (object_index == obj_papyrusdeadhead) { with (ddd) scr_newvapordata(10); } if (object_index == obj_shyren) { with (ddd) scr_newvapordata(11); } if (object_index == obj_snowdrake || object_index == obj_chilldrake) { with (ddd) scr_newvapordata(12); } if (object_index == obj_tembattle) { with (ddd) scr_newvapordata(13); } if (object_index == obj_undyneb_body) { with (ddd) scr_newvapordata(14); } if (object_index == obj_woshua) { with (ddd) scr_newvapordata(15); } if (object_index == obj_froggit || object_index == obj_fakefroggit) { with (ddd) scr_newvapordata(16); } if (object_index == obj_whimsun) { with (ddd) scr_newvapordata(17); } if (object_index == obj_moldsmal) { with (ddd) scr_newvapordata(18); } if (object_index == obj_migosp) { with (ddd) scr_newvapordata(19); ...
(0, 0, 0, 0, 0);
8
with (mypart1)
9
    instance_destroy();
10
with (mypart2)
11
    instance_destroy();
12
if (instance_exists(mypart3))
13
{
14
    with (mypart3)
15
        instance_destroy();
16
}
17
if (instance_exists(mypart4))
18
{
19
    with (mypart4)
20
        instance_destroy();
21
}
22
if (googly == 1)
23
{
24
    with (mypart5)
25
        instance_destroy();
26
}
27
if (instance_exists(mypart8))
28
{
29
    with (mypart8)
30
        instance_destroy();
31
}