Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_flier_c_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 == true && global.fight_number == 1) || (global.enemy_dead_2 == true && global.fight_number == 2)) && 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
15
    execute_normal = true
16
if (execute_normal == true)
17
{
18
    if (global.last_action_selected_3 == "Action 1 Low HP")
19
    {
20
        message[0] = "Don't come near#me!"
21
        message_end = 0
22
    }
23
    else if (global.last_action_selected_3 == "Action 1 Message 0")
24
    {
25
        random_number = irandom_range(0, 1)
26
        if (random_number == 0)
27
        {
28
            message[0] = "I... This isn't#really me..."
29
            message_end = 0
30
        }
31
        else if (random_number == 1)
32
        {
33
            message[0] = "You're right.#Something needs#to change."
34
            message_end = 0
35
        }
36
    }
37
    else if (global.last_action_selected_3 == "Action 2 Low HP")
38
    {
39
        message[0] = "I don't accept."
40
        message_end = 0
41
    }
42
    else if (global.last_action_selected_3 == "Action 2 Message 0")
43
    {
44
        random_number = irandom_range(0, 1)
45
        if (random_number == 0)
46
        {
47
            message[0] = "That's right! I#knew you noticed!"
48
            message_end = 0
49
        }
50
        else if (random_number == 1)
51
        {
52
            message[0] = "Yeah, I totally#agree."
53
            message_end = 0
54
        }
55
    }
56
    else if (global.last_action_selected_3 == "Action 3 Low HP")
57
    {
58
        message[0] = "Right back at#you."
59
        message_end = 0
60
    }
61
    else if (global.last_action_selected_3 == "Action 3 Message 0")
62
    {
63
        random_number = irandom_range(0, 1)
64
        if (random_number == 0)
65
        {
66
            message[0] = "You just have no#sense of modern#fashion trends!"
67
            message_end = 0
68
        }
69
        else if (random_number == 1)
70
        {
71
            message[0] = "That hurts me on#a personal level."
72
            message_end = 0
73
        }
74
    }
75
    else if (global.enemy_low_hp_3 == true)
76
    {
77
        random_number = irandom_range(0, 1)
78
        if (random_number == 0)
79
        {
80
            message[0] = "Just gotta keep#it... cool."
81
            message_end = 0
82
        }
83
        else if (random_number == 1)
84
        {
85
            message[0] = "So this is how it#ends?"
86
            message_end = 0
87
        }
88
    }
89
    else
90
    {
91
        if (global.battle_enemy_name == "flier trio")
92
        {
93
            if ((global.enemy_dead + global.enemy_spared + global.enemy_dead_2 + global.enemy_spared_2) < 2)
94
            {
95
                random_number = irandom_range(0, 2)
96
                if (random_number == 0)
97
                {
98
                    message[0] = "Who wants to have#a cookout?"
99
                    message_end = 0
100
                }
101
                else if (random_number == 1)
102
                {
103
                    message[0] = "Hey guys, check#out my new ride#B)"
104
                    message_end = 0
105
                }
106
                else if (random_number == 2)
107
                {
108
                    message[0] = "Finally! Monsters#that get me!"
109
                    message_end = 0
110
                }
111
            }
112
            else
113
                execute_random = true
114
        }
115
        else
116
            execute_random = true
117
        if (execute_random == true)
118
        {
119
            random_number = irandom_range(0, 2)
120
            if (random_number == 0)
121
            {
122
                message[0] = "I'm looking to#buy a boat! Know#anyone selling?"
123
                message_end = 0
124
            }
125
            else if (random_number == 1)
126
            {
127
                message[0] = "I've been working#out! No big deal#; )"
128
                message_end = 0
129
            }
130
            else if (random_number == 2)
131
            {
132
                message[0] = "I found this#great new band#the other day!"
133
                message_end = 0
134
            }
135
        }
136
    }
137
}
138
message_current = 0
139
message_draw = ""
140
increase = global.text_speed
141
characters = 0
142
hold = 0
143
message_length = string_length(message[message_current])
144
script_execute(gml_Script_scr_generate_text_counters)