Undertale script viewer

← back to main script listing

gml_Object_obj_questionasker_Alarm_5

related scripts: Alarm_4 • Alarm_5 • Alarm_6 • Alarm_7 • Alarm_9 • Create_0 • Draw_0 • KeyPress_32 • KeyPress_78 • Other_10 • Other_11

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