Undertale script viewer

← back to main script listing

gml_Object_obj_iceteeth_Other_11

(view raw script w/o annotations or w/e)
1
if (global.invc < 1)
2
{
3
    dmgamt = round(dmg - ((global.df + global.adef) / 5));
4
    if (dmgamt < 1)
5
        dmgamt = 1;
6
    global.hp -= dmgamt;
7
    snd_play(snd_hurt1);
8
    global.hshake = 2;
9
    global.shakespeed = 2;
10
    global.vshake = 2;
11
    instance_create(0, 0, obj_shaker);
12
    global.invc = global.inv * 2;
13
}