Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_axis_body_geno_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (global.current_hp_enemy <= 0)
4
{
5
    if (!death_sprite)
6
        death_sprite = true
7
}
8
if (death_sprite == true && sprite_index != spr_axis_body_nocharge && sprite_index != spr_axis_body_nocharge_melancholy)
9
{
10
    sprite_index = spr_axis_body_nocharge_melancholy
11
    image_index = 0
12
    alarm[0] = 45
alarm[0]

instance_create(380, 74, obj_quote_bubble_battle_yellow_3) instance_create_depth(0, 0, -708, obj_quote_battle_axis_death)
13
}
14
if (global.enemy_dead == false && global.enemy_spared == false)
15
    image_alpha = global.image_alpha_enemy_attacking
16
if (damage_disjoint_count > 0)
17
    damage_disjoint_count -= 1
18
if (instance_exists(obj_text_damage_count) && global.fight_number == 1 && no_loop_damage_disjoint_count == false)
19
{
20
    if (sprite_index != spr_axis_body_nocharge && sprite_index != spr_axis_body_nocharge_melancholy)
21
        sprite_index = spr_axis_body_geno_lid_block
22
    else
23
    {
24
        damage_disjoint_count = 12
25
        no_loop_damage_disjoint_count = true
26
    }
27
}
28
else if (!instance_exists(obj_text_damage_count))
29
{
30
    no_loop_damage_disjoint_count = false
31
    if (sprite_index == spr_axis_body_geno_lid_block)
32
        sprite_index = spr_axis_body_geno_lid
33
}
34
if (damage_disjoint_count == 12)
35
    damage_disjoint_x = -50
36
else if (damage_disjoint_count == 10)
37
    damage_disjoint_x = 50
38
else if (damage_disjoint_count == 8)
39
    damage_disjoint_x = -20
40
else if (damage_disjoint_count == 6)
41
    damage_disjoint_x = 20
42
else if (damage_disjoint_count == 4)
43
    damage_disjoint_x = -10
44
else if (damage_disjoint_count == 2)
45
    damage_disjoint_x = 10
46
else if (damage_disjoint_count == 0)
47
    damage_disjoint_x = 0
48
x = starting_point_x + damage_disjoint_x