Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_cactony_a_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
random_number = 0
7
if (global.battle_enemy_name == "cactony slither duo")
8
{
9
    if (global.enemy_dead_2 == true && global.fight_number == 2 && global.battle_menu_number == 1)
10
    {
11
        message[0] = "Wait, don't go..."
12
        message_end = 0
13
    }
14
    else
15
        execute_normal = true
16
}
17
else
18
    execute_normal = true
19
if (execute_normal == true)
20
{
21
    if (global.last_action_selected == "Action 1 Low HP")
22
    {
23
        message[0] = "That's what you#get."
24
        message_end = 0
25
    }
26
    else if (global.last_action_selected == "Action 1 Message 0")
27
    {
28
        random_number = irandom_range(0, 1)
29
        if (random_number == 0)
30
        {
31
            message[0] = "It's so warm...#Is this what#love feels like?"
32
            message_end = 0
33
        }
34
        else if (random_number == 1)
35
        {
36
            message[0] = "Does this mean#you... care about#me?"
37
            message_end = 0
38
        }
39
    }
40
    else if (global.last_action_selected == "Action 2 Low HP")
41
    {
42
        message[0] = "At least have the#decency to look#at me!"
43
        message_end = 0
44
    }
45
    else if (global.last_action_selected == "Action 2 Message 0")
46
    {
47
        random_number = irandom_range(0, 1)
48
        if (random_number == 0)
49
        {
50
            message[0] = "Why does#everyone do this#to me?"
51
            message_end = 0
52
        }
53
        else if (random_number == 1)
54
        {
55
            message[0] = "What else is#new..."
56
            message_end = 0
57
        }
58
    }
59
    else if (global.enemy_low_hp == true)
60
    {
61
        random_number = irandom_range(0, 1)
62
        if (random_number == 0)
63
        {
64
            message[0] = "Could this day#get any worse?"
65
            message_end = 0
66
        }
67
        else if (random_number == 1)
68
        {
69
            text_effect = "circle"
70
            message[0] = "*Sigh*"
71
            message_end = 0
72
        }
73
    }
74
    else
75
    {
76
        if (global.battle_enemy_name == "cactony slither duo")
77
        {
78
            if ((global.enemy_dead_2 + global.enemy_spared_2) < 1)
79
            {
80
                random_number = irandom_range(0, 2)
81
                if (random_number == 0)
82
                {
83
                    message[0] = "You... think#so?"
84
                    message_end = 0
85
                }
86
                else if (random_number == 1)
87
                {
88
                    message[0] = "I'm not so#sure about#that...."
89
                    message_end = 0
90
                }
91
                else if (random_number == 2)
92
                {
93
                    message[0] = "Uhhhh..."
94
                    message_end = 0
95
                }
96
            }
97
            else
98
                execute_random = true
99
        }
100
        else
101
            execute_random = true
102
        if (execute_random == true)
103
        {
104
            random_number = irandom_range(0, 4)
105
            if (random_number == 0)
106
            {
107
                message[0] = "No one loves#me..."
108
                message_end = 0
109
            }
110
            else if (random_number == 1)
111
            {
112
                message[0] = "I'm burning up."
113
                message_end = 0
114
            }
115
            else if (random_number == 2)
116
            {
117
                text_effect = "circle"
118
                message[0] = "*Sigh*"
119
                message_end = 0
120
            }
121
            else if (random_number == 3)
122
            {
123
                message[0] = "These needles#are such a#curse..."
124
                message_end = 0
125
            }
126
            else if (random_number == 4)
127
            {
128
                message[0] = "I'm just a#burden to#everyone..."
129
                message_end = 0
130
            }
131
        }
132
    }
133
}
134
message_current = 0
135
message_draw = ""
136
increase = global.text_speed
137
characters = 0
138
hold = 0
139
message_length = string_length(message[message_current])
140
script_execute(gml_Script_scr_generate_text_counters)
141
circle_text_angle = global.circle_text_angle_default
142
circle_text_angle_direction = 1