Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_text_increase

(view raw script w/o annotations or w/e)
1
function scr_text_increase
scr_text_increase

function scr_text_increase() { hold = key_select * global.hold_speed; if (hold > global.hold_speed) hold = global.hold_speed; else if (hold <= 0) hold = 1; characters += (increase * hold); if (characters > message_length) characters = message_length; message_draw = string_copy(message[message_current], 0, characters); current_char = string_char_at(message_draw, characters); }
()
2
{
3
    hold = key_select * global.hold_speed;
4
    if (hold > global.hold_speed)
5
        hold = global.hold_speed;
6
    else if (hold <= 0)
7
        hold = 1;
8
    characters += (increase * hold);
9
    if (characters > message_length)
10
        characters = message_length;
11
    message_draw = string_copy(message[message_current], 0, characters);
12
    current_char = string_char_at(message_draw, characters);
13
}