Undertale script viewer

← back to main script listing

gml_Object_obj_floweybullet_parent_Other_22

(view raw script w/o annotations or w/e)
1
if (global.my_inv < 0)
2
{
3
    global.my_inv = 20;
4
    hitted = 0;
5
    snd_play(snd_hurt1_c);
6
    instance_create(0, 0, obj_vsflowey_shaker);
7
    if (global.battlephase < 6)
8
    {
9
        if (global.my_hp > 40 && hitted == 0)
10
        {
11
            global.my_hp -= 12;
12
            hitted = 1;
13
        }
14
        if (global.my_hp > 30 && hitted == 0)
15
        {
16
            global.my_hp -= 10;
17
            hitted = 1;
18
        }
19
    }
20
    else
21
    {
22
        if (global.my_hp > 40 && hitted == 0)
23
        {
24
            global.my_hp -= 8;
25
            hitted = 1;
26
        }
27
        if (global.my_hp > 30 && hitted == 0)
28
        {
29
            global.my_hp -= 7;
30
            hitted = 1;
31
        }
32
    }
33
    if (global.my_hp > 20 && hitted == 0)
34
    {
35
        global.my_hp -= 6;
36
        hitted = 1;
37
    }
38
    if (global.my_hp > 12 && hitted == 0)
39
    {
40
        global.my_hp -= 4;
41
        hitted = 1;
42
    }
43
    if (global.my_hp > 5 && hitted == 0)
44
    {
45
        global.my_hp -= 2;
46
        hitted = 1;
47
    }
48
    if (global.my_hp > 0 && hitted == 0)
49
    {
50
        global.my_hp -= 1;
51
        hitted = 1;
52
    }
53
}