Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_dalv_lightning_balls

(view raw script w/o annotations or w/e)
1
function scr_enemy_attack_dalv_lightning_balls
scr_enemy_attack_dalv_lightning_balls

function scr_enemy_attack_dalv_lightning_balls() //gml_Script_scr_enemy_attack_dalv_lightning_balls { global.attack_counter_max = 5 if (global.attack_counter == 0 && global.timer_attacks_counter < 7) { instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_battle_enemy_attack_dalv_lightning_ball) global.timer_attacks_counter += 1 } }
() //gml_Script_scr_enemy_attack_dalv_lightning_balls
2
{
3
    global.attack_counter_max = 5
4
    if (global.attack_counter == 0 && global.timer_attacks_counter < 7)
5
    {
6
        instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_battle_enemy_attack_dalv_lightning_ball)
7
        global.timer_attacks_counter += 1
8
    }
9
}