Undertale script viewer

← back to main script listing

gml_Object_obj_questionasker_Alarm_5

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