Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_axis_geno

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

function scr_enemy_timer_attacks_axis_geno() //gml_Script_scr_enemy_timer_attacks_axis_geno { var enemy_attack = global.enemy_attack if (!instance_exists(obj_attack_cycler_axis_geno)) instance_create(0, 0, obj_attack_cycler_axis_geno) if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true) { if (enemy_attack == "Axis Geno At 1" && (!instance_exists(obj_battle_enemy_attack_axis_geno_1))) instance_create(0, 0, obj_battle_enemy_attack_axis_geno_1) else if (enemy_attack == "Axis Geno At 2" && (!instance_exists(obj_battle_enemy_attack_axis_geno_2))) instance_create(0, 0, obj_battle_enemy_attack_axis_geno_2) else if (enemy_attack == "Axis Geno At 3" && (!instance_exists(obj_battle_enemy_attack_axis_geno_3))) instance_create(0, 0, obj_battle_enemy_attack_axis_geno_3) else if (enemy_attack == "Axis Geno At 4" && (!instance_exists(obj_battle_enemy_attack_axis_geno_4))) instance_create(0, 0, obj_battle_enemy_attack_axis_geno_4) else if (enemy_attack == "Axis Geno At 5" && (!instance_exists(obj_battle_enemy_attack_axis_geno_5))) instance_create(0, 0, obj_battle_enemy_attack_axis_geno_5) else if (enemy_attack == "Axis Geno At 6" && (!instance_exists(obj_battle_enemy_attack_axis_geno_6))) instance_create(0, 0, obj_battle_enemy_attack_axis_geno_6) else if (enemy_attack == "Axis Geno At 7" && (!instance_exists(obj_battle_enemy_attack_axis_geno_7))) instance_create(0, 0, obj_battle_enemy_attack_axis_geno_7) else if (enemy_attack == "Axis Geno At 8" && (!instance_exists(obj_battle_enemy_attack_axis_geno_8))) instance_create(0, 0, obj_battle_enemy_attack_axis_geno_8) else if (enemy_attack == "Axis Geno At 9" && (!instance_exists(obj_battle_enemy_attack_axis_geno_9))) instance_create(0, 0, obj_battle_enemy_attack_axis_geno_9) else if (enemy_attack == "Axis Geno At 10" && (!instance_exists(obj_battle_enemy_attack_axis_geno_10))) instance_create(0, 0, obj_battle_enemy_attack_axis_geno_10) else if (enemy_attack == "Guardener No Attack") { with (obj_dialogue_box_battle_transformation_any) event_user(0) } } }
() //gml_Script_scr_enemy_timer_attacks_axis_geno
2
{
3
    var enemy_attack = global.enemy_attack
4
    if (!instance_exists(obj_attack_cycler_axis_geno))
5
        instance_create(0, 0, obj_attack_cycler_axis_geno)
6
    if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true)
7
    {
8
        if (enemy_attack == "Axis Geno At 1" && (!instance_exists(obj_battle_enemy_attack_axis_geno_1)))
9
            instance_create(0, 0, obj_battle_enemy_attack_axis_geno_1)
10
        else if (enemy_attack == "Axis Geno At 2" && (!instance_exists(obj_battle_enemy_attack_axis_geno_2)))
11
            instance_create(0, 0, obj_battle_enemy_attack_axis_geno_2)
12
        else if (enemy_attack == "Axis Geno At 3" && (!instance_exists(obj_battle_enemy_attack_axis_geno_3)))
13
            instance_create(0, 0, obj_battle_enemy_attack_axis_geno_3)
14
        else if (enemy_attack == "Axis Geno At 4" && (!instance_exists(obj_battle_enemy_attack_axis_geno_4)))
15
            instance_create(0, 0, obj_battle_enemy_attack_axis_geno_4)
16
        else if (enemy_attack == "Axis Geno At 5" && (!instance_exists(obj_battle_enemy_attack_axis_geno_5)))
17
            instance_create(0, 0, obj_battle_enemy_attack_axis_geno_5)
18
        else if (enemy_attack == "Axis Geno At 6" && (!instance_exists(obj_battle_enemy_attack_axis_geno_6)))
19
            instance_create(0, 0, obj_battle_enemy_attack_axis_geno_6)
20
        else if (enemy_attack == "Axis Geno At 7" && (!instance_exists(obj_battle_enemy_attack_axis_geno_7)))
21
            instance_create(0, 0, obj_battle_enemy_attack_axis_geno_7)
22
        else if (enemy_attack == "Axis Geno At 8" && (!instance_exists(obj_battle_enemy_attack_axis_geno_8)))
23
            instance_create(0, 0, obj_battle_enemy_attack_axis_geno_8)
24
        else if (enemy_attack == "Axis Geno At 9" && (!instance_exists(obj_battle_enemy_attack_axis_geno_9)))
25
            instance_create(0, 0, obj_battle_enemy_attack_axis_geno_9)
26
        else if (enemy_attack == "Axis Geno At 10" && (!instance_exists(obj_battle_enemy_attack_axis_geno_10)))
27
            instance_create(0, 0, obj_battle_enemy_attack_axis_geno_10)
28
        else if (enemy_attack == "Guardener No Attack")
29
        {
30
            with (obj_dialogue_box_battle_transformation_any)
31
                event_user(0)
32
        }
33
    }
34
}