Undertale script viewer

← back to main script listing

gml_Object_obj_sans_bonebul_Other_20

(view raw script w/o annotations or w/e)
1
width = 0;
2
le = 0;
3
rc_cut = 0;
4
rc_le = 0;
5
ww1 = global.idealborder[1] - x;
6
if (ww1 > 0)
7
    width = ww1;
8
ww2 = x - (global.idealborder[0] + 5);
9
if (ww2 < 0)
10
{
11
    le = -ww2;
12
    width = 10 + ww2;
13
}
14
if (width > 10)
15
    width = 10;
16
if (width < 9)
17
{
18
    rc_cut = 8 - width;
19
    if (rc_cut < 1)
20
        rc_cut = 0;
21
}
22
if (le > 1)
23
{
24
    rc_le = le - 2;
25
    rc_cut = 0;
26
    if (rc_le > 8)
27
        rc_le = 0;
28
}