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(scr_talking_flowey_1);
11
    }
12
    else
13
    {
14
        can_talk = false;
15
    }
16
}
17
else
18
{
19
    if (!alarm[0])
20
        alarm[0] = 60;
21
    can_talk = false;
22
    if (advance_message == true)
23
    {
24
        if (message_current < message_end)
25
        {
26
            if (message_current == 3)
27
            {
28
                while (instance_number(obj_battle_enemy_attack_friendliness_pellets_yellow) < 5)
29
                    instance_create(obj_flowey_intro_yellow.x, obj_flowey_intro_yellow.y, obj_battle_enemy_attack_friendliness_pellets_yellow);
30
            }
31
            message_current += 1;
32
            message_length = string_length(message[message_current]);
33
            characters = 0;
34
            message_draw = "";
35
        }
36
        else
37
        {
38
            with (obj_battle_enemy_attack_friendliness_pellets_yellow)
39
            {
40
                while (distance_counter < distance_counter_max)
41
                {
42
                    x += lengthdir_x(move_speed_create, angle);
43
                    y += lengthdir_y(move_speed_create, angle);
44
                    distance_counter += 1;
45
                }
46
                move = true;
47
            }
48
            with (obj_quote_bubble_battle)
49
                instance_destroy();
50
            instance_destroy();
51
        }
52
        advance_message = false;
53
    }
54
}
55
script_execute(scr_text_counter);