Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_sweet_corn_b_Create_0

(view raw script w/o annotations or w/e)
1
execute_normal = false
2
execute_random = false
3
text_effect = "twitchy"
4
if (global.battle_enemy_name == "sweet corn duo")
5
{
6
    if (global.enemy_dead == true && global.fight_number == 1 && global.battle_menu_number == 1)
7
    {
8
        message[0] = "What was#that#sound?"
9
        message_end = 0
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_2 == "Action 1 Low HP")
19
    {
20
        message[0] = "W-whatever#makes you#happy."
21
        message_end = 0
22
    }
23
    else if (global.last_action_selected_2 == "Action 1 Message 0")
24
    {
25
        if (global.action_1_selected_count_2 >= 3)
26
        {
27
            message[0] = "Now#you're#just#invading#my space."
28
            message_end = 0
29
        }
30
        else if (global.action_1_selected_count_2 >= 2)
31
        {
32
            message[0] = "Whatever#makes you#happy! I#suppose..."
33
            message_end = 0
34
        }
35
        else if (global.action_1_selected_count_2 >= 1)
36
        {
37
            message[0] = "Whatever#makes you#happy!"
38
            message_end = 0
39
        }
40
    }
41
    else if (global.last_action_selected_2 == "Action 2 Low HP")
42
    {
43
        message[0] = "I can't#feel your#love."
44
        message_end = 0
45
    }
46
    else if (global.last_action_selected_2 == "Action 2 Message 0")
47
    {
48
        random_number = irandom_range(0, 1)
49
        if (random_number == 0)
50
        {
51
            message[0] = "I love#hugs! <3"
52
            message_end = 0
53
        }
54
        else if (random_number == 1)
55
        {
56
            message[0] = "I'm#feelin'#the love~"
57
            message_end = 0
58
        }
59
    }
60
    else if (global.last_action_selected_2 == "Action 3 Low HP")
61
    {
62
        message[0] = "I don't#want#anything#but a#smile."
63
        message_end = 0
64
    }
65
    else if (global.last_action_selected_2 == "Action 3 Message 0")
66
    {
67
        if (global.item_gift == "Candy Corn")
68
        {
69
            message[0] = "REALLY?!?"
70
            message_end = 0
71
        }
72
        else if (global.item_gift == "Corn Dog")
73
        {
74
            text_effect = "circle"
75
            message[0] = "*bark*#*bark*"
76
            message_end = 0
77
        }
78
        else if (global.item_gift == "Nothing")
79
        {
80
            message[0] = "It's the#thought#that#counts!"
81
            message_end = 0
82
        }
83
    }
84
    else if (global.enemy_low_hp_2 == true)
85
    {
86
        random_number = irandom_range(0, 1)
87
        if (random_number == 0)
88
        {
89
            message[0] = "Why#aren't#you#happy?"
90
            message_end = 0
91
        }
92
        else if (random_number == 1)
93
        {
94
            message[0] = "I feel...#hurt."
95
            message_end = 0
96
        }
97
    }
98
    else
99
    {
100
        if (global.battle_enemy_name == "sweet corn duo")
101
        {
102
            if ((global.enemy_dead + global.enemy_spared) < 1)
103
            {
104
                random_number = irandom_range(0, 2)
105
                if (random_number == 0)
106
                {
107
                    message[0] = "I love#you so#much <3"
108
                    message_end = 0
109
                }
110
                else if (random_number == 1)
111
                {
112
                    message[0] = "You're so#sweet <3"
113
                    message_end = 0
114
                }
115
                else if (random_number == 2)
116
                {
117
                    message[0] = "A hug is#the best#medicine!"
118
                    message_end = 0
119
                }
120
            }
121
            else
122
                execute_random = true
123
        }
124
        else
125
            execute_random = true
126
        if (execute_random == true)
127
        {
128
            random_number = irandom_range(0, 3)
129
            if (random_number == 0)
130
            {
131
                message[0] = "You're#doing#great,#Sweetie!"
132
                message_end = 0
133
            }
134
            else if (random_number == 1)
135
            {
136
                text_effect = "circle"
137
                message[0] = "*squeak*#*squeak*"
138
                message_end = 0
139
            }
140
            else if (random_number == 2)
141
            {
142
                message[0] = "You can#do this!"
143
                message_end = 0
144
            }
145
            else if (random_number == 3)
146
            {
147
                message[0] = "Remember,#I always#love you!#<3"
148
                message_end = 0
149
            }
150
        }
151
    }
152
}
153
message_current = 0
154
message_draw = ""
155
increase = global.text_speed
156
characters = 0
157
hold = 0
158
message_length = string_length(message[message_current])
159
script_execute(gml_Script_scr_generate_text_counters)
160
circle_text_angle = global.circle_text_angle_default
161
circle_text_angle_direction = 1