Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_flier_a_Create_0

(view raw script w/o annotations or w/e)
1
execute_normal = false
2
execute_random = false
3
if (global.battle_enemy_name == "flier trio")
4
{
5
    if (((global.enemy_dead_2 == true && global.fight_number == 2) || (global.enemy_dead_3 == true && global.fight_number == 3)) && global.battle_menu_number == 1)
6
    {
7
        message[0] = "That was my bro!"
8
        message[1] = "He had goals in#life!"
9
        message_end = 1
10
    }
11
    else
12
        execute_normal = true
13
}
14
else if (global.battle_enemy_name == "flier penilla duo")
15
{
16
    if (global.enemy_dead_2 == true && global.fight_number == 2 && global.battle_menu_number == 1)
17
    {
18
        message[0] = "She was my friend#(I think)."
19
        message_end = 0
20
    }
21
    else
22
        execute_normal = true
23
}
24
else
25
    execute_normal = true
26
if (execute_normal == true)
27
{
28
    if (global.last_action_selected == "Action 1 Low HP")
29
    {
30
        message[0] = "Don't come near#me!"
31
        message_end = 0
32
    }
33
    else if (global.last_action_selected == "Action 1 Message 0")
34
    {
35
        random_number = irandom_range(0, 1)
36
        if (random_number == 0)
37
        {
38
            message[0] = "I... This isn't#really me..."
39
            message_end = 0
40
        }
41
        else if (random_number == 1)
42
        {
43
            message[0] = "You're right.#Something needs#to change."
44
            message_end = 0
45
        }
46
    }
47
    else if (global.last_action_selected == "Action 2 Low HP")
48
    {
49
        message[0] = "I don't accept."
50
        message_end = 0
51
    }
52
    else if (global.last_action_selected == "Action 2 Message 0")
53
    {
54
        random_number = irandom_range(0, 1)
55
        if (random_number == 0)
56
        {
57
            message[0] = "That's right! I#knew you noticed!"
58
            message_end = 0
59
        }
60
        else if (random_number == 1)
61
        {
62
            message[0] = "Yeah, I totally#agree."
63
            message_end = 0
64
        }
65
    }
66
    else if (global.last_action_selected == "Action 3 Low HP")
67
    {
68
        message[0] = "Right back at#you."
69
        message_end = 0
70
    }
71
    else if (global.last_action_selected == "Action 3 Message 0")
72
    {
73
        random_number = irandom_range(0, 1)
74
        if (random_number == 0)
75
        {
76
            message[0] = "You just have no#sense of modern#fashion trends!"
77
            message_end = 0
78
        }
79
        else if (random_number == 1)
80
        {
81
            message[0] = "That hurts me on#a personal level."
82
            message_end = 0
83
        }
84
    }
85
    else if (global.enemy_low_hp == true)
86
    {
87
        random_number = irandom_range(0, 1)
88
        if (random_number == 0)
89
        {
90
            message[0] = "Just gotta keep#it... cool."
91
            message_end = 0
92
        }
93
        else if (random_number == 1)
94
        {
95
            message[0] = "So this is how it#ends?"
96
            message_end = 0
97
        }
98
    }
99
    else
100
    {
101
        if (global.battle_enemy_name == "flier trio")
102
        {
103
            if ((global.enemy_dead_2 + global.enemy_spared_2 + global.enemy_dead_3 + global.enemy_spared_2) < 2)
104
            {
105
                random_number = irandom_range(0, 2)
106
                if (random_number == 0)
107
                {
108
                    message[0] = "Who wants to have#a cookout?"
109
                    message_end = 0
110
                }
111
                else if (random_number == 1)
112
                {
113
                    message[0] = "Hey guys, check#out my new ride#B)"
114
                    message_end = 0
115
                }
116
                else if (random_number == 2)
117
                {
118
                    message[0] = "Finally! Monsters#that get me!"
119
                    message_end = 0
120
                }
121
            }
122
            else
123
                execute_random = true
124
        }
125
        else if (global.battle_enemy_name == "flier penilla duo")
126
        {
127
            if ((global.enemy_dead_2 + global.enemy_spared_2) < 1)
128
            {
129
                message[0] = "Is art what the kids#are into these days?"
130
                message_end = 0
131
            }
132
            else
133
                execute_random = true
134
        }
135
        else
136
            execute_random = true
137
        if (execute_random == true)
138
        {
139
            random_number = irandom_range(0, 2)
140
            if (random_number == 0)
141
            {
142
                message[0] = "I'm looking to#buy a boat! Know#anyone selling?"
143
                message_end = 0
144
            }
145
            else if (random_number == 1)
146
            {
147
                message[0] = "I've been working#out! No big deal#; )"
148
                message_end = 0
149
            }
150
            else if (random_number == 2)
151
            {
152
                message[0] = "I found this#great new band#the other day!"
153
                message_end = 0
154
            }
155
        }
156
    }
157
}
158
message_current = 0
159
message_draw = ""
160
increase = global.text_speed
161
characters = 0
162
hold = 0
163
message_length = string_length(message[message_current])
164
script_execute(gml_Script_scr_generate_text_counters)