Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_battle_core_directory_action_2_selected_text

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

function scr_battle_core_directory_action_2_selected_text() //gml_Script_scr_battle_core_directory_action_2_selected_text { if (global.battling_boss == true) { battle_enemy_name = global.battle_enemy_name enemy_mode = global.enemy_mode } else { var act_number = global.act_number switch act_number { case 1: battle_enemy_name = global.battle_enemy_name_1 enemy_mode = global.enemy_mode break case 2: battle_enemy_name = global.battle_enemy_name_2 enemy_mode = global.enemy_mode_2 break case 3: battle_enemy_name = global.battle_enemy_name_3 enemy_mode = global.enemy_mode_3 break default: battle_enemy_name = global.battle_enemy_name_1 enemy_mode = global.enemy_mode } } game_mode = global.game_mode if (game_mode == "customs") { if (battle_enemy_name == "craniex") script_execute(scr_dialogue_battle_action_selected_action_2_craniex) else if (battle_enemy_name == "ms mettaton") script_execute(scr_dialogue_battle_action_selected_action_2_ms_mettaton) } else if (game_mode == "yellow") { if (battle_enemy_name == "froggit intro") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_froggit_intro_yellow) else if (battle_enemy_name == "flier a") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_flier_a) else if (battle_enemy_name == "flier b") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_flier_b) else if (battle_enemy_name == "flier c") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_flier_c) else if (battle_enemy_name == "penilla a") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_penilla_a) else if (battle_enemy_name == "penilla b") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_penilla_b) else if (battle_enemy_name == "sweet corn a") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_sweet_corn_a) else if (battle_enemy_name == "sweet corn b") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_sweet_corn_b) else if (battle_enemy_name == "crispy scroll a") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_crispy_scroll_a) else if (battle_enemy_name == "rorrim a") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_rorrim_a) else if (battle_enemy_name == "decibat") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_decibat) else if (battle_enemy_name == "dalv") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_dalv) else if (battle_enemy_name == "micro froggit") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_micro_froggit) else if (battle_enemy_name == "insomnitot a") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_insomnitot_a) else if (battle_enemy_name == "insomnitot b") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_insomnitot_b) else if (battle_enemy_name == "know cone a") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_know_cone_a) else if (battle_enemy_name == "know cone b") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_know_cone_b) else if (battle_enemy_name == "frostermit a") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_frostermit_a) else if (battle_enemy_name == "trihecta") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_trihecta) else if (battle_enemy_name == "tri") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_tri) else if (battle_enemy_name == "hec") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_hec) else if (battle_enemy_name == "ta") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_ta) else if (battle_enemy_name == "martlet pacifist") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_martlet_pacifist) else if (battle_enemy_name == "martlet genocide") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_martlet_genocide) else if (battle_enemy_name == "dunebud a") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_dunebud_a) else if (battle_enemy_name == "dunebud b") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_dunebud_b) else if (battle_enemy_name == "cactony a") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_cactony_a) else if (battle_enemy_name == "slither a") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_slither_a) else if (battle_enemy_name == "slither b") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_slither_b) else if (battle_enemy_name == "bowll a") script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_bowll_a) else if (battle_enemy_name == "el bailador") ...
() //gml_Script_scr_battle_core_directory_action_2_selected_text
2
{
3
    if (global.battling_boss == true)
4
    {
5
        battle_enemy_name = global.battle_enemy_name
6
        enemy_mode = global.enemy_mode
7
    }
8
    else
9
    {
10
        var act_number = global.act_number
11
        switch act_number
12
        {
13
            case 1:
14
                battle_enemy_name = global.battle_enemy_name_1
15
                enemy_mode = global.enemy_mode
16
                break
17
            case 2:
18
                battle_enemy_name = global.battle_enemy_name_2
19
                enemy_mode = global.enemy_mode_2
20
                break
21
            case 3:
22
                battle_enemy_name = global.battle_enemy_name_3
23
                enemy_mode = global.enemy_mode_3
24
                break
25
            default:
26
                battle_enemy_name = global.battle_enemy_name_1
27
                enemy_mode = global.enemy_mode
28
        }
29
30
    }
31
    game_mode = global.game_mode
32
    if (game_mode == "customs")
33
    {
34
        if (battle_enemy_name == "craniex")
35
            script_execute(scr_dialogue_battle_action_selected_action_2_craniex)
36
        else if (battle_enemy_name == "ms mettaton")
37
            script_execute(scr_dialogue_battle_action_selected_action_2_ms_mettaton)
38
    }
39
    else if (game_mode == "yellow")
40
    {
41
        if (battle_enemy_name == "froggit intro")
42
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_froggit_intro_yellow)
43
        else if (battle_enemy_name == "flier a")
44
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_flier_a)
45
        else if (battle_enemy_name == "flier b")
46
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_flier_b)
47
        else if (battle_enemy_name == "flier c")
48
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_flier_c)
49
        else if (battle_enemy_name == "penilla a")
50
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_penilla_a)
51
        else if (battle_enemy_name == "penilla b")
52
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_penilla_b)
53
        else if (battle_enemy_name == "sweet corn a")
54
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_sweet_corn_a)
55
        else if (battle_enemy_name == "sweet corn b")
56
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_sweet_corn_b)
57
        else if (battle_enemy_name == "crispy scroll a")
58
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_crispy_scroll_a)
59
        else if (battle_enemy_name == "rorrim a")
60
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_rorrim_a)
61
        else if (battle_enemy_name == "decibat")
62
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_decibat)
63
        else if (battle_enemy_name == "dalv")
64
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_dalv)
65
        else if (battle_enemy_name == "micro froggit")
66
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_micro_froggit)
67
        else if (battle_enemy_name == "insomnitot a")
68
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_insomnitot_a)
69
        else if (battle_enemy_name == "insomnitot b")
70
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_insomnitot_b)
71
        else if (battle_enemy_name == "know cone a")
72
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_know_cone_a)
73
        else if (battle_enemy_name == "know cone b")
74
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_know_cone_b)
75
        else if (battle_enemy_name == "frostermit a")
76
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_frostermit_a)
77
        else if (battle_enemy_name == "trihecta")
78
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_trihecta)
79
        else if (battle_enemy_name == "tri")
80
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_tri)
81
        else if (battle_enemy_name == "hec")
82
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_hec)
83
        else if (battle_enemy_name == "ta")
84
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_ta)
85
        else if (battle_enemy_name == "martlet pacifist")
86
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_martlet_pacifist)
87
        else if (battle_enemy_name == "martlet genocide")
88
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_martlet_genocide)
89
        else if (battle_enemy_name == "dunebud a")
90
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_dunebud_a)
91
        else if (battle_enemy_name == "dunebud b")
92
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_dunebud_b)
93
        else if (battle_enemy_name == "cactony a")
94
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_cactony_a)
95
        else if (battle_enemy_name == "slither a")
96
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_slither_a)
97
        else if (battle_enemy_name == "slither b")
98
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_slither_b)
99
        else if (battle_enemy_name == "bowll a")
100
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_bowll_a)
101
        else if (battle_enemy_name == "el bailador")
102
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_el_bailador)
103
        else if (battle_enemy_name == "flower girls")
104
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_flower_girls)
105
        else if (battle_enemy_name == "ceroba genocide")
106
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_ceroba)
107
        else if (battle_enemy_name == "starlo")
108
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_starlo)
109
        else if (battle_enemy_name == "tellyvis a")
110
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_tellyvis_a)
111
        else if (battle_enemy_name == "jandroid a")
112
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_jandroid_a)
113
        else if (battle_enemy_name == "goosic a")
114
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_goosic_a)
115
        else if (battle_enemy_name == "jandroid b")
116
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_jandroid_b)
117
        else if (battle_enemy_name == "goosic b")
118
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_goosic_b)
119
        else if (battle_enemy_name == "sousborg")
120
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_sousborg)
121
        else if (battle_enemy_name == "axis")
122
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_axis)
123
        else if (battle_enemy_name == "macro froggit")
124
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_macro)
125
        else if (battle_enemy_name == "axis genocide")
126
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_axis_geno)
127
        else if (battle_enemy_name == "guardener")
128
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_guardener)
129
        else if (battle_enemy_name == "ed" || battle_enemy_name == "ace" || battle_enemy_name == "moray" || battle_enemy_name == "mooch")
130
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_feisty_four)
131
        else if (battle_enemy_name == "flowey")
132
        {
133
            if (global.flowey_act[1] == 4)
134
                message[0] = "* Recovered 30% of your HP!"
135
            else
136
            {
137
                message[0] = ""
138
                script_execute(gml_Script_scr_battle_core_directory_action_2_selected_event)
139
                instance_destroy()
140
            }
141
        }
142
        else if (battle_enemy_name == "ceroba")
143
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_ceroba_pacifist)
144
        else if (battle_enemy_name == "martlet genocide final")
145
            script_execute(gml_Script_scr_dialogue_battle_action_selected_action_2_martlet_final)
146
    }
147
}