Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_know_cone_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 == "know cone insomnitot duo")
4
{
5
    var heart_position = script_execute(scr_return_heart_battle_menu_position);
6
    if (global.enemy_dead_2 == true && global.fight_number == 2 && global.battle_menu_number == 1)
7
    {
8
        message[0] = "WHERE TOT GO!?#THEY FUN!!";
9
        message_end = 0;
10
    }
11
    else if (global.last_action_selected_2 == "Action 1 Message 1" && heart_position == "2222")
12
    {
13
        message[0] = "TOT SLEEP. KNOW CONE WISHES GOOD DREAM.";
14
        message_end = 0;
15
    }
16
    else
17
    {
18
        execute_normal = true;
19
    }
20
}
21
else
22
{
23
    execute_normal = true;
24
}
25
if (execute_normal == true)
26
{
27
    if (global.last_action_selected == "Action 1 Low HP")
28
    {
29
        message[0] = "YOU WANT FLAME FOR#SELF! KNOW CONE SEES#THROUGH!";
30
        message_end = 0;
31
    }
32
    else if (global.last_action_selected == "Action 1 Message 0")
33
    {
34
        message[0] = "KNOW CONE WANT SEE#FIRE! KNOW CONE#PURSUE FIRE DREAM?";
35
        message_end = 0;
36
    }
37
    else if (global.last_action_selected == "Action 2 Low HP")
38
    {
39
        message[0] = "FIRE NICE!#STRANGER MEAN!";
40
        message_end = 0;
41
    }
42
    else if (global.last_action_selected == "Action 2 Message 1")
43
    {
44
        message[0] = "FIRE BAD? YOU TRIED#TO HELP KNOW CONE?#KNOW CONE APPRECIATES#THOUGHT!";
45
        message_end = 0;
46
    }
47
    else if (global.last_action_selected == "Action 2 Message 0")
48
    {
49
        message[0] = "FIRE HOT MELT KNOW#CONE? KNOW CONE NOT#KNOW THIS! YOU GOOD#FRIEND TO KNOW CONE!";
50
        message_end = 0;
51
    }
52
    else if (global.last_action_selected == "Action 3 Low HP")
53
    {
54
        message[0] = "KNOW CONE SORRY!#PLEASE LEAVE KNOW#CONE ALONE!";
55
        message_end = 0;
56
    }
57
    else if (global.last_action_selected == "Action 3 Message 1")
58
    {
59
        message[0] = "BUT YOU TEACHER? MY#IGNORANCE YOUR FAULT#NOW! JOKE ON YOU!";
60
        message_end = 0;
61
    }
62
    else if (global.last_action_selected == "Action 3 Message 0")
63
    {
64
        random_number = irandom_range(0, 2);
65
        if (random_number == 0)
66
        {
67
            message[0] = "WHAT KNOW CONE NOT#KNOW IS NOT KNOW CONE#FAULT! THAT VERY RUDE!";
68
            message_end = 0;
69
        }
70
        else if (random_number == 1)
71
        {
72
            message[0] = "YOU NOT SYMPATHETIC#TO KNOW CONE! THAT#MAKE KNOW CONE ANGRY!";
73
            message_end = 0;
74
        }
75
        else if (random_number == 2)
76
        {
77
            message[0] = "THIS BULLYING!#BULLYING VERY MEAN!#KNOW CONE IS BEING#BULLIED!";
78
            message_end = 0;
79
        }
80
    }
81
    else if (global.enemy_low_hp == true)
82
    {
83
        random_number = irandom_range(0, 1);
84
        if (random_number == 0)
85
        {
86
            message[0] = "KNOW CONE HURT!#OW OW OW!#PAIN BAD!";
87
            message_end = 0;
88
        }
89
        else if (random_number == 1)
90
        {
91
            message[0] = "KNOW CONE NO LIKE#SMALL STRANGER!";
92
            message_end = 0;
93
        }
94
    }
95
    else
96
    {
97
        if (global.battle_enemy_name == "know cone insomnitot duo")
98
        {
99
            if ((global.enemy_dead_2 + global.enemy_spared_2) < 1)
100
            {
101
                random_number = irandom_range(0, 2);
102
                if (random_number == 0)
103
                {
104
                    message[0] = "KNOW CONE SING HIS#FAMOUS LULLABY!";
105
                    message_end = 0;
106
                }
107
                else if (random_number == 1)
108
                {
109
                    message[0] = "KNOW CONE WILL LET#TOT SLEEP AT ALL COSTS!";
110
                    message_end = 0;
111
                }
112
                else if (random_number == 2)
113
                {
114
                    message[0] = "KNOW CONE SHOW TOT#FLAME! TOT WILL LIKE!";
115
                    message_end = 0;
116
                }
117
            }
118
            else
119
            {
120
                execute_random = true;
121
            }
122
        }
123
        else
124
        {
125
            execute_random = true;
126
        }
127
        if (execute_random == true)
128
        {
129
            random_number = irandom_range(0, 4);
130
            if (random_number == 0)
131
            {
132
                message[0] = "YOU STRANGER BRING#KNOW CONE FIRE?#KNOW CONE VERY MUCH#WANT FIRE!";
133
                message_end = 0;
134
            }
135
            else if (random_number == 1)
136
            {
137
                message[0] = "KNOW CONE HEAR FIRE#BRIGHT PRETTY!#KNOW CONE LIKE#BRIGHT PRETTY!";
138
                message_end = 0;
139
            }
140
            else if (random_number == 2)
141
            {
142
                message[0] = "KNOW CONE DREW ON WALL#ONCE! KNOW CONE MOTHER#GOT MAD!";
143
                message_end = 0;
144
            }
145
            else if (random_number == 3)
146
            {
147
                message[0] = "KNOW CONE HIT THING#WITH CLUB! GOLF FUN#FOR KNOW CONE!";
148
                message_end = 0;
149
            }
150
            else if (random_number == 4)
151
            {
152
                message[0] = "SNOWDIN TOO COLD!#KNOW CONE WANT#HOTLAND!";
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(scr_generate_text_counters);