Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_dalv_lightning_bolt

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

function scr_enemy_attack_dalv_lightning_bolt() //gml_Script_scr_enemy_attack_dalv_lightning_bolt { global.attack_counter_max = 0 if (global.attack_counter == 0 && global.timer_attacks_counter < 6) { if (global.timer_attacks_counter < 5) instance_create((obj_dalv_body.x - 68), (obj_dalv_body.y - 76), obj_battle_enemy_attack_dalv_lightning_bolt) else { with (obj_dalv_body) cloak_direction = 2 } global.timer_attacks_counter += 1 } }
() //gml_Script_scr_enemy_attack_dalv_lightning_bolt
2
{
3
    global.attack_counter_max = 0
4
    if (global.attack_counter == 0 && global.timer_attacks_counter < 6)
5
    {
6
        if (global.timer_attacks_counter < 5)
7
            instance_create((obj_dalv_body.x - 68), (obj_dalv_body.y - 76), obj_battle_enemy_attack_dalv_lightning_bolt)
8
        else
9
        {
10
            with (obj_dalv_body)
11
                cloak_direction = 2
12
        }
13
        global.timer_attacks_counter += 1
14
    }
15
}