Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_frostermit_know_cone_duo

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

function scr_enemy_timer_attacks_frostermit_know_cone_duo() //gml_Script_scr_enemy_timer_attacks_frostermit_know_cone_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 == "Frostermit Snowflakes Blueberries") { script_execute(gml_Script_scr_enemy_attack_frostermit_snowflakes_blueberries) 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 == "Frostermit Snowflakes Oranges") { script_execute(gml_Script_scr_enemy_attack_frostermit_snowflakes_oranges) 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 == "Frostermit Snowflakes" || enemy_attack == "Frostermit Ice Cubes" || enemy_attack == "Frostermit Pinchers") script_execute(gml_Script_scr_enemy_timer_attacks_frostermit_solo) else if (enemy_attack == "Know Cone Blueberries" || enemy_attack == "Know Cone Oranges" || enemy_attack == "Know Cone Cherries" || enemy_attack == "Know Cone Fig") script_execute(gml_Script_scr_enemy_timer_attacks_know_cone_solo) } }
() //gml_Script_scr_enemy_timer_attacks_frostermit_know_cone_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 == "Frostermit Snowflakes Blueberries")
7
        {
8
            script_execute(gml_Script_scr_enemy_attack_frostermit_snowflakes_blueberries)
9
            if (global.attack_counter >= 0)
10
            {
11
                global.attack_counter -= 1
12
                if (global.attack_counter < 0)
13
                    global.attack_counter = global.attack_counter_max
14
            }
15
        }
16
        else if (enemy_attack == "Frostermit Snowflakes Oranges")
17
        {
18
            script_execute(gml_Script_scr_enemy_attack_frostermit_snowflakes_oranges)
19
            if (global.attack_counter >= 0)
20
            {
21
                global.attack_counter -= 1
22
                if (global.attack_counter < 0)
23
                    global.attack_counter = global.attack_counter_max
24
            }
25
        }
26
        else if (enemy_attack == "Frostermit Snowflakes" || enemy_attack == "Frostermit Ice Cubes" || enemy_attack == "Frostermit Pinchers")
27
            script_execute(gml_Script_scr_enemy_timer_attacks_frostermit_solo)
28
        else if (enemy_attack == "Know Cone Blueberries" || enemy_attack == "Know Cone Oranges" || enemy_attack == "Know Cone Cherries" || enemy_attack == "Know Cone Fig")
29
            script_execute(gml_Script_scr_enemy_timer_attacks_know_cone_solo)
30
    }
31
}