Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_text_talk

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

function scr_text_talk() //gml_Script_scr_text_talk { var message_length = string_length(message[message_current]) if (cutoff < message_length && (cutoff % 1) == 0) { switch string_char_at(message[message_current], cutoff) { case " ": case ".": break default: audio_stop_sound(sndfnt) audio_play_sound(sndfnt, 1, false) break } } }
() //gml_Script_scr_text_talk
2
{
3
    var message_length = string_length(message[message_current])
4
    if (cutoff < message_length && (cutoff % 1) == 0)
5
    {
6
        switch string_char_at(message[message_current], cutoff)
7
        {
8
            case " ":
9
            case ".":
10
                break
11
            default:
12
                audio_stop_sound(sndfnt)
13
                audio_play_sound(sndfnt, 1, false)
14
                break
15
        }
16
17
    }
18
}