Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_insomnitot_solo

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

function scr_enemy_timer_attacks_insomnitot_solo() //gml_Script_scr_enemy_timer_attacks_insomnitot_solo { 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" && (!instance_exists(obj_battle_enemy_attack_insomnitot_fence))) script_execute(gml_Script_scr_enemy_attack_insomnitot_sheep) else if (enemy_attack == "Insomnitot ZZZ") { script_execute(gml_Script_scr_enemy_attack_insomnitot_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 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 } } } }
() //gml_Script_scr_enemy_timer_attacks_insomnitot_solo
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" && (!instance_exists(obj_battle_enemy_attack_insomnitot_fence)))
7
            script_execute(gml_Script_scr_enemy_attack_insomnitot_sheep)
8
        else if (enemy_attack == "Insomnitot ZZZ")
9
        {
10
            script_execute(gml_Script_scr_enemy_attack_insomnitot_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 Stars")
19
        {
20
            script_execute(gml_Script_scr_enemy_attack_insomnitot_stars)
21
            if (global.attack_counter >= 0)
22
            {
23
                global.attack_counter -= 1
24
                if (global.attack_counter < 0)
25
                    global.attack_counter = global.attack_counter_max
26
            }
27
        }
28
    }
29
}