Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dialogue_battle_move_select_flowey_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (characters < message_length)
4
{
5
    if (counter == 0)
6
    {
7
        script_execute(gml_Script_scr_text_increase_auto)
8
        script_execute(gml_Script_scr_talking_text)
9
    }
10
    else
11
        can_talk = false
12
}
13
else
14
    can_talk = false
15
script_execute(gml_Script_scr_text_counter)
16
randomize_counter--
17
if (randomize_counter <= 0)
18
{
19
    var new_message = message_original
20
    for (var i = 0; i < 2; i++)
21
    {
22
        var new_letter = chr(irandom_range(97, 122))
23
        var new_pos = irandom_range(0, (string_length(message[0]) - 1))
24
        new_message = string_delete(new_message, new_pos, 1)
25
        new_message = string_insert(new_letter, new_message, new_pos)
26
    }
27
    message[0] = new_message
28
    randomize_counter = randomize_counter_max
29
}
30
draw_alpha = lerp(draw_alpha, draw_alpha_target, 0.05)
31
if (draw_alpha_target_countdown > 0)
32
    draw_alpha_target_countdown--
33
else
34
{
35
    draw_alpha_target = random_range(0.3, 1)
36
    draw_alpha_target_countdown = 10
37
}