Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_bowll_leg_fore_front_a_Step_0

(view raw script w/o annotations or w/e)
1
var enemy_dead = global.enemy_dead
2
var enemy_spared = global.enemy_spared
3
if (enemy_dead == false && enemy_spared == false)
4
    image_alpha = global.image_alpha_enemy_attacking
5
if (enemy_dead == true)
6
{
7
    instance_destroy()
8
    return;
9
}
10
else if (enemy_spared == true)
11
{
12
    instance_destroy()
13
    return;
14
}
15
if (damage_disjoint_count > 0)
16
    damage_disjoint_count -= 1
17
else if (enemy_dead == false && enemy_spared == false && damage_disjoint_count <= 0)
18
    sprite_index = spr_bowll_leg_fore_front
19
if (instance_exists(obj_text_damage_count) && global.fight_number == 1 && no_loop_damage_disjoint_count == false)
20
{
21
    damage_disjoint_count = 12
22
    no_loop_damage_disjoint_count = true
23
}
24
else if (!instance_exists(obj_text_damage_count))
25
    no_loop_damage_disjoint_count = false
26
if (damage_disjoint_count == 12)
27
    damage_disjoint_x = -50
28
else if (damage_disjoint_count == 10)
29
    damage_disjoint_x = 50
30
else if (damage_disjoint_count == 8)
31
    damage_disjoint_x = -20
32
else if (damage_disjoint_count == 6)
33
    damage_disjoint_x = 20
34
else if (damage_disjoint_count == 4)
35
    damage_disjoint_x = -10
36
else if (damage_disjoint_count == 2)
37
    damage_disjoint_x = 10
38
else if (damage_disjoint_count == 0)
39
    damage_disjoint_x = 0
40
if (damage_disjoint_count > 0 || global.current_hp_enemy <= 0)
41
    image_alpha = 0