Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_crispy_slash_drawing_crispy_scroll

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

function scr_enemy_attack_crispy_slash_drawing_crispy_scroll() //gml_Script_scr_enemy_attack_crispy_slash_drawing_crispy_scroll { global.attack_counter_max = 40 if (global.attack_counter == 0 && global.timer_attacks_counter < 6) { if (global.timer_attacks_counter == 0) instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_1) else if (global.timer_attacks_counter == 1) instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_2) else if (global.timer_attacks_counter == 2) instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_1) else if (global.timer_attacks_counter == 3) instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_2) else if (global.timer_attacks_counter == 4) instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_1) else if (global.timer_attacks_counter == 5) { instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_3) instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_4) } global.timer_attacks_counter += 1 } }
() //gml_Script_scr_enemy_attack_crispy_slash_drawing_crispy_scroll
2
{
3
    global.attack_counter_max = 40
4
    if (global.attack_counter == 0 && global.timer_attacks_counter < 6)
5
    {
6
        if (global.timer_attacks_counter == 0)
7
            instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_1)
8
        else if (global.timer_attacks_counter == 1)
9
            instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_2)
10
        else if (global.timer_attacks_counter == 2)
11
            instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_1)
12
        else if (global.timer_attacks_counter == 3)
13
            instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_2)
14
        else if (global.timer_attacks_counter == 4)
15
            instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_1)
16
        else if (global.timer_attacks_counter == 5)
17
        {
18
            instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_3)
19
            instance_create(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, obj_battle_enemy_attack_crispy_slash_warning_4)
20
        }
21
        global.timer_attacks_counter += 1
22
    }
23
}