Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_battle_core_directory_generation

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

function scr_battle_core_directory_generation() //gml_Script_scr_battle_core_directory_generation { var battle_enemy_name = global.battle_enemy_name var game_mode = global.game_mode if (game_mode == "customs") { if (battle_enemy_name == "craniex") script_execute(scr_generate_battle_craniex) else if (battle_enemy_name == "ms mettaton") script_execute(scr_generate_battle_ms_mettaton) } else if (game_mode == "yellow") { if (battle_enemy_name == "nobody came") script_execute(gml_Script_scr_generate_battle_nobody_came_yellow) else if (battle_enemy_name == "froggit intro") script_execute(gml_Script_scr_generate_battle_froggit_intro_yellow) else if (battle_enemy_name == "flowey intro") script_execute(gml_Script_scr_generate_battle_flowey_intro_yellow) else if (battle_enemy_name == "flier solo") script_execute(gml_Script_scr_generate_battle_flier_solo) else if (battle_enemy_name == "flier trio") script_execute(gml_Script_scr_generate_battle_flier_trio) else if (battle_enemy_name == "penilla solo") script_execute(gml_Script_scr_generate_battle_penilla_solo) else if (battle_enemy_name == "flier penilla duo") script_execute(gml_Script_scr_generate_battle_flier_penilla_duo) else if (battle_enemy_name == "sweet corn solo") script_execute(gml_Script_scr_generate_battle_sweet_corn_solo) else if (battle_enemy_name == "sweet corn duo") script_execute(gml_Script_scr_generate_battle_sweet_corn_duo) else if (battle_enemy_name == "sweet corn penilla duo") script_execute(gml_Script_scr_generate_battle_sweet_corn_penilla_duo) else if (battle_enemy_name == "crispy scroll solo") script_execute(gml_Script_scr_generate_battle_crispy_scroll_solo) else if (battle_enemy_name == "crispy scroll penilla duo") script_execute(gml_Script_scr_generate_battle_crispy_scroll_penilla_duo) else if (battle_enemy_name == "rorrim solo") script_execute(gml_Script_scr_generate_battle_rorrim_solo) else if (battle_enemy_name == "decibat") script_execute(gml_Script_scr_generate_battle_decibat) else if (battle_enemy_name == "dalv") script_execute(gml_Script_scr_generate_battle_dalv) else if (battle_enemy_name == "micro froggit") script_execute(gml_Script_scr_generate_battle_micro_froggit) else if (battle_enemy_name == "insomnitot solo") script_execute(gml_Script_scr_generate_battle_insomnitot_solo) else if (battle_enemy_name == "insomnitot duo") script_execute(gml_Script_scr_generate_battle_insomnitot_duo) else if (battle_enemy_name == "know cone solo") script_execute(gml_Script_scr_generate_battle_know_cone_solo) else if (battle_enemy_name == "know cone insomnitot duo") script_execute(gml_Script_scr_generate_battle_know_cone_insomnitot_duo) else if (battle_enemy_name == "frostermit solo") script_execute(gml_Script_scr_generate_battle_frostermit_solo) else if (battle_enemy_name == "frostermit know cone duo") script_execute(gml_Script_scr_generate_battle_frostermit_know_cone_duo) else if (battle_enemy_name == "trihecta together") script_execute(gml_Script_scr_generate_battle_trihecta_together) else if (battle_enemy_name == "trihecta separated") script_execute(gml_Script_scr_generate_battle_trihecta_separated) else if (battle_enemy_name == "martlet pacifist") script_execute(gml_Script_scr_generate_battle_martlet_pacifist) else if (battle_enemy_name == "martlet genocide") script_execute(gml_Script_scr_generate_battle_martlet_genocide) else if (battle_enemy_name == "shufflers") script_execute(gml_Script_scr_generate_battle_shufflers) else if (battle_enemy_name == "dunebud solo") script_execute(gml_Script_scr_generate_battle_dunebud_solo) else if (battle_enemy_name == "dunebud duo") script_execute(gml_Script_scr_generate_battle_dunebud_duo) else if (battle_enemy_name == "cactony solo") script_execute(gml_Script_scr_generate_battle_cactony_solo) else if (battle_enemy_name == "slither solo") script_execute(gml_Script_scr_generate_battle_slither_solo) else if (battle_enemy_name == "bowll solo") script_execute(gml_Script_scr_generate_battle_bowll_solo) else if (battle_enemy_name == "cactony slither duo") script_execute(gml_Script_scr_generate_battle_cactony_slither_duo) else if (battle_enemy_name == "flower girls") script_execute(gml_Script_scr_generate_battle_flower_girls_solo) else if (battle_enemy_name == "el bailador") script_execute(gml_Script_scr_generate_battle_el_bailador) else if (battle_enemy_name == "dummy training pacifist") script_execute(gml_Script_scr_generate_battle_dummy_training_pacifist) else if (battle_enemy_name == "ceroba genocide") script_execute(gml_Script_scr_generate_battle_ceroba_genocide) else if (battle_enemy_name == "starlo") script_execute(gml_Script_scr_generate_battle_starlo) else if (battle_enemy_name == "boulders minifight") script_execute(gml_Script_scr_generate_battle_boulders_minifight) else if (battle_enemy_name == "feisty five") script_execute(gml_Script_scr_generate_battle_feisty_five) else if (battle_enemy_name == "steam minifight") script_execute(gml_Script_scr_generate_battle_steam_minifight) else if (battle_enemy_name == "energy balls minifight") script_execute(gml_Script_scr_generate_battle_energy_balls) else if (battle_enemy_name == "tellyvis") script_execute(gml_Script_scr_generate_battle_tellyvis_solo) else if (battle_enemy_name == "goosic") script_execute(gml_Script_scr_generate_battle_goosic_solo) ...
() //gml_Script_scr_battle_core_directory_generation
2
{
3
    var battle_enemy_name = global.battle_enemy_name
4
    var game_mode = global.game_mode
5
    if (game_mode == "customs")
6
    {
7
        if (battle_enemy_name == "craniex")
8
            script_execute(scr_generate_battle_craniex)
9
        else if (battle_enemy_name == "ms mettaton")
10
            script_execute(scr_generate_battle_ms_mettaton)
11
    }
12
    else if (game_mode == "yellow")
13
    {
14
        if (battle_enemy_name == "nobody came")
15
            script_execute(gml_Script_scr_generate_battle_nobody_came_yellow)
16
        else if (battle_enemy_name == "froggit intro")
17
            script_execute(gml_Script_scr_generate_battle_froggit_intro_yellow)
18
        else if (battle_enemy_name == "flowey intro")
19
            script_execute(gml_Script_scr_generate_battle_flowey_intro_yellow)
20
        else if (battle_enemy_name == "flier solo")
21
            script_execute(gml_Script_scr_generate_battle_flier_solo)
22
        else if (battle_enemy_name == "flier trio")
23
            script_execute(gml_Script_scr_generate_battle_flier_trio)
24
        else if (battle_enemy_name == "penilla solo")
25
            script_execute(gml_Script_scr_generate_battle_penilla_solo)
26
        else if (battle_enemy_name == "flier penilla duo")
27
            script_execute(gml_Script_scr_generate_battle_flier_penilla_duo)
28
        else if (battle_enemy_name == "sweet corn solo")
29
            script_execute(gml_Script_scr_generate_battle_sweet_corn_solo)
30
        else if (battle_enemy_name == "sweet corn duo")
31
            script_execute(gml_Script_scr_generate_battle_sweet_corn_duo)
32
        else if (battle_enemy_name == "sweet corn penilla duo")
33
            script_execute(gml_Script_scr_generate_battle_sweet_corn_penilla_duo)
34
        else if (battle_enemy_name == "crispy scroll solo")
35
            script_execute(gml_Script_scr_generate_battle_crispy_scroll_solo)
36
        else if (battle_enemy_name == "crispy scroll penilla duo")
37
            script_execute(gml_Script_scr_generate_battle_crispy_scroll_penilla_duo)
38
        else if (battle_enemy_name == "rorrim solo")
39
            script_execute(gml_Script_scr_generate_battle_rorrim_solo)
40
        else if (battle_enemy_name == "decibat")
41
            script_execute(gml_Script_scr_generate_battle_decibat)
42
        else if (battle_enemy_name == "dalv")
43
            script_execute(gml_Script_scr_generate_battle_dalv)
44
        else if (battle_enemy_name == "micro froggit")
45
            script_execute(gml_Script_scr_generate_battle_micro_froggit)
46
        else if (battle_enemy_name == "insomnitot solo")
47
            script_execute(gml_Script_scr_generate_battle_insomnitot_solo)
48
        else if (battle_enemy_name == "insomnitot duo")
49
            script_execute(gml_Script_scr_generate_battle_insomnitot_duo)
50
        else if (battle_enemy_name == "know cone solo")
51
            script_execute(gml_Script_scr_generate_battle_know_cone_solo)
52
        else if (battle_enemy_name == "know cone insomnitot duo")
53
            script_execute(gml_Script_scr_generate_battle_know_cone_insomnitot_duo)
54
        else if (battle_enemy_name == "frostermit solo")
55
            script_execute(gml_Script_scr_generate_battle_frostermit_solo)
56
        else if (battle_enemy_name == "frostermit know cone duo")
57
            script_execute(gml_Script_scr_generate_battle_frostermit_know_cone_duo)
58
        else if (battle_enemy_name == "trihecta together")
59
            script_execute(gml_Script_scr_generate_battle_trihecta_together)
60
        else if (battle_enemy_name == "trihecta separated")
61
            script_execute(gml_Script_scr_generate_battle_trihecta_separated)
62
        else if (battle_enemy_name == "martlet pacifist")
63
            script_execute(gml_Script_scr_generate_battle_martlet_pacifist)
64
        else if (battle_enemy_name == "martlet genocide")
65
            script_execute(gml_Script_scr_generate_battle_martlet_genocide)
66
        else if (battle_enemy_name == "shufflers")
67
            script_execute(gml_Script_scr_generate_battle_shufflers)
68
        else if (battle_enemy_name == "dunebud solo")
69
            script_execute(gml_Script_scr_generate_battle_dunebud_solo)
70
        else if (battle_enemy_name == "dunebud duo")
71
            script_execute(gml_Script_scr_generate_battle_dunebud_duo)
72
        else if (battle_enemy_name == "cactony solo")
73
            script_execute(gml_Script_scr_generate_battle_cactony_solo)
74
        else if (battle_enemy_name == "slither solo")
75
            script_execute(gml_Script_scr_generate_battle_slither_solo)
76
        else if (battle_enemy_name == "bowll solo")
77
            script_execute(gml_Script_scr_generate_battle_bowll_solo)
78
        else if (battle_enemy_name == "cactony slither duo")
79
            script_execute(gml_Script_scr_generate_battle_cactony_slither_duo)
80
        else if (battle_enemy_name == "flower girls")
81
            script_execute(gml_Script_scr_generate_battle_flower_girls_solo)
82
        else if (battle_enemy_name == "el bailador")
83
            script_execute(gml_Script_scr_generate_battle_el_bailador)
84
        else if (battle_enemy_name == "dummy training pacifist")
85
            script_execute(gml_Script_scr_generate_battle_dummy_training_pacifist)
86
        else if (battle_enemy_name == "ceroba genocide")
87
            script_execute(gml_Script_scr_generate_battle_ceroba_genocide)
88
        else if (battle_enemy_name == "starlo")
89
            script_execute(gml_Script_scr_generate_battle_starlo)
90
        else if (battle_enemy_name == "boulders minifight")
91
            script_execute(gml_Script_scr_generate_battle_boulders_minifight)
92
        else if (battle_enemy_name == "feisty five")
93
            script_execute(gml_Script_scr_generate_battle_feisty_five)
94
        else if (battle_enemy_name == "steam minifight")
95
            script_execute(gml_Script_scr_generate_battle_steam_minifight)
96
        else if (battle_enemy_name == "energy balls minifight")
97
            script_execute(gml_Script_scr_generate_battle_energy_balls)
98
        else if (battle_enemy_name == "tellyvis")
99
            script_execute(gml_Script_scr_generate_battle_tellyvis_solo)
100
        else if (battle_enemy_name == "goosic")
101
            script_execute(gml_Script_scr_generate_battle_goosic_solo)
102
        else if (battle_enemy_name == "jandroid")
103
            script_execute(gml_Script_scr_generate_battle_jandroid_solo)
104
        else if (battle_enemy_name == "jandroid goosic duo")
105
            script_execute(gml_Script_scr_generate_battle_jandroid_goosic_duo)
106
        else if (battle_enemy_name == "jandroid duo")
107
            script_execute(gml_Script_scr_generate_battle_jandroid_duo)
108
        else if (battle_enemy_name == "sousborg")
109
            script_execute(gml_Script_scr_generate_battle_sousborg)
110
        else if (battle_enemy_name == "axis")
111
            script_execute(gml_Script_scr_generate_battle_axis)
112
        else if (battle_enemy_name == "macro froggit")
113
            script_execute(gml_Script_scr_generate_battle_macro_froggit)
114
        else if (battle_enemy_name == "axis genocide")
115
            script_execute(gml_Script_scr_generate_battle_axis_genocide)
116
        else if (battle_enemy_name == "guardener")
117
            script_execute(gml_Script_scr_generate_battle_guardener)
118
        else if (battle_enemy_name == "flowey")
119
            script_execute(gml_Script_scr_generate_battle_flowey)
120
        else if (battle_enemy_name == "ceroba")
121
        {
122
            switch global.hotland_flag[2]
123
            {
124
                case 0:
125
                    script_execute(gml_Script_scr_generate_battle_ceroba)
126
                    break
127
                case 1:
128
                    script_execute(gml_Script_scr_generate_battle_ceroba_2)
129
                    break
130
                case 2:
131
                    script_execute(gml_Script_scr_generate_battle_ceroba_3)
132
                    break
133
                case 3:
134
                    script_execute(gml_Script_scr_generate_battle_ceroba_4)
135
                    break
136
            }
137
138
        }
139
        else if (battle_enemy_name == "martlet genocide final")
140
        {
141
            switch global.hotland_flag[9]
142
            {
143
                case 0:
144
                case 1:
145
                    script_execute(gml_Script_scr_generate_battle_martlet_genocide_final)
146
                    break
147
                case 2:
148
                case 3:
149
                    script_execute(gml_Script_scr_generate_battle_martlet_genocide_final_2)
150
                    break
151
            }
152
153
        }
154
        else if (battle_enemy_name == "asgore")
155
            script_execute(gml_Script_scr_generate_battle_asgore)
156
    }
157
}