Deltarune (Chapter 3) script viewer

← back to main script listing

gml_GlobalScript_scr_string_format_zero

(view raw script w/o annotations or w/e)
1
function string_format_zero(arg0, arg1, arg2)
2
{
3
    return string_replace_all(string_format(arg0, arg1, arg2), " ", "0");
4
}
5
6
function string_format_auto(arg0, arg1)
7
{
8
    if (frac(arg0) == 0)
9
        return string(arg0);
10
    else
11
        return string_format(arg0, 1, arg1);
12
}