Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_decibat_wave_blue

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

function scr_enemy_attack_decibat_wave_blue() { if (global.attack_counter == 0) global.timer_attacks_switch = false; if (global.timer_attacks_switch == false) global.attack_counter_max = 3; if (global.attack_counter == 0 && global.timer_attacks_counter < 3) { instance_create(obj_decibat_body.x, obj_decibat_body.y - 10, obj_battle_enemy_attack_decibat_wave_blue); global.timer_attacks_counter += 1; if (global.timer_attacks_counter == 3) { global.timer_attacks_switch = true; global.attack_counter_max = 30; global.timer_attacks_counter = 0; } } }
()
2
{
3
    if (global.attack_counter == 0)
4
        global.timer_attacks_switch = false;
5
    if (global.timer_attacks_switch == false)
6
        global.attack_counter_max = 3;
7
    if (global.attack_counter == 0 && global.timer_attacks_counter < 3)
8
    {
9
        instance_create(obj_decibat_body.x, obj_decibat_body.y - 10, obj_battle_enemy_attack_decibat_wave_blue);
10
        global.timer_attacks_counter += 1;
11
        if (global.timer_attacks_counter == 3)
12
        {
13
            global.timer_attacks_switch = true;
14
            global.attack_counter_max = 30;
15
            global.timer_attacks_counter = 0;
16
        }
17
    }
18
}