Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_martlet_pacifist_attack_Create_0

(view raw script w/o annotations or w/e)
1
text_effect = "twitchy";
2
var hit_count = global.hit_count;
3
var no_hit_count = global.no_hit_count;
4
var miss_count = global.miss_count;
5
if ((hit_count + no_hit_count + miss_count) <= 0)
6
{
7
    if (global.enemy_mode_previous == 2)
8
        message[0] = "Okay, finally, now for#protocol two:#attack back!";
9
    else
10
        message[0] = "Good, now for protocol#two: attack back!";
11
    message[1] = "It is time to show you#the true strength of a#Royal Guard!";
12
    portrait_head[0] = 2087;
13
    portrait_hand[0] = 2058;
14
    portrait_head[1] = 2087;
15
    portrait_hand[1] = 2058;
16
    message_end = 1;
17
}
18
else if (global.enemy_hit == true)
19
{
20
    if (hit_count == 1)
21
    {
22
        message[0] = "Ow! That kinda#hurt...";
23
        portrait_head[0] = 3540;
24
        portrait_hand[0] = 2058;
25
        message_end = 0;
26
    }
27
    if (hit_count == 2)
28
    {
29
        message[0] = "Uh-I'm sorry, it's#just, see, my#guidebook...";
30
        message[1] = "It didn't really say#being attacked would#hurt this much...";
31
        message[2] = "I guess it makes#sense, but still...";
32
        message[3] = "...ow...";
33
        portrait_head[0] = 2116;
34
        portrait_hand[0] = 2058;
35
        portrait_head[1] = 3475;
36
        portrait_hand[1] = 2058;
37
        portrait_head[2] = 2116;
38
        portrait_hand[2] = 2058;
39
        portrait_head[3] = 2643;
40
        portrait_hand[3] = 2058;
41
        message_end = 3;
42
    }
43
    else if (hit_count == 3)
44
    {
45
        message[0] = "Ow!!";
46
        portrait_head[0] = 390;
47
        portrait_hand[0] = 2058;
48
        message_end = 0;
49
    }
50
    else if (hit_count == 4)
51
    {
52
        message[0] = "Does it hurt this#much when I attack#you?";
53
        message[1] = "'Cause I'm scared I'm#gonna break a wing#here!";
54
        message[2] = "I don't want you to#feel like this!";
55
        message[3] = "I wouldn't want anyone#to feel like this!";
56
        message[4] = "...For the Royal#Guard I guess...";
57
        portrait_head[0] = 3475;
58
        portrait_hand[0] = 2058;
59
        portrait_head[1] = 3540;
60
        portrait_hand[1] = 2058;
61
        portrait_head[2] = 3475;
62
        portrait_hand[2] = 2058;
63
        portrait_head[3] = 1673;
64
        portrait_hand[3] = 2058;
65
        portrait_head[4] = 2116;
66
        portrait_hand[4] = 2058;
67
        message_end = 4;
68
    }
69
    else if (hit_count == 5)
70
    {
71
        message[0] = "Ow!!!";
72
        portrait_head[0] = 390;
73
        portrait_hand[0] = 2058;
74
        message_end = 0;
75
    }
76
    else if (hit_count == 6)
77
    {
78
        message[0] = "Okay, okay, ow, this#cannot be right!";
79
        message[1] = "I mean - OW - I'm#gonna be all black#and blue tomorrow!";
80
        message[2] = "It hurts you too,#right?";
81
        message[3] = "Like, it's impressive#you don't show it,#but...";
82
        message[4] = "Ow!";
83
        portrait_head[0] = 3526;
84
        portrait_hand[0] = 2058;
85
        portrait_head[1] = 3475;
86
        portrait_hand[1] = 2058;
87
        portrait_head[2] = 3475;
88
        portrait_hand[2] = 2058;
89
        portrait_head[3] = 2116;
90
        portrait_hand[3] = 2058;
91
        portrait_head[4] = 3475;
92
        portrait_hand[4] = 2058;
93
        message_end = 4;
94
    }
95
}
96
else if ((no_hit_count + miss_count) == 1)
97
{
98
    message[0] = "...?";
99
    portrait_head[0] = 2116;
100
    portrait_hand[0] = 2058;
101
    message_end = 0;
102
}
103
else if ((no_hit_count + miss_count) == 2)
104
{
105
    message[0] = "???";
106
    portrait_head[0] = 2427;
107
    portrait_hand[0] = 2058;
108
    message_end = 0;
109
}
110
message_current = 0;
111
message_draw = "";
112
increase = global.text_speed;
113
characters = 0;
114
hold = 0;
115
message_length = string_length(message[message_current]);
116
script_execute(scr_generate_text_counters);
117
circle_text_angle = global.circle_text_angle_default;
118
circle_text_angle_direction = 1;