Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_energy_balls_0_creator_Step_0

(view raw script w/o annotations or w/e)
1
if ((!instance_exists(obj_battle_enemy_attack_axis_energy_ball_boss)) && attack_can_end == true)
2
{
3
    if (!alarm[1])
4
        alarm[1] = 15
alarm[1]

if (block_successful == true) { instance_destroy(obj_attack_cycler_axis) global.attack_cycle += 1 global.special_action_count += 1 instance_destroy() } else { attack_can_end = false attack_started = false }
5
}
6
if instance_exists(obj_battle_enemy_attack_axis_energy_ball_boss_destroy_effect)
7
    block_successful = true
8
if (obj_heart_battle_fighting_parent.x != obj_heart_battle_fighting_parent.xstart)
9
{
10
    if (!attack_started)
11
    {
12
        alarm[0] = 30
alarm[0]

var battle_box = obj_dialogue_box_battle_transformation_any var spr_width = sprite_get_width(spr_battle_enemy_attack_axis_ball) var spawn_x = 320 var spawn_y = battle_box.bbox_top - 60 var ball = instance_create_depth(spawn_x, spawn_y, -100, obj_battle_enemy_attack_axis_energy_ball_boss) ball.direction = 270 ball.speed = 7 attack_can_end = true
13
        attack_started = true
14
    }
15
}