Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_genoflowey_Step_0

(view raw script w/o annotations or w/e)
1
if (waiter == 1)
2
{
3
    sprite_index = flowey_niceside
4
    if (!instance_exists(obj_floweydialogue))
5
        instance_create(x, y, obj_floweydialogue)
6
    obj_floweydialogue.message[0] = "Well... That was#something."
7
    waiter = 2
8
}
9
if (waiter == 2 && (!instance_exists(obj_floweydialogue)))
10
{
11
    sprite_index = flowey_nice
12
    if (!instance_exists(obj_floweydialogue))
13
        instance_create(x, y, obj_floweydialogue)
14
    with (obj_floweydialogue)
15
    {
16
        message[0] = "You're a lot#stronger than I#gave you credit#for!"
17
        message[1] = "Those monsters never#stood a chance#against your skill."
18
    }
19
    waiter = 3
20
}
21
if (waiter == 3 && (!instance_exists(obj_floweydialogue)))
22
{
23
    sprite_index = flowey_plain
24
    if (!instance_exists(obj_floweydialogue))
25
        instance_create(x, y, obj_floweydialogue)
26
    with (obj_floweydialogue)
27
    {
28
        message[0] = "..."
29
        message[1] = "What's with that#face?"
30
    }
31
    waiter = 4
32
}
33
if (waiter == 4 && (!instance_exists(obj_floweydialogue)))
34
{
35
    sprite_index = flowey_smirk
36
    if (!instance_exists(obj_floweydialogue))
37
        instance_create(x, y, obj_floweydialogue)
38
    with (obj_floweydialogue)
39
        message[0] = "Don't even think#about killing me#too."
40
    waiter = 5
41
}
42
if (waiter == 5 && (!instance_exists(obj_floweydialogue)))
43
{
44
    sprite_index = flowey_nice
45
    if (!instance_exists(obj_floweydialogue))
46
        instance_create(x, y, obj_floweydialogue)
47
    with (obj_floweydialogue)
48
    {
49
        message[0] = "Remember, I'm the#one keeping you#alive."
50
        message[1] = "Your life is#in my hands."
51
        message[2] = "Don't worry, I#won't judge you#for your actions."
52
    }
53
    waiter = 6
54
}
55
if (waiter == 6 && (!instance_exists(obj_floweydialogue)))
56
{
57
    sprite_index = flowey_niceside
58
    if (!instance_exists(obj_floweydialogue))
59
        instance_create(x, y, obj_floweydialogue)
60
    with (obj_floweydialogue)
61
        message[0] = "Friends don't judge#each other, right?"
62
    waiter = 7
63
}
64
if (waiter == 7 && (!instance_exists(obj_floweydialogue)))
65
{
66
    sprite_index = flowey_nice
67
    if (!instance_exists(obj_floweydialogue))
68
        instance_create(x, y, obj_floweydialogue)
69
    with (obj_floweydialogue)
70
    {
71
        message[0] = "I have your#back and you've#got mine."
72
        message[1] = "So let's get#out of here,#okay pal?"
73
    }
74
    waiter = 8
75
}
76
if (waiter == 8 && (!instance_exists(obj_floweydialogue)))
77
{
78
    if (!instance_exists(obj_transition))
79
    {
80
        trn = instance_create(x, y, obj_transition)
81
        trn.newRoom = global.lastroom
82
        trn.xx = global.player_x
83
        trn.yy = global.player_y
84
    }
85
}
86
if (sprite_index == spr_floweyenter)
87
    return;
88
if instance_exists(obj_floweydialogue)
89
{
90
    if (obj_floweydialogue.cutoff == string_length(obj_floweydialogue.message[obj_floweydialogue.message_current]) || obj_floweydialogue.animateTalk == false)
91
    {
92
        image_speed = 0
93
        image_index = 0
94
    }
95
    else
96
        image_speed = 0.2
97
}
98
else
99
    image_speed = 0