Undertale script viewer

← back to main script listing

gml_Object_obj_asgorebulparent_Other_10

(view raw script w/o annotations or w/e)
1
dmg = 0;
2
if (instance_exists(obj_asgoreb))
3
    dmg = obj_asgoreb.curatk;
4
set = 0;
5
if (global.hp > 1)
6
    set = 1;
7
if (set == 1)
8
{
9
    scr_damagestandard_x();
10
    if (global.hp <= 0)
11
        global.hp = 1;
12
}
13
if (set == 0)
14
{
15
    scr_damagestandard_x();
16
    if (global.hp <= 0)
17
        global.hp = 0;
18
}