Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_cactony_slither_duo

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

function scr_enemy_timer_attacks_cactony_slither_duo() //gml_Script_scr_enemy_timer_attacks_cactony_slither_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 == "Cactony Slither Attack 1" && (!instance_exists(obj_battle_enemy_attack_cs_1))) instance_create(0, 0, obj_battle_enemy_attack_cs_1) else if (enemy_attack == "Cactony Slither Attack 2" && (!instance_exists(obj_battle_enemy_attack_cs_2))) instance_create(0, 0, obj_battle_enemy_attack_cs_2) else if (enemy_attack == "Slither Pottery" || enemy_attack == "Slither Snake") script_execute(gml_Script_scr_enemy_timer_attacks_slither_solo) else if (enemy_attack == "Cactony Needle Side" || enemy_attack == "Cactony Needle Top" || enemy_attack == "Cactony Needle Green") script_execute(gml_Script_scr_enemy_timer_attacks_cactony_solo) } }
() //gml_Script_scr_enemy_timer_attacks_cactony_slither_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 == "Cactony Slither Attack 1" && (!instance_exists(obj_battle_enemy_attack_cs_1)))
7
            instance_create(0, 0, obj_battle_enemy_attack_cs_1)
8
        else if (enemy_attack == "Cactony Slither Attack 2" && (!instance_exists(obj_battle_enemy_attack_cs_2)))
9
            instance_create(0, 0, obj_battle_enemy_attack_cs_2)
10
        else if (enemy_attack == "Slither Pottery" || enemy_attack == "Slither Snake")
11
            script_execute(gml_Script_scr_enemy_timer_attacks_slither_solo)
12
        else if (enemy_attack == "Cactony Needle Side" || enemy_attack == "Cactony Needle Top" || enemy_attack == "Cactony Needle Green")
13
            script_execute(gml_Script_scr_enemy_timer_attacks_cactony_solo)
14
    }
15
}