Deltarune (Chapter 5) script viewer

← back to main script listing

gml_GlobalScript_scr_battletext

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

function
scr_battletext()
{ xx = camerax(); yy = cameray(); if (global.fc != 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); if (global.fc == 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); myface = instance_create(xx + 26, yy + 380, obj_face); with (battlewriter) { dialoguer = 1; facer = 1; if (global.fc == 0 && originalcharline == 33) charline = 26; } return battlewriter; }
()
2
{
3
    xx = camerax();
4
    yy = cameray();
5
    if (global.fc != 0)
6
        battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
7
    if (global.fc == 0)
8
        battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
9
    myface = instance_create(xx + 26, yy + 380, obj_face);
10
    with (battlewriter)
11
    {
12
        dialoguer = 1;
13
        facer = 1;
14
        if (global.fc == 0 && originalcharline == 33)
15
            charline = 26;
16
    }
17
    return battlewriter;
18
}