Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_hand_right_Step_0

(view raw script w/o annotations or w/e)
1
var _temp_local_var_4;
2
var enemy_dead = global.enemy_dead
3
var enemy_spared = global.enemy_spared
4
var enemy_mode = global.enemy_mode
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)
18
{
19
    var _temp_local_var_4 = enemy_mode
20
    hand_right_sprite = 2058
21
}
22
if (instance_exists(obj_text_damage_count) && global.fight_number == 1 && no_loop_damage_disjoint_count == false)
23
{
24
    damage_disjoint_count = 12
25
    no_loop_damage_disjoint_count = true
26
}
27
else if (!instance_exists(obj_text_damage_count))
28
    no_loop_damage_disjoint_count = false
29
if (damage_disjoint_count == 12)
30
    damage_disjoint_x = -50
31
else if (damage_disjoint_count == 10)
32
    damage_disjoint_x = 50
33
else if (damage_disjoint_count == 8)
34
    damage_disjoint_x = -20
35
else if (damage_disjoint_count == 6)
36
    damage_disjoint_x = 20
37
else if (damage_disjoint_count == 4)
38
    damage_disjoint_x = -10
39
else if (damage_disjoint_count == 2)
40
    damage_disjoint_x = 10
41
else if (damage_disjoint_count == 0)
42
    damage_disjoint_x = 0
43
if (damage_disjoint_count > 0)
44
    image_alpha = 0