Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_feisty_four_moray_hand_left_Other_10

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