Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_light_following_Step_0

(view raw script w/o annotations or w/e)
1
siner++;
2
depth = 0;
3
if (preset != -1)
4
{
5
    target = -4;
6
    if (preset == 1)
7
    {
8
        target = 1049;
9
        xoff = 18;
10
        yoff = 38;
11
    }
12
    if (preset == 2)
13
    {
14
        with (obj_caterpillarchara)
15
        {
16
            if (name == "susie")
17
                other.target = id;
18
        }
19
        xoff = 26;
20
        yoff = 46;
21
    }
22
    if (preset == 3)
23
    {
24
        with (obj_caterpillarchara)
25
        {
26
            if (name == "ralsei")
27
                other.target = id;
28
        }
29
        xoff = 18;
30
        yoff = 40;
31
    }
32
    if (preset == 4)
33
    {
34
        with (obj_actor)
35
        {
36
            if (name == "susie")
37
                other.target = id;
38
        }
39
        xoff = 26;
40
        yoff = 46;
41
    }
42
    if (preset == 5)
43
    {
44
        with (obj_actor)
45
        {
46
            if (name == "ralsei")
47
                other.target = id;
48
        }
49
        xoff = 18;
50
        yoff = 40;
51
    }
52
    if (i_ex(target))
53
        preset = -1;
54
}