Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_feisty_four_moray_hand_right_Other_10

related scripts: Create_0Draw_0Other_10

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