Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_decibat_Create_0

(view raw script w/o annotations or w/e)
1
execute_normal = false
2
execute_random = false
3
color_count = 0
4
if (global.enemy_low_hp == true)
5
{
6
    message[0] = "NO NO! NOISE#HURTS! NOISE#HURTS!"
7
    message_end = 0
8
    audio_sound_gain(mus_decibat_yellow, 1, 1500)
9
}
10
else if ((global.action_1_selected_count + global.action_3_selected_count) == 5)
11
{
12
    message[0] = "Getting too loud#here! HUSHH#HUSHH!"
13
    message_end = 0
14
}
15
else if (global.action_2_selected_count == 5)
16
{
17
    message[0] = "Sweet silence..."
18
    message_end = 0
19
}
20
else if (global.action_2_selected_count == 4)
21
{
22
    message[0] = "You hhear that?#No? Good..."
23
    message_end = 0
24
}
25
else if (global.action_2_selected_count == 3)
26
{
27
    message[0] = "More quiet#please..."
28
    message_end = 0
29
}
30
else if (global.enemy_attack == "Decibat Wave Blue")
31
{
32
    message[0] = "           #Don't make a#sound.#Hush hushh!"
33
    message_2[0] = "Don't move.#            #      #             "
34
    message_end = 0
35
    color_count = 1
36
}
37
else if (global.enemy_attack == "Decibat Wave Orange")
38
{
39
    message[0] = "     in silence.#Hushh hushh!"
40
    message_2[0] = "Move            #            "
41
    message_end = 0
42
    color_count = 1
43
}
44
else
45
{
46
    random_number = irandom_range(0, 2)
47
    if (random_number == 0)
48
    {
49
        message[0] = "Don't shhy away.#Hushh hushh!"
50
        message_end = 0
51
    }
52
    else if (random_number == 1)
53
    {
54
        message[0] = "Whhispers only#please. Hushh#hushh!"
55
        message_end = 0
56
    }
57
    else if (random_number == 2)
58
    {
59
        message[0] = "Hushh puppy!"
60
        message_end = 0
61
    }
62
}
63
message_current = 0
64
message_draw = ""
65
message_draw_2 = ""
66
increase = global.text_speed
67
characters = 0
68
hold = 0
69
message_length = string_length(message[message_current])
70
script_execute(gml_Script_scr_generate_text_counters)
71
if (global.enemy_low_hp == true)
72
    obj_decibat_head.image_index = 11
73
else if ((global.action_1_selected_count + global.action_3_selected_count) >= 5)
74
    obj_decibat_head.image_index = 10
75
else if ((global.action_1_selected_count + global.action_3_selected_count) == 4)
76
    obj_decibat_head.image_index = 9
77
else if ((global.action_1_selected_count + global.action_3_selected_count) == 3)
78
    obj_decibat_head.image_index = 8
79
else if ((global.action_1_selected_count + global.action_3_selected_count) == 2)
80
    obj_decibat_head.image_index = 7
81
else if ((global.action_1_selected_count + global.action_3_selected_count) == 1)
82
    obj_decibat_head.image_index = 6
83
else if (global.action_2_selected_count >= 4)
84
    obj_decibat_head.image_index = 4
85
else if (global.action_2_selected_count == 3)
86
    obj_decibat_head.image_index = 3
87
else if (global.action_2_selected_count == 2)
88
    obj_decibat_head.image_index = 2
89
else if (global.action_2_selected_count == 1)
90
    obj_decibat_head.image_index = 1