Undertale script viewer

← back to main script listing

gml_Object_blt_tinypom_leap_Collision_744

related scripts: Alarm_1Alarm_2Alarm_3Collision_744 Collision_758Collision_759Collision_760Collision_761Collision_762Create_0Destroy_0Draw_0Step_2

(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;
13
}