Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_guardener

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

function scr_enemy_timer_attacks_guardener() //gml_Script_scr_enemy_timer_attacks_guardener { 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 == "Guardener Attack 1" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_1))) instance_create(320, 280, obj_battle_enemy_attack_guardener_attack_1) else if (enemy_attack == "Guardener Attack 2" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_2))) instance_create(320, 280, obj_battle_enemy_attack_guardener_attack_2) else if (enemy_attack == "Guardener Attack 3" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_3))) instance_create(320, 280, obj_battle_enemy_attack_guardener_attack_3) else if (enemy_attack == "Guardener Attack 4" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_4))) instance_create(320, 280, obj_battle_enemy_attack_guardener_attack_4) else if (enemy_attack == "Guardener Attack 5" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_5))) instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_5) else if (enemy_attack == "Guardener Attack 6" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_6))) instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_6) else if (enemy_attack == "Guardener Attack 7" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_7))) instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_7) else if (enemy_attack == "Guardener Attack 8" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_8))) instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_8) else if (enemy_attack == "Guardener Attack 9" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_9))) instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_9) else if (enemy_attack == "Guardener Attack 10" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_10))) instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_10) else if (enemy_attack == "Guardener Attack 11" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_11))) instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_11) else if (enemy_attack == "Guardener Attack 12" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_12))) instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_12) else if (enemy_attack == "Guardener No Attack") { with (obj_dialogue_box_battle_transformation_any) event_user(0) } } }
() //gml_Script_scr_enemy_timer_attacks_guardener
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 == "Guardener Attack 1" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_1)))
7
            instance_create(320, 280, obj_battle_enemy_attack_guardener_attack_1)
8
        else if (enemy_attack == "Guardener Attack 2" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_2)))
9
            instance_create(320, 280, obj_battle_enemy_attack_guardener_attack_2)
10
        else if (enemy_attack == "Guardener Attack 3" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_3)))
11
            instance_create(320, 280, obj_battle_enemy_attack_guardener_attack_3)
12
        else if (enemy_attack == "Guardener Attack 4" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_4)))
13
            instance_create(320, 280, obj_battle_enemy_attack_guardener_attack_4)
14
        else if (enemy_attack == "Guardener Attack 5" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_5)))
15
            instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_5)
16
        else if (enemy_attack == "Guardener Attack 6" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_6)))
17
            instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_6)
18
        else if (enemy_attack == "Guardener Attack 7" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_7)))
19
            instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_7)
20
        else if (enemy_attack == "Guardener Attack 8" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_8)))
21
            instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_8)
22
        else if (enemy_attack == "Guardener Attack 9" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_9)))
23
            instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_9)
24
        else if (enemy_attack == "Guardener Attack 10" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_10)))
25
            instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_10)
26
        else if (enemy_attack == "Guardener Attack 11" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_11)))
27
            instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_11)
28
        else if (enemy_attack == "Guardener Attack 12" && (!instance_exists(obj_battle_enemy_attack_guardener_attack_12)))
29
            instance_create(0, 0, obj_battle_enemy_attack_guardener_attack_12)
30
        else if (enemy_attack == "Guardener No Attack")
31
        {
32
            with (obj_dialogue_box_battle_transformation_any)
33
                event_user(0)
34
        }
35
    }
36
}