Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_feisty_four_ace_head_Other_10

(view raw script w/o annotations or w/e)
1
if (!instance_exists(obj_feisty_four_ace_legs))
2
{
3
    instance_destroy()
4
    return;
5
}
6
var enemy_dead = global.enemy_dead
7
var enemy_spared = global.enemy_spared
8
var enemy_mode = global.enemy_mode
9
if (enemy_dead == true)
10
{
11
    instance_destroy()
12
    return;
13
}
14
else if (enemy_spared == true)
15
{
16
    instance_destroy()
17
    return;
18
}
19
if (damage_disjoint_count > 0)
20
    damage_disjoint_count -= 1
21
else if (enemy_dead == false && enemy_spared == false)
22
{
23
    if (global.current_hp_enemy <= 0)
24
        sprite_index = spr_feisty_four_ace_head
25
    else
26
        sprite_index = spr_feisty_four_ace_head
27
}
28
if (instance_exists(obj_text_damage_count) && global.fight_number == 1 && no_loop_damage_disjoint_count == false)
29
{
30
    damage_disjoint_count = 12
31
    no_loop_damage_disjoint_count = true
32
}
33
else if (!instance_exists(obj_text_damage_count))
34
    no_loop_damage_disjoint_count = false
35
if (damage_disjoint_count == 12)
36
    damage_disjoint_x = -50
37
else if (damage_disjoint_count == 10)
38
    damage_disjoint_x = 50
39
else if (damage_disjoint_count == 8)
40
    damage_disjoint_x = -20
41
else if (damage_disjoint_count == 6)
42
    damage_disjoint_x = 20
43
else if (damage_disjoint_count == 4)
44
    damage_disjoint_x = -10
45
else if (damage_disjoint_count == 2)
46
    damage_disjoint_x = 10
47
else if (damage_disjoint_count == 0)
48
    damage_disjoint_x = 0
49
if (damage_disjoint_count > 0)
50
    image_alpha = 0
51
if (obj_feisty_four_ace_legs.animating == true)
52
{
53
    x = obj_feisty_four_ace_legs.x - difference_x
54
    y = obj_feisty_four_ace_legs.head_displacement_y
55
}
56
else
57
{
58
    x = obj_feisty_four_ace_legs.x - difference_x
59
    y = obj_feisty_four_ace_legs.y - difference_y
60
}