Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_slither_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
text_effect_2 = "twitchy"
5
color_count = 0
6
spawner = -4
7
if (global.enemy_dead == true && global.fight_number == 1 && global.battle_menu_number == 1)
8
{
9
    message[0] = "To be honest?#Not surprised."
10
    message_end = 0
11
}
12
else
13
    execute_normal = true
14
if (execute_normal == true)
15
{
16
    if (global.last_action_selected_2 == "Action 1 Low HP")
17
    {
18
        message[0] = "They were only#greetings!I#ssswear!"
19
        message_end = 0
20
    }
21
    else if (global.last_action_selected_2 == "Action 2 Low HP")
22
    {
23
        message[0] = "It's true, I#do. Run along#now!"
24
        message_end = 0
25
    }
26
    else if (global.last_action_selected_2 == "Action 3 Low HP")
27
    {
28
        message[0] = "Ding ding ding!#Got a genius#over here!"
29
        message_end = 0
30
    }
31
    else if (global.last_action_selected_2 == "Action 1 Message 0")
32
    {
33
        random_number = irandom_range(0, 1)
34
        if (random_number == 0)
35
        {
36
            message[0] = "Oh, this and#that. Odds and#ends. Ya know..."
37
            message_end = 0
38
        }
39
        else if (random_number == 1)
40
        {
41
            message[0] = "I'm an#excccellent#travel companion!"
42
            message_end = 0
43
        }
44
    }
45
    else if (global.last_action_selected_2 == "Action 2 Message 0")
46
    {
47
        random_number = irandom_range(0, 1)
48
        if (random_number == 0)
49
        {
50
            message[0] = "Yesss, we're#gonna go far,#you and me!"
51
            message_end = 0
52
        }
53
        else if (random_number == 1)
54
        {
55
            message[0] = "I knew you'd#see things my#way, human!"
56
            message_end = 0
57
        }
58
    }
59
    else if (global.last_action_selected_2 == "Action 3 Message 0")
60
    {
61
        message[0] = "Come on mate,#don't leave me#out to dry!"
62
        message_end = 0
63
    }
64
    else if (global.last_action_selected_2 == "Action 3 Message 1")
65
    {
66
        message[0] = "Fine! But you're#missing out#BIG!"
67
        message[1] = "Enjoy the#snake-sized#hole in your#heart!"
68
        message_end = 1
69
    }
70
    else if (global.enemy_low_hp_2 == true)
71
    {
72
        random_number = irandom_range(0, 1)
73
        if (random_number == 0)
74
        {
75
            message[0] = "H-Help a friend#patch themselves#up, eh?"
76
            message_end = 0
77
        }
78
        else if (random_number == 1)
79
        {
80
            message[0] = "Calm down, mate.#We can work#something out..."
81
            message_end = 0
82
        }
83
    }
84
    else
85
    {
86
        if (global.battle_enemy_name == "cactony slither duo")
87
        {
88
            if ((global.enemy_dead + global.enemy_spared + global.enemy_sparing) < 1)
89
            {
90
                if instance_exists(obj_quote_battle_cactony_a)
91
                    random_number = obj_quote_battle_cactony_a.random_number
92
                else
93
                    random_number = irandom_range(0, 2)
94
                if (random_number == 0)
95
                {
96
                    message[0] = "I know just#what you need!"
97
                    message_end = 0
98
                }
99
                else if (random_number == 1)
100
                {
101
                    message[0] = "You, me,#perfect match#eh?"
102
                    message_end = 0
103
                }
104
                else if (random_number == 2)
105
                {
106
                    message[0] = "I can cheer#you right up!#Easy!"
107
                    message_end = 0
108
                }
109
            }
110
            else
111
                execute_random = true
112
        }
113
        else
114
            execute_random = true
115
        if (execute_random == true)
116
        {
117
            random_number = irandom_range(0, 4)
118
            if (random_number == 0)
119
            {
120
                message[0] = "Adventure?#That's my#maiden name!"
121
                message_end = 0
122
            }
123
            else if (random_number == 1)
124
            {
125
                message[0] = "Why are you#avoiding my#greetings? Come#on!"
126
                message_end = 0
127
            }
128
            else if (random_number == 2)
129
            {
130
                message[0] = "What's your story?#Scandals?#Sssecrets...?"
131
                message_end = 0
132
            }
133
            else if (random_number == 3)
134
            {
135
                message[0] = "I can help ya#climb out of your#rut, I can!"
136
                message_end = 0
137
            }
138
            else if (random_number == 4)
139
            {
140
                message[0] = "You can trussst#me! Swear on#me mum!"
141
                message_end = 0
142
            }
143
        }
144
    }
145
}
146
message_current = 0
147
message_draw = ""
148
increase = global.text_speed
149
characters = 0
150
hold = 0
151
message_length = string_length(message[message_current])
152
script_execute(gml_Script_scr_generate_text_counters)
153
circle_text_angle = global.circle_text_angle_default
154
circle_text_angle_direction = 1