Undertale script viewer

← back to main script listing

gml_Object_obj_shopkeeper2_Step_0

(view raw script w/o annotations or w/e)
1
d = 0;
2
go = 0;
3
if (instance_exists(OBJ_WRITER))
4
{
5
    if (OBJ_WRITER.halt == 0)
6
        go = 1;
7
}
8
if (pos >= 6)
9
    go = 1;
10
if (go == 1)
11
{
12
    if (pos >= 3)
13
    {
14
        y = ystart + 2;
15
        armx = 2;
16
    }
17
    if (pos >= 6)
18
    {
19
        y = ystart + 4;
20
        armx = 4;
21
    }
22
    if (pos >= 9)
23
    {
24
        y = ystart + 2;
25
        armx = 2;
26
    }
27
    if (pos >= 12)
28
    {
29
        y = ystart;
30
        pos = 0;
31
        armx = 0;
32
    }
33
    pos += 1;
34
}