Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_tri_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 == "trihecta separated")
4
{
5
    if (((global.enemy_dead_2 == true && global.fight_number == 2) || (global.enemy_dead_3 == true && global.fight_number == 3)) && global.battle_menu_number == 1)
6
    {
7
        random_number = irandom_range(0, 2)
8
        if (random_number == 0)
9
        {
10
            message[0] = "NO!!"
11
            message_end = 0
12
        }
13
        else if (random_number == 1)
14
        {
15
            message[0] = "Please, no!"
16
            message_end = 0
17
        }
18
        else if (random_number == 2)
19
        {
20
            message[0] = "That was my#sibling!"
21
            message_end = 0
22
        }
23
    }
24
    else
25
        execute_normal = true
26
}
27
else
28
    execute_normal = true
29
if (execute_normal == true)
30
{
31
    if (global.last_action_selected == "Action 1 Message 0")
32
    {
33
        message[0] = "What's so funny?"
34
        message_end = 0
35
    }
36
    else if (global.last_action_selected == "Action 3 Message 0")
37
    {
38
        message[0] = "We have our#disagreements,#but you are my#pals."
39
        message_end = 0
40
    }
41
    else if (global.enemy_low_hp == true)
42
    {
43
        random_number = irandom_range(0, 4)
44
        if (random_number == 0)
45
        {
46
            message[0] = "I need to run#away."
47
            message_end = 0
48
        }
49
        else if (random_number == 1)
50
        {
51
            message[0] = "Why..."
52
            message_end = 0
53
        }
54
        else if (random_number == 2)
55
        {
56
            message[0] = "This wasn't#supposed to#happen..."
57
            message_end = 0
58
        }
59
        else if (random_number == 3)
60
        {
61
            message[0] = "Now I know why#we shouldn't#separate..."
62
            message_end = 0
63
        }
64
        else if (random_number == 4)
65
        {
66
            message[0] = "Oww..."
67
            message_end = 0
68
        }
69
    }
70
    else
71
    {
72
        execute_random = true
73
        if (execute_random == true)
74
        {
75
            random_number = irandom_range(0, 2)
76
            if (random_number == 0)
77
            {
78
                message[0] = "Everyone okay?"
79
                message_end = 0
80
            }
81
            else if (random_number == 1)
82
            {
83
                message[0] = "I told you this#would happen!"
84
                message_end = 0
85
            }
86
            else if (random_number == 2)
87
            {
88
                message[0] = "Any injuries?#Trauma?#Maladies?"
89
                message_end = 0
90
            }
91
        }
92
    }
93
}
94
message_current = 0
95
message_draw = ""
96
increase = global.text_speed
97
characters = 0
98
hold = 0
99
message_length = string_length(message[message_current])
100
script_execute(gml_Script_scr_generate_text_counters)