Undertale script viewer

← back to main script listing

gml_Object_obj_whimsalot_Destroy_0

(view raw script w/o annotations or w/e)
1
if (global.flag[6 hardmode] == 0)
2
{
3
    if (mercymod > 10 && global.monsterhp[myself] == global.monstermaxhp[myself])
4
    {
5
        global.goldreward[3] += 50;
6
        global.flag[152 spared_whimsalot] = 1;
7
    }
8
}
9
if (global.flag[6 hardmode] == 1)
10
{
11
    if (mercymod > 10 && global.monsterhp[myself] == global.monstermaxhp[myself])
12
        global.goldreward[3] += 3;
13
}
14
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);
15
with (mypart1)
16
    instance_destroy();