Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_flowey_final_1_Step_0

(view raw script w/o annotations or w/e)
1
if (characters < message_length)
2
{
3
    if (counter == 0)
4
    {
5
        characters += increase
6
        if (characters > message_length)
7
            characters = message_length
8
        message_draw = string_copy(message[message_current], 0, characters)
9
        current_char = string_char_at(message_draw, characters)
10
        script_execute(gml_Script_scr_talking_flowey_1)
11
    }
12
    else
13
        can_talk = false
14
}
15
else
16
{
17
    if (!alarm[0])
18
        alarm[0] = 60
alarm[0]

advance_message = true
19
    can_talk = false
20
    if (advance_message == true)
21
    {
22
        if (message_current < message_end)
23
        {
24
            if (message_current == 3)
25
            {
26
                while (instance_number(obj_battle_enemy_attack_friendliness_pellets_yellow) < 5)
27
                    instance_create(obj_flowey_intro_yellow.x, obj_flowey_intro_yellow.y, obj_battle_enemy_attack_friendliness_pellets_yellow)
28
            }
29
            message_current += 1
30
            message_length = string_length(message[message_current])
31
            characters = 0
32
            message_draw = ""
33
        }
34
        else
35
        {
36
            with (obj_battle_enemy_attack_friendliness_pellets_yellow)
37
            {
38
                while (distance_counter < distance_counter_max)
39
                {
40
                    x += lengthdir_x(move_speed_create, angle)
41
                    y += lengthdir_y(move_speed_create, angle)
42
                    distance_counter += 1
43
                }
44
                move = true
45
            }
46
            with (obj_quote_bubble_battle)
47
                instance_destroy()
48
            instance_destroy()
49
        }
50
        advance_message = false
51
    }
52
}
53
script_execute(gml_Script_scr_text_counter)