Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_dunebud_a_Create_0

(view raw script w/o annotations or w/e)
1
execute_normal = false
2
execute_random = false
3
text_effect = "circle"
4
text_effect_2 = "circle"
5
color_count = 0
6
if (global.battle_enemy_name == "dunebud duo")
7
{
8
    if (global.enemy_dead_2 == true && global.fight_number == 1 && global.battle_menu_number == 1)
9
    {
10
        message[0] = "?~"
11
        message_end = 0
12
    }
13
    else
14
        execute_normal = true
15
}
16
else
17
    execute_normal = true
18
if (execute_normal == true)
19
{
20
    if (global.enemy_sparing == true && global.enemy_low_hp == false)
21
    {
22
        message[0] = "heHe~"
23
        message_end = 0
24
    }
25
    else if (global.enemy_low_hp == true)
26
    {
27
        random_number = irandom_range(0, 1)
28
        if (random_number == 0)
29
        {
30
            message[0] = "Bwaa~"
31
            message_end = 0
32
        }
33
        else if (random_number == 1)
34
        {
35
            message[0] = "Grrr~"
36
            message_end = 0
37
        }
38
    }
39
    else if (global.last_action_selected == "Action 1 Message 0")
40
    {
41
        message[0] = "Oo??"
42
        message_end = 0
43
    }
44
    else if (global.last_action_selected == "Action 2 Message 0")
45
    {
46
        message[0] = "Awawa~"
47
        message_end = 0
48
    }
49
    else if (global.last_action_selected == "Action 3 Message 0" || global.last_action_selected == "Action 3 Message 1")
50
    {
51
        message[0] = "Uuuu~"
52
        message_end = 0
53
    }
54
    else
55
    {
56
        execute_random = true
57
        if (execute_random == true)
58
        {
59
            random_number = irandom_range(0, 3)
60
            if (random_number == 0)
61
            {
62
                message[0] = "Swip#Swap~"
63
                message_end = 0
64
            }
65
            else if (random_number == 1)
66
            {
67
                message[0] = "Gwob#Gwub~"
68
                message_end = 0
69
            }
70
            else if (random_number == 2)
71
            {
72
                message[0] = "Awoooo~"
73
                message_end = 0
74
            }
75
            else if (random_number == 3)
76
            {
77
                message[0] = "Wiggle#Woggle~"
78
                message_end = 0
79
            }
80
        }
81
    }
82
}
83
message_current = 0
84
message_draw = ""
85
increase = global.text_speed
86
characters = 0
87
hold = 0
88
message_length = string_length(message[message_current])
89
script_execute(gml_Script_scr_generate_text_counters)
90
circle_text_angle = global.circle_text_angle_default
91
circle_text_angle_direction = 1