Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_insomnitot_duo

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

function scr_enemy_timer_attacks_insomnitot_duo() //gml_Script_scr_enemy_timer_attacks_insomnitot_duo { var enemy_attack = global.enemy_attack if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true) { if (enemy_attack == "Insomnitot Sheep ZZZ") { if (!instance_exists(obj_battle_enemy_attack_insomnitot_fence)) script_execute(gml_Script_scr_enemy_attack_insomnitot_sheep_stars) script_execute(gml_Script_scr_enemy_attack_insomnitot_sheep_zzz) if (global.attack_counter >= 0) { global.attack_counter -= 1 if (global.attack_counter < 0) global.attack_counter = global.attack_counter_max } } else if (enemy_attack == "Insomnitot Sheep Stars") { if (!instance_exists(obj_battle_enemy_attack_insomnitot_fence)) script_execute(gml_Script_scr_enemy_attack_insomnitot_sheep_stars) script_execute(gml_Script_scr_enemy_attack_insomnitot_stars) if (global.attack_counter >= 0) { global.attack_counter -= 1 if (global.attack_counter < 0) global.attack_counter = global.attack_counter_max } } else if (enemy_attack == "Insomnitot Sheep" || enemy_attack == "Insomnitot ZZZ" || enemy_attack == "Insomnitot Stars") script_execute(gml_Script_scr_enemy_timer_attacks_insomnitot_solo) } }
() //gml_Script_scr_enemy_timer_attacks_insomnitot_duo
2
{
3
    var enemy_attack = global.enemy_attack
4
    if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true)
5
    {
6
        if (enemy_attack == "Insomnitot Sheep ZZZ")
7
        {
8
            if (!instance_exists(obj_battle_enemy_attack_insomnitot_fence))
9
                script_execute(gml_Script_scr_enemy_attack_insomnitot_sheep_stars)
10
            script_execute(gml_Script_scr_enemy_attack_insomnitot_sheep_zzz)
11
            if (global.attack_counter >= 0)
12
            {
13
                global.attack_counter -= 1
14
                if (global.attack_counter < 0)
15
                    global.attack_counter = global.attack_counter_max
16
            }
17
        }
18
        else if (enemy_attack == "Insomnitot Sheep Stars")
19
        {
20
            if (!instance_exists(obj_battle_enemy_attack_insomnitot_fence))
21
                script_execute(gml_Script_scr_enemy_attack_insomnitot_sheep_stars)
22
            script_execute(gml_Script_scr_enemy_attack_insomnitot_stars)
23
            if (global.attack_counter >= 0)
24
            {
25
                global.attack_counter -= 1
26
                if (global.attack_counter < 0)
27
                    global.attack_counter = global.attack_counter_max
28
            }
29
        }
30
        else if (enemy_attack == "Insomnitot Sheep" || enemy_attack == "Insomnitot ZZZ" || enemy_attack == "Insomnitot Stars")
31
            script_execute(gml_Script_scr_enemy_timer_attacks_insomnitot_solo)
32
    }
33
}