Undertale script viewer

← back to main script listing

gml_Object_obj_lastbeam_Alarm_5

(view raw script w/o annotations or w/e)
1
snd_play(snd_hurt1);
2
if (instance_exists(obj_shaker) == 0)
3
    instance_create(0, 0, obj_shaker);
4
if (hits == 0)
5
    global.hp = 1;
6
if (hits == 1)
7
    global.hp = 1;
8
if (hits == 2)
9
    global.hp = 0.9;
10
if (hits == 3)
11
    global.hp = 0.5;
12
if (hits == 4)
13
    global.hp = 0.1;
14
if (hits == 5)
15
    global.hp = 0.01;
16
if (hits == 6)
17
    global.flag[509 decimal_hp_state] = 1;
18
if (hits == 7)
19
    global.flag[509 decimal_hp_state] = 2;
20
if (hits == 8)
21
    global.flag[509 decimal_hp_state] = 3;
22
if (hits == 9)
23
    global.flag[509 decimal_hp_state] = 4;
24
hits += 1;
25
alarm[5] = 40;
gml_Object_obj_lastbeam_Alarm_5.gml

snd_play(snd_hurt1); if (instance_exists(obj_shaker) == 0) instance_create(0, 0, obj_shaker); if (hits == 0) global.hp = 1; if (hits == 1) global.hp = 1; if (hits == 2) global.hp = 0.9; if (hits == 3) global.hp = 0.5; if (hits == 4) global.hp = 0.1; if (hits == 5) global.hp = 0.01; if (hits == 6) global.flag[509 decimal_hp_state] = 1; if (hits == 7) global.flag[509 decimal_hp_state] = 2; if (hits == 8) global.flag[509 decimal_hp_state] = 3; if (hits == 9) global.flag[509 decimal_hp_state] = 4; hits += 1; alarm[5] = 40;