scr_text_counter_overworldfunction
scr_text_counter_overworld() //gml_Script_scr_text_counter_overworld
{
var current_char = string_char_at(message[message_current], cutoff)
var counter_max = 1
var message_length = string_length(message[message_current])
var pause_duration = 5
if (cutoff > 0 && cutoff < message_length)
{
switch current_char
{
case ".":
case ",":
case "?":
case "!":
counter_max = pause_duration
break
default:
counter_max = 1
}
counter += 1
if (counter >= counter_max)
counter = 0
}
else
counter = 0
}