Undertale script viewer

← back to main script listing

gml_Object_obj_shyren_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] += 30;
3
if (killed == 0)
4
    global.flag[27 spared_specific] = 1;
5
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);
6
with (mypart1)
7
    instance_destroy();
8
if (killed == 0)
9
{
10
    agent.image_alpha = 0.5;
11
}
12
else
13
{
14
    agent.image_index = 1;
15
    global.flag[81 status_shyren] = 1;
16
}
17
i = 0;
18
repeat (5)
19
{
20
    caster_free(note[i]);
21
    i += 1;
22
}
23
caster_free(longnote[0]);
24
caster_free(longnote[1]);
25
caster_free(badnote[0]);
26
caster_free(badnote[1]);
27
caster_free(badnote[2]);