Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_dalv_lightning_vertical

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

function scr_enemy_attack_dalv_lightning_vertical() //gml_Script_scr_enemy_attack_dalv_lightning_vertical { if (global.attack_counter_max != 40) { global.attack_counter_max = 40 global.attack_counter = global.attack_counter_max } if (global.attack_counter == 0) instance_create(obj_heart_battle_fighting_parent.x, 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_vertical_warning) }
() //gml_Script_scr_enemy_attack_dalv_lightning_vertical
2
{
3
    if (global.attack_counter_max != 40)
4
    {
5
        global.attack_counter_max = 40
6
        global.attack_counter = global.attack_counter_max
7
    }
8
    if (global.attack_counter == 0)
9
        instance_create(obj_heart_battle_fighting_parent.x, 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_vertical_warning)
10
}