Undertale script viewer

← back to main script listing

gml_Object_obj_screen_Step_2

(view raw script w/o annotations or w/e)
1
if (global.inbattle == 0 && global.flag[18 view_rotated] == 0)
2
    script_execute(scr_end);
3
if (messed == 1)
4
    window_set_caption("Floweytale");
5
if (messed == 2)
6
    window_set_caption(" ");
7
if (messed == 3)
8
{
9
    str_r = "";
10
    repeat (floor(2 + random(15)))
11
    {
12
        ir = choose(0, 1);
13
        if (ir == 0)
14
            str_piece = choose("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", " ", " ");
15
        if (ir == 1)
16
            str_piece = choose("m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", " ", " ");
17
        str_r += str_piece;
18
    }
19
    window_set_caption(str_r);
20
}