Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_flower_girls

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

function scr_enemy_timer_attacks_flower_girls() //gml_Script_scr_enemy_timer_attacks_flower_girls { 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 == "Colored Flowers") { if (!instance_exists(obj_battle_enemy_attack_flowergirls_colored_creator)) instance_create(0, 0, obj_battle_enemy_attack_flowergirls_colored_creator) } else if (enemy_attack == "Growing Flowers") { if (!instance_exists(obj_battle_enemy_attack_flowergirls_growing_flowers_creator)) instance_create(0, 0, obj_battle_enemy_attack_flowergirls_growing_flowers_creator) } else if (enemy_attack == "Spinning Flowers") { if (!instance_exists(obj_battle_enemy_attack_flowergirls_spinning_flower_creator)) instance_create(0, 0, obj_battle_enemy_attack_flowergirls_spinning_flower_creator) } else if (enemy_attack == "Falling Flowers") { if (!instance_exists(obj_battle_enemy_attack_flowergirls_falling_flowers_creator)) instance_create(0, 0, obj_battle_enemy_attack_flowergirls_falling_flowers_creator) } } }
() //gml_Script_scr_enemy_timer_attacks_flower_girls
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 == "Colored Flowers")
7
        {
8
            if (!instance_exists(obj_battle_enemy_attack_flowergirls_colored_creator))
9
                instance_create(0, 0, obj_battle_enemy_attack_flowergirls_colored_creator)
10
        }
11
        else if (enemy_attack == "Growing Flowers")
12
        {
13
            if (!instance_exists(obj_battle_enemy_attack_flowergirls_growing_flowers_creator))
14
                instance_create(0, 0, obj_battle_enemy_attack_flowergirls_growing_flowers_creator)
15
        }
16
        else if (enemy_attack == "Spinning Flowers")
17
        {
18
            if (!instance_exists(obj_battle_enemy_attack_flowergirls_spinning_flower_creator))
19
                instance_create(0, 0, obj_battle_enemy_attack_flowergirls_spinning_flower_creator)
20
        }
21
        else if (enemy_attack == "Falling Flowers")
22
        {
23
            if (!instance_exists(obj_battle_enemy_attack_flowergirls_falling_flowers_creator))
24
                instance_create(0, 0, obj_battle_enemy_attack_flowergirls_falling_flowers_creator)
25
        }
26
    }
27
}