Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_battle_core_directory_enemy_attack_scripts

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

function scr_battle_core_directory_enemy_attack_scripts() //gml_Script_scr_battle_core_directory_enemy_attack_scripts { var battle_enemy_name = global.battle_enemy_name var game_mode = global.game_mode if instance_exists(obj_heart_battle_fighting_parent) { if (global.party_member == 1171) { if (battle_ceroba_buff_noloop == false && obj_heart_battle_fighting_parent.moveable == true) { battle_ceroba_buff_noloop = true if ((!instance_exists(obj_battle_enemy_attack_ceroba_diamond_buff)) && global.current_pp_self <= 0) instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -30, obj_battle_enemy_attack_ceroba_diamond_buff) return; } else if instance_exists(obj_battle_enemy_attack_ceroba_diamond_buff) return; } if (battle_enemy_name == "flier solo") script_execute(gml_Script_scr_enemy_timer_attacks_flier_solo) else if (battle_enemy_name == "flier trio") script_execute(gml_Script_scr_enemy_timer_attacks_flier_trio) else if (battle_enemy_name == "penilla solo") script_execute(gml_Script_scr_enemy_timer_attacks_penilla_solo) else if (battle_enemy_name == "flier penilla duo") script_execute(gml_Script_scr_enemy_timer_attacks_flier_penilla_duo) else if (battle_enemy_name == "sweet corn solo") script_execute(gml_Script_scr_enemy_timer_attacks_sweet_corn_solo) else if (battle_enemy_name == "sweet corn duo") script_execute(gml_Script_scr_enemy_timer_attacks_sweet_corn_duo) else if (battle_enemy_name == "sweet corn penilla duo") script_execute(gml_Script_scr_enemy_timer_attacks_sweet_corn_penilla_duo) else if (battle_enemy_name == "crispy scroll solo") script_execute(gml_Script_scr_enemy_timer_attacks_crispy_scroll_solo) else if (battle_enemy_name == "crispy scroll penilla duo") script_execute(gml_Script_scr_enemy_timer_attacks_crispy_scroll_penilla_duo) else if (battle_enemy_name == "rorrim solo") script_execute(gml_Script_scr_enemy_timer_attacks_rorrim_solo) else if (battle_enemy_name == "decibat") script_execute(gml_Script_scr_enemy_timer_attacks_decibat) else if (battle_enemy_name == "dalv") script_execute(gml_Script_scr_enemy_timer_attacks_dalv) else if (battle_enemy_name == "micro froggit") script_execute(gml_Script_scr_enemy_timer_attacks_micro_froggit) else if (battle_enemy_name == "insomnitot solo") script_execute(gml_Script_scr_enemy_timer_attacks_insomnitot_solo) else if (battle_enemy_name == "insomnitot duo") script_execute(gml_Script_scr_enemy_timer_attacks_insomnitot_duo) else if (battle_enemy_name == "know cone solo") script_execute(gml_Script_scr_enemy_timer_attacks_know_cone_solo) else if (battle_enemy_name == "know cone insomnitot duo") script_execute(gml_Script_scr_enemy_timer_attacks_know_cone_insomnitot_duo) else if (battle_enemy_name == "frostermit solo") script_execute(gml_Script_scr_enemy_timer_attacks_frostermit_solo) else if (battle_enemy_name == "frostermit know cone duo") script_execute(gml_Script_scr_enemy_timer_attacks_frostermit_know_cone_duo) else if (battle_enemy_name == "trihecta together" || battle_enemy_name == "trihecta separated") script_execute(gml_Script_scr_enemy_timer_attacks_trihecta) else if (battle_enemy_name == "martlet pacifist") script_execute(gml_Script_scr_enemy_timer_attacks_martlet_pacifist) else if (battle_enemy_name == "martlet genocide") script_execute(gml_Script_scr_enemy_timer_attacks_martlet_genocide) else if (battle_enemy_name == "dunebud solo") script_execute(gml_Script_scr_enemy_timer_attacks_dunebud_solo) else if (battle_enemy_name == "dunebud duo") script_execute(gml_Script_scr_enemy_timer_attacks_dunebud_duo) else if (battle_enemy_name == "cactony solo") script_execute(gml_Script_scr_enemy_timer_attacks_cactony_solo) else if (battle_enemy_name == "slither solo") script_execute(gml_Script_scr_enemy_timer_attacks_slither_solo) else if (battle_enemy_name == "bowll solo") script_execute(gml_Script_scr_enemy_timer_attacks_bowll_solo) else if (battle_enemy_name == "cactony slither duo") script_execute(gml_Script_scr_enemy_timer_attacks_cactony_slither_duo) else if (battle_enemy_name == "el bailador") script_execute(gml_Script_scr_enemy_timer_attacks_el_bailador) else if (battle_enemy_name == "flower girls") script_execute(gml_Script_scr_enemy_timer_attacks_flower_girls) else if (battle_enemy_name == "ceroba genocide") script_execute(gml_Script_scr_enemy_timer_attacks_ceroba_genocide) else if (battle_enemy_name == "starlo") script_execute(gml_Script_scr_enemy_timer_attacks_starlo) else if (battle_enemy_name == "boulders minifight") script_execute(gml_Script_scr_enemy_timer_attacks_boulders) else if (battle_enemy_name == "feisty five") script_execute(gml_Script_scr_enemy_timer_attacks_feisty_five) else if (battle_enemy_name == "steam minifight") script_execute(gml_Script_scr_enemy_timer_attacks_steam) else if (battle_enemy_name == "energy balls minifight") script_execute(gml_Script_scr_enemy_timer_attacks_energy_balls) else if (battle_enemy_name == "goosic") script_execute(gml_Script_scr_enemy_timer_attacks_goosic_solo) else if (battle_enemy_name == "jandroid") script_execute(gml_Script_scr_enemy_timer_attacks_jandroid_solo) else if (battle_enemy_name == "sousborg") script_execute(gml_Script_scr_enemy_timer_attacks_sousborg) else if (battle_enemy_name == "tellyvis") script_execute(gml_Script_scr_enemy_timer_attacks_tellyvis_solo) else if (battle_enemy_name == "jandroid goosic duo") script_execute(gml_Script_scr_enemy_timer_attacks_jandroid_goosic_duo) else if (battle_enemy_name == "jandroid duo") ...
() //gml_Script_scr_battle_core_directory_enemy_attack_scripts
2
{
3
    var battle_enemy_name = global.battle_enemy_name
4
    var game_mode = global.game_mode
5
    if instance_exists(obj_heart_battle_fighting_parent)
6
    {
7
        if (global.party_member == 1171)
8
        {
9
            if (battle_ceroba_buff_noloop == false && obj_heart_battle_fighting_parent.moveable == true)
10
            {
11
                battle_ceroba_buff_noloop = true
12
                if ((!instance_exists(obj_battle_enemy_attack_ceroba_diamond_buff)) && global.current_pp_self <= 0)
13
                    instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -30, obj_battle_enemy_attack_ceroba_diamond_buff)
14
                return;
15
            }
16
            else if instance_exists(obj_battle_enemy_attack_ceroba_diamond_buff)
17
                return;
18
        }
19
        if (battle_enemy_name == "flier solo")
20
            script_execute(gml_Script_scr_enemy_timer_attacks_flier_solo)
21
        else if (battle_enemy_name == "flier trio")
22
            script_execute(gml_Script_scr_enemy_timer_attacks_flier_trio)
23
        else if (battle_enemy_name == "penilla solo")
24
            script_execute(gml_Script_scr_enemy_timer_attacks_penilla_solo)
25
        else if (battle_enemy_name == "flier penilla duo")
26
            script_execute(gml_Script_scr_enemy_timer_attacks_flier_penilla_duo)
27
        else if (battle_enemy_name == "sweet corn solo")
28
            script_execute(gml_Script_scr_enemy_timer_attacks_sweet_corn_solo)
29
        else if (battle_enemy_name == "sweet corn duo")
30
            script_execute(gml_Script_scr_enemy_timer_attacks_sweet_corn_duo)
31
        else if (battle_enemy_name == "sweet corn penilla duo")
32
            script_execute(gml_Script_scr_enemy_timer_attacks_sweet_corn_penilla_duo)
33
        else if (battle_enemy_name == "crispy scroll solo")
34
            script_execute(gml_Script_scr_enemy_timer_attacks_crispy_scroll_solo)
35
        else if (battle_enemy_name == "crispy scroll penilla duo")
36
            script_execute(gml_Script_scr_enemy_timer_attacks_crispy_scroll_penilla_duo)
37
        else if (battle_enemy_name == "rorrim solo")
38
            script_execute(gml_Script_scr_enemy_timer_attacks_rorrim_solo)
39
        else if (battle_enemy_name == "decibat")
40
            script_execute(gml_Script_scr_enemy_timer_attacks_decibat)
41
        else if (battle_enemy_name == "dalv")
42
            script_execute(gml_Script_scr_enemy_timer_attacks_dalv)
43
        else if (battle_enemy_name == "micro froggit")
44
            script_execute(gml_Script_scr_enemy_timer_attacks_micro_froggit)
45
        else if (battle_enemy_name == "insomnitot solo")
46
            script_execute(gml_Script_scr_enemy_timer_attacks_insomnitot_solo)
47
        else if (battle_enemy_name == "insomnitot duo")
48
            script_execute(gml_Script_scr_enemy_timer_attacks_insomnitot_duo)
49
        else if (battle_enemy_name == "know cone solo")
50
            script_execute(gml_Script_scr_enemy_timer_attacks_know_cone_solo)
51
        else if (battle_enemy_name == "know cone insomnitot duo")
52
            script_execute(gml_Script_scr_enemy_timer_attacks_know_cone_insomnitot_duo)
53
        else if (battle_enemy_name == "frostermit solo")
54
            script_execute(gml_Script_scr_enemy_timer_attacks_frostermit_solo)
55
        else if (battle_enemy_name == "frostermit know cone duo")
56
            script_execute(gml_Script_scr_enemy_timer_attacks_frostermit_know_cone_duo)
57
        else if (battle_enemy_name == "trihecta together" || battle_enemy_name == "trihecta separated")
58
            script_execute(gml_Script_scr_enemy_timer_attacks_trihecta)
59
        else if (battle_enemy_name == "martlet pacifist")
60
            script_execute(gml_Script_scr_enemy_timer_attacks_martlet_pacifist)
61
        else if (battle_enemy_name == "martlet genocide")
62
            script_execute(gml_Script_scr_enemy_timer_attacks_martlet_genocide)
63
        else if (battle_enemy_name == "dunebud solo")
64
            script_execute(gml_Script_scr_enemy_timer_attacks_dunebud_solo)
65
        else if (battle_enemy_name == "dunebud duo")
66
            script_execute(gml_Script_scr_enemy_timer_attacks_dunebud_duo)
67
        else if (battle_enemy_name == "cactony solo")
68
            script_execute(gml_Script_scr_enemy_timer_attacks_cactony_solo)
69
        else if (battle_enemy_name == "slither solo")
70
            script_execute(gml_Script_scr_enemy_timer_attacks_slither_solo)
71
        else if (battle_enemy_name == "bowll solo")
72
            script_execute(gml_Script_scr_enemy_timer_attacks_bowll_solo)
73
        else if (battle_enemy_name == "cactony slither duo")
74
            script_execute(gml_Script_scr_enemy_timer_attacks_cactony_slither_duo)
75
        else if (battle_enemy_name == "el bailador")
76
            script_execute(gml_Script_scr_enemy_timer_attacks_el_bailador)
77
        else if (battle_enemy_name == "flower girls")
78
            script_execute(gml_Script_scr_enemy_timer_attacks_flower_girls)
79
        else if (battle_enemy_name == "ceroba genocide")
80
            script_execute(gml_Script_scr_enemy_timer_attacks_ceroba_genocide)
81
        else if (battle_enemy_name == "starlo")
82
            script_execute(gml_Script_scr_enemy_timer_attacks_starlo)
83
        else if (battle_enemy_name == "boulders minifight")
84
            script_execute(gml_Script_scr_enemy_timer_attacks_boulders)
85
        else if (battle_enemy_name == "feisty five")
86
            script_execute(gml_Script_scr_enemy_timer_attacks_feisty_five)
87
        else if (battle_enemy_name == "steam minifight")
88
            script_execute(gml_Script_scr_enemy_timer_attacks_steam)
89
        else if (battle_enemy_name == "energy balls minifight")
90
            script_execute(gml_Script_scr_enemy_timer_attacks_energy_balls)
91
        else if (battle_enemy_name == "goosic")
92
            script_execute(gml_Script_scr_enemy_timer_attacks_goosic_solo)
93
        else if (battle_enemy_name == "jandroid")
94
            script_execute(gml_Script_scr_enemy_timer_attacks_jandroid_solo)
95
        else if (battle_enemy_name == "sousborg")
96
            script_execute(gml_Script_scr_enemy_timer_attacks_sousborg)
97
        else if (battle_enemy_name == "tellyvis")
98
            script_execute(gml_Script_scr_enemy_timer_attacks_tellyvis_solo)
99
        else if (battle_enemy_name == "jandroid goosic duo")
100
            script_execute(gml_Script_scr_enemy_timer_attacks_jandroid_goosic_duo)
101
        else if (battle_enemy_name == "jandroid duo")
102
            script_execute(gml_Script_scr_enemy_timer_attacks_jandroid_duo)
103
        else if (battle_enemy_name == "axis")
104
            script_execute(gml_Script_scr_enemy_timer_attacks_axis)
105
        else if (battle_enemy_name == "axis genocide")
106
            script_execute(gml_Script_scr_enemy_timer_attacks_axis_geno)
107
        else if (battle_enemy_name == "macro froggit")
108
            script_execute(gml_Script_scr_enemy_timer_attacks_macro)
109
        else if (battle_enemy_name == "guardener")
110
            script_execute(gml_Script_scr_enemy_timer_attacks_guardener)
111
        else if (battle_enemy_name == "flowey")
112
            script_execute(gml_Script_scr_enemy_timer_attacks_flowey)
113
        else if (battle_enemy_name == "ceroba")
114
            script_execute(gml_Script_scr_enemy_timer_attacks_ceroba)
115
        else if (battle_enemy_name == "martlet genocide final")
116
            script_execute(gml_Script_scr_enemy_timer_attacks_martlet_genocide_final)
117
        else if (battle_enemy_name == "asgore")
118
            script_execute(gml_Script_scr_enemy_timer_attacks_asgore)
119
        else
120
        {
121
            global.attack_counter = 0
122
            global.attack_counter_max = 0
123
        }
124
    }
125
    else
126
    {
127
        global.attack_counter = 0
128
        global.attack_counter_max = 0
129
    }
130
}